一个简单的基于流的测试框架

testflo的Python项目详细描述


用法:testflo[选项]

positional arguments:
test A test method, test case, module, or directory to run.
optional arguments:
-h, --helpshow 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, --verboseInclude testspec and elapsed time in screen output. Also shows all stderr output, even if test doesn’t fail
--compactLimit output to a single character for each test.
--dryrunDon’t actually run tests, but print which tests would have been run.
--pre_announceAnnounce the name of each test before it runs. This can help track down a hanging test. This automatically sets -n 1.
-f, --failSave failed tests to failtests.in file.
--full_pathDisplay full test specs instead of shortened names.
-i, --isolatedRun each test in a separate subprocess.
--nompiForce all tests to run without MPI. This can be useful for debugging.
-x, --stopStop 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.
--coveragePerform coverage analysis and display results on stdout
--coverage-html
Perform coverage analysis and display results in browser
--coverpkg PKGAdd 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.
--noreportDon’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).

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
gwt java。lang.UnsupportedClassVersionError:不受支持的专业。小版本51.0   java XML解析器trycatch不工作   java Jackson MRBean不工作,无法构造实例   javascript是检查参数的更好方法吗?   java在发生冲突时从ArrayList中删除对象   JavaSpringWebFlux和KeyClope JWTRESTAPI   java Selected选项在微调器中不可见   java在增加分区后,有没有办法在ApacheKafka中保持顺序?   java添加SourceRoot会导致spring启动应用程序出错   java Spring引导:任何bean都没有实现ReactiveCrudepository   java无法注册我的自定义AbstractAnnotationConfigDispatcherServletInitializer   TCP连接上的java Caesar密码   java树集排序不正确   java如何在自定义查询中加载@ElementCollection?