Skip to main content

Organize tests and show results

Project description

How to use it:

from testOrganize.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.1.tar.gz (2.9 kB view hashes)

Uploaded Source

Built Distribution

testOrganizer-0.0.1-py3-none-any.whl (3.3 kB view hashes)

Uploaded Python 3

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