Skip to main content

A simple flow-based testing framework

Project description

usage: testflo [options]

positional arguments:

test A test method, test case, module, or directory to run.

optional arguments:
-h, --help

show this help message and exit

-c FILE, --config FILE

Path of config file where preferences are specified.

-t FILE, --testfile FILE

Path to a file containing one testspec per line.

--maxtime TIME_LIMIT

Specifies a time limit in seconds for tests to be saved to the quicktests.in file.

-n NUM_PROCS, --numprocs NUM_PROCS

Number of processes to run. By default, this will use the number of CPUs available. To force serial execution, specify a value of 1.

-o FILE, --outfile FILE

Name of test report file. Default is testflo_report.out.

-v, --verbose

Include testspec and elapsed time in screen output. Also shows all stderr output, even if test doesn’t fail

--compact

Limit output to a single character for each test.

--dryrun

Don’t actually run tests, but print which tests would have been run.

--pre_announce

Announce the name of each test before it runs. This can help track down a hanging test. This automatically sets -n 1.

-f, --fail

Save failed tests to failtests.in file.

--full_path

Display full test specs instead of shortened names.

-i, --isolated

Run each test in a separate subprocess.

--nompi

Force all tests to run without MPI. This can be useful for debugging.

-x, --stop

Stop after the first test failure, or as soon as possible when running concurrent tests.

-s, --nocapture

Standard output (stdout) will not be captured and will be written to the screen immediately.

--coverage

Perform coverage analysis and display results on stdout

--coverage-html

Perform coverage analysis and display results in browser

--coverpkg PKG

Add the given package to the coverage list. You can use this option multiple times to cover multiple packages.

--cover-omit FILE

Add a file name pattern to remove it from coverage.

-b, --benchmark

Specifies that benchmarks are to be run rather than tests, so only files starting with “benchmark_” will be executed.

-d FILE, --datafile FILE

Name of benchmark data file. Default is benchmark_data.csv.

--noreport

Don’t create a test results file.

-m GLOB, --match GLOB, --testmatch GLOB

Pattern to use for test discovery. Multiple patterns are allowed.

--timeout TIMEOUT

Timeout in seconds. Test will be terminated if it takes longer than timeout. Only works for tests running in a subprocess (MPI and isolated).

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

testflo-1.4.10.tar.gz (25.7 kB view details)

Uploaded Source

File details

Details for the file testflo-1.4.10.tar.gz.

File metadata

  • Download URL: testflo-1.4.10.tar.gz
  • Upload date:
  • Size: 25.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.0

File hashes

Hashes for testflo-1.4.10.tar.gz
Algorithm Hash digest
SHA256 a56617ce745cceb3b37308f814410a815415814cde1c94fabf6af80bf5db8956
MD5 2d54c9836c6fa64bcb7c3af02025b0b1
BLAKE2b-256 d782497b793856d2c21aa6ed4134dcf8490173617eb126bdceec93e5e8dfdd18

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page