Skip to main content

Too many faillure, less tests.

Project description

Pytest covid.

When you do testing to that extent, you're going to find more people, you're going to find more cases. So I said to my people, slow the testing down — please.

The more failures you'll get the more tests it will skip.

# pytest.ini
[pytest]
[covid]
enabled = True
fake_news = False

Or if you like Fox News set fake_news = True and test failures will be reported as success.

test failure contamination

For each test failure, 4% of the remaining tests will randomly fail (they get contaminated), and 1% skipped. Effect compounds, so contaminated test, contaminate mote tests and skip even more. Even with fake_news=True except Failing test appear to be passing.

Example:

Running 500 test with a 1% change of failing:

tests/test_covid.py ...........F.........s...............F.....s..sF...s....FsF..F.sFFs....sFs...s..F [ 16%]
FFsFFFssFsFss.s..sFFsFssssFFssssFs.sFssssss.sFss.sssss.sss.sss.sFsFssssssssFsssFssssss.sssssFssFsssss [ 36%]
ssssssssssssssssssssssssssss.sss.sssss.ss.ssssssFsFssssssFsssssssFsssssssssssssFFsssFssssssssFsFsFsFs [ 56%]
sssssFsssFssssFssssssssssssFssssssssssssFFsssssssssssssssFsssssssssssFssssssssssssssssssssssss.ssssss [ 76%]
ssssssFssssssssssssssssssssssFssssssFsssssssssssFssssssssssssssssFsssssssssssssssssssFssssssssssssFs. [ 97%]
sssssssssssssss

Same while watching Fox News, or if you believe you'll safe in church:

tests/test_covid.py .....................s....ss..........sssssss.s..s......ss.....s...sss.sss...ss.s [ 16%]
s.s.s..s.ss.s...s..s.s.ss.ss..ssss.s..sssssssssss.ss..sss.sss..s.s.sssssss.s.ss.ss.ssssss.ssss...s..s [ 36%]
ss.ss.ssss.ss...s.sssssss.sssssssssssssssssssssssss.ssss.ssssssssssssssssssssss.ssssssssssssssss.ssss [ 56%]
sssssssssssssssss.ssssssssssssssss.sssssssss.ssssssssssssssssssssssss.s.sssssssssssssssssssssssssss.s [ 76%]
sssssss.ssssssssssssssss.sssss.sssss.sssssssssssssssssssssssssssssssssssssssssss.sssssss.ssssss.sssss [ 97%]
ssssssssssssss

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

pytest_covid-0.0.4.tar.gz (3.2 kB view details)

Uploaded Source

Built Distribution

pytest_covid-0.0.4-py3-none-any.whl (3.8 kB view details)

Uploaded Python 3

File details

Details for the file pytest_covid-0.0.4.tar.gz.

File metadata

  • Download URL: pytest_covid-0.0.4.tar.gz
  • Upload date:
  • Size: 3.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.23.0

File hashes

Hashes for pytest_covid-0.0.4.tar.gz
Algorithm Hash digest
SHA256 7dc4bf3671dd52c936d1a92f2ba733ca4832c36655a709cc53a1c49b88dfa70a
MD5 a7456bf78756bbefe2d73e0f07dafc36
BLAKE2b-256 2316f7de089c9917bd300f7f516fd314e83c7fb439b1beda25e904e58660f102

See more details on using hashes here.

File details

Details for the file pytest_covid-0.0.4-py3-none-any.whl.

File metadata

File hashes

Hashes for pytest_covid-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 1fea3b49187f736b37c47ef6598dd3ef037e33f9716c75a7d9b4fa194682d25b
MD5 b962d83fa2f37db5913eb3fcb1933830
BLAKE2b-256 b954b687d9378fe5dc4bb1de4f3a347ce5e4f27a7373823b928dc706d4c5229d

See more details on using hashes here.

Supported by

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