(num_tests)
| 277 | |
| 278 | |
| 279 | def print_random_test_statistics(num_tests): |
| 280 | std = 0.5 / math.sqrt(num_tests) |
| 281 | expected = 100.0 * (1.0 - std) |
| 282 | print() |
| 283 | print('running those %d randomly-selected tests. if they all pass, then there is a ' |
| 284 | 'greater than 95%% chance that at least %.2f%% of the test suite will pass' |
| 285 | % (num_tests, expected)) |
| 286 | print() |
| 287 | |
| 288 | def show(): |
| 289 | print('if all tests passed then there is a greater than 95%% chance that at least ' |
| 290 | '%.2f%% of the test suite will pass' |
| 291 | % (expected)) |
| 292 | atexit.register(show) |
| 293 | |
| 294 | |
| 295 | def error_on_legacy_suite_names(args): |
no test coverage detected