Modern Testing Framework
Project description
Test Junkie
Installation
From your favorite terminal:
pip install test-junkie
or python -m pip install test-junkie
Basic Usage
Save code bellow into a Python file. Lets say C:\Development\TestJunkie\demo.py
.
from test_junkie.decorators import Suite, beforeTest, afterTest, test, beforeClass, afterClass
@Suite()
class ExampleTestSuite:
@beforeClass()
def before_class(self):
print("Hi, I'm before class")
@beforeTest()
def before_test(self):
print("Hi, I'm before test")
@afterTest()
def after_test(self):
print("Hi, I'm after test")
@afterClass()
def after_class(self):
print("Hi, I'm after class")
@test()
def something_to_test1(self):
print("Hi, I'm test #1")
@test()
def something_to_test2(self):
print("Hi, I'm test #2")
@test()
def something_to_test3(self):
print("Hi, I'm test #3")
# and to run this marvel programmatically, all you need to do . . .
if "__main__" == __name__:
from test_junkie.runner import Runner
runner = Runner([ExampleTestSuite])
runner.run()
# OR use Test Junkie's CLI: `tj run -s C:\Development\TestJunkie\demo.py`
CLI
Starting from version 0.6a6
there is now full CLI
support and the above test suite can also be executed with tj run -s C:\Development\TestJunkie\demo.py
For more examples, see CLI documentation.
Output Example
Full documentation is available on test-junkie.com
Please report any bugs you find.
Our Sponsors
become our sponsor
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
test_junkie-0.7a7.tar.gz
(69.8 kB
view hashes)
Built Distribution
test_junkie-0.7a7-py3-none-any.whl
(101.2 kB
view hashes)
Close
Hashes for test_junkie-0.7a7-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cb94ce5409479c5f4a810f15cd2da10534dfac6b0d2248de7f5649f58e643bea |
|
MD5 | 62f54e3875c853c381cf73e5da3b4dd5 |
|
BLAKE2b-256 | a4c3eb8d94f3d229e133c04e0403b4756fde7b5cd55c6b221f855c6d3b4f5ed4 |