Skip to main content

Organize tests and show results

Project description

How to use it:

from testOrganizer.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
  • code outside of given functions will also be executed as in standard python script

For sharing variables over functions example:

browser = webdriver.Chrome()

@test("First test")
def test1():
    global browser
    browser.get(url)

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.6.tar.gz (3.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

testOrganizer-0.0.6-py3-none-any.whl (5.1 kB view details)

Uploaded Python 3

File details

Details for the file testOrganizer-0.0.6.tar.gz.

File metadata

  • Download URL: testOrganizer-0.0.6.tar.gz
  • Upload date:
  • Size: 3.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.1

File hashes

Hashes for testOrganizer-0.0.6.tar.gz
Algorithm Hash digest
SHA256 92f37a22c499c8f1caf8a37157aae8aaaa63e2a0db278fd320f918ed6d0ca6f1
MD5 cc1dc94d3e4c84dd2e6ce7486a0f621c
BLAKE2b-256 14987d089de420a2c6709eace6a6194b738d5f1f41d094cd4b9642873e2c1a4b

See more details on using hashes here.

File details

Details for the file testOrganizer-0.0.6-py3-none-any.whl.

File metadata

  • Download URL: testOrganizer-0.0.6-py3-none-any.whl
  • Upload date:
  • Size: 5.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.1

File hashes

Hashes for testOrganizer-0.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 65d86afd06c6d7be9d4e1780cf1a4ddd22e50eb27a0bc74491982b7dbd263f6b
MD5 a1a6f4804e0f2b15390a300e72c64ab0
BLAKE2b-256 9d7271ac48941765163018e2b6ee0e48ddf9763a98dd65c9140fe190c0a04fc9

See more details on using hashes here.

Supported by

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