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)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
92f37a22c499c8f1caf8a37157aae8aaaa63e2a0db278fd320f918ed6d0ca6f1
|
|
| MD5 |
cc1dc94d3e4c84dd2e6ce7486a0f621c
|
|
| BLAKE2b-256 |
14987d089de420a2c6709eace6a6194b738d5f1f41d094cd4b9642873e2c1a4b
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
65d86afd06c6d7be9d4e1780cf1a4ddd22e50eb27a0bc74491982b7dbd263f6b
|
|
| MD5 |
a1a6f4804e0f2b15390a300e72c64ab0
|
|
| BLAKE2b-256 |
9d7271ac48941765163018e2b6ee0e48ddf9763a98dd65c9140fe190c0a04fc9
|