Organize tests and show results
Project description
How to use it:
from Lib.TestDecorator import test, beforeEachTest, afterEachTest, print_result
@beforeEachTest() def be(): print("before each test")
@afterEachTest() def ae(): print("after each test")
@test("First test", should_execute=False, info="Bug found") def test1(): print("test")
@test("Second test") def test2(): print("test")
print_result()
Important notes: -beforeEachTest and afterEachTest must be defined first -at the end of file print_result() must be called so that result is printed to console -for sharing variables over functions, python rules are applied
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
testOrganizer-0.0.5.tar.gz
(2.9 kB
view hashes)
Built Distribution
Close
Hashes for testOrganizer-0.0.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5ccb1f0207fa76c5aee7c5c978786d40210bf657ecf86de788267f3e38870077 |
|
MD5 | 6b064d13f841b764a4e1999aa8e6b7b1 |
|
BLAKE2b-256 | b2ec8b3d16afb36be4e235ba58daa7306089d17d78fc1433dfa6042eb179a111 |