Product
Introducing License Enforcement in Socket
Ensure open-source compliance with Socket’s License Enforcement Beta. Set up your License Policy and secure your software!
From your favorite terminal:
pip install test-junkie
or python -m pip install test-junkie
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`
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.
Full documentation is available on test-junkie.com
Please report any bugs you find.
Our Sponsors
become our sponsor
FAQs
Modern Testing Framework
We found that test-junkie demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Ensure open-source compliance with Socket’s License Enforcement Beta. Set up your License Policy and secure your software!
Product
We're launching a new set of license analysis and compliance features for analyzing, managing, and complying with licenses across a range of supported languages and ecosystems.
Product
We're excited to introduce Socket Optimize, a powerful CLI command to secure open source dependencies with tested, optimized package overrides.