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
from test_junkie.runner import Runner
@Suite()
class ExampleTestSuite:
@beforeClass()
def before_class(self):
pass
@beforeTest()
def before_test(self):
pass
@afterTest()
def after_test(self):
pass
@afterClass()
def after_class(self):
pass
@test()
def something_to_test1(self):
pass
@test()
def something_to_test2(self):
pass
@test()
def something_to_test3(self):
pass
# and to run this marvel programmatically, all you need to do . . .
if "__main__" == __name__:
runner = Runner([ExampleTestSuite])
runner.run()
# You can also run it through Test Junkie's CLI and then you don't need this "if" block
You can either run this suite via your favourite IDE or via the CMD like you would run any other Python program.
CLI
Starting from version 0.6a6
there is now full CLI support and one of the things it offers is the run
command.
Thus the above test suite can, also, be executed with tj run -s C:\Development\TestJunkie\demo.py
To see what else CLI offers type tj -h
. Each sub command from there on has its own help menu.
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
Built Distribution
Hashes for test_junkie-0.7a1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b823fde7a57ee36c94a50b7c3dbdb0ce4fe4a78b4669f91047bd99b2f2573434 |
|
MD5 | af2348a9f2d36c76f620e8802a860c0e |
|
BLAKE2b-256 | 54e411d8b9c5e24ae7e638374886f5cf40c97c2a5021ddcd65df9a633cf556a2 |