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.3.4.tar.gz (21.7 kB view details)

Uploaded Source

File details

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

File metadata

  • Download URL: testflo-1.3.4.tar.gz
  • Upload date:
  • Size: 21.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/40.2.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.0

File hashes

Hashes for testflo-1.3.4.tar.gz
Algorithm Hash digest
SHA256 2572d26be18918a48e336f235885f29c6378963e2151f431e4325b09e132143f
MD5 1f875471d2b6fe82d9ba5cf37870650b
BLAKE2b-256 1e335cb399de0e85852d021ccb37d6b29eb3bf2786c4356020135b312dc92c33

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