COST.rst 621 B

1234567891011121314
  1. COST
  2. ----
  3. This property describes the cost of a test. When parallel testing is
  4. enabled, tests in the test set will be run in descending order of cost.
  5. Projects can explicitly define the cost of a test by setting this property
  6. to a floating point value.
  7. When the cost of a test is not defined by the project,
  8. :manual:`ctest <ctest(1)>` will initially use a default cost of ``0``.
  9. It computes a weighted average of the cost each time a test is run and
  10. uses that as an improved estimate of the cost for the next run. The more
  11. a test is re-run in the same build directory, the more representative the
  12. cost should become.