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.8a8.tar.gz
(71.5 kB
view details)
Built Distribution
File details
Details for the file test_junkie-0.8a8.tar.gz
.
File metadata
- Download URL: test_junkie-0.8a8.tar.gz
- Upload date:
- Size: 71.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a814fc7b487b598730b156db02049cf11451bd5681730936734ef299ec51b1ab |
|
MD5 | 75845342d655cf7667fb835adbfc5ce4 |
|
BLAKE2b-256 | 1941c660b550ec8d83f4000f931b92c4d9c28ac2574cd4f798b2a1d1e6cf8f3f |
File details
Details for the file test_junkie-0.8a8-py3-none-any.whl
.
File metadata
- Download URL: test_junkie-0.8a8-py3-none-any.whl
- Upload date:
- Size: 99.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e5bdbbe211c52e764c5404b9a48f8fba5c43dec2abcfb88033fbe8cbc2f39126 |
|
MD5 | 30cf182716f10facf55168fd2d3b43d6 |
|
BLAKE2b-256 | b4e8e7da8401dd95d3cc1ee4d06a0d65d507f5176504f715bc500fd8186c29e1 |