%global _empty_manifest_terminate_build 0 Name: python-test-junkie Version: 0.8a6 Release: 1 Summary: Modern Testing Framework License: MIT License URL: https://www.test-junkie.com/ Source0: https://mirrors.aliyun.com/pypi/web/packages/42/dd/194c65f52556eda7114f31a5d56f3614fd8e9fc7250f9754afa9e3bfbc05/test_junkie-0.8a6.tar.gz BuildArch: noarch Requires: python3-statistics Requires: python3-psutil Requires: python3-appdirs Requires: python3-configparser Requires: python3-colorama Requires: python3-coverage %description [![Build Status](https://travis-ci.com/ArturSpirin/test_junkie.svg?branch=master)](https://travis-ci.com/ArturSpirin/test_junkie) [![codecov](https://codecov.io/gh/ArturSpirin/test_junkie/branch/master/graph/badge.svg)](https://codecov.io/gh/ArturSpirin/test_junkie) [![Maintainability](https://api.codeclimate.com/v1/badges/40b17ed68d5b3eca140b/maintainability)](https://codeclimate.com/github/ArturSpirin/test_junkie/maintainability) [![Maintenance](https://img.shields.io/badge/Maintained%3F-yes-green.svg)](https://github.com/ArturSpirin/test_junkie/graphs/commit-activity) [![Known Vulnerabilities](https://snyk.io/test/github/ArturSpirin/test_junkie/badge.svg?targetFile=requirements.txt)](https://snyk.io/test/github/ArturSpirin/test_junkie?targetFile=requirements.txt) [![PyPI version shields.io](https://img.shields.io/pypi/v/test_junkie.svg)](https://pypi.python.org/pypi/test_junkie/) [![PyPI pyversions](https://img.shields.io/pypi/pyversions/test_junkie.svg)](https://pypi.python.org/pypi/test_junkie/) [![Downloads](https://pepy.tech/badge/test-junkie)](https://pepy.tech/project/test-junkie) # Test Junkie [![Twitter](https://img.shields.io/twitter/url/http/shields.io.svg?style=social)](https://twitter.com/intent/tweet?text=Test+Junkie+is+one+of+the+most+powerful+testing+frameworks+on+Python+that+you+did+not+hear+of+and+you+are+missing+out!&url=https%3A%2F%2Ftest-junkie.com&hashtags=automation,testing,python&original_referer=https%3A%2F%2Fgithub.com%2F&tw_p=tweetbutton) [![Test Junkie Logo](https://www.test-junkie.com/static/media/logo.png)](https://www.test-junkie.com/) ## 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`. ```python 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](https://www.test-junkie.com/documentation/#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](https://www.test-junkie.com/documentation/#cli). ## Output Example [![Test Junkie Console Output](https://www.test-junkie.com/static/media/console_out.jpg)](https://www.test-junkie.com/static/media/console_out.jpg) Full documentation is available on **[test-junkie.com](https://www.test-junkie.com/)** Please [report](https://github.com/ArturSpirin/test_junkie/issues/new?template=bug_report.md) any bugs you find. **Our Sponsors** [](https://www.actocorp.com) become our [sponsor](https://www.patreon.com/join/arturspirin?) %package -n python3-test-junkie Summary: Modern Testing Framework Provides: python-test-junkie BuildRequires: python3-devel BuildRequires: python3-setuptools BuildRequires: python3-pip %description -n python3-test-junkie [![Build Status](https://travis-ci.com/ArturSpirin/test_junkie.svg?branch=master)](https://travis-ci.com/ArturSpirin/test_junkie) [![codecov](https://codecov.io/gh/ArturSpirin/test_junkie/branch/master/graph/badge.svg)](https://codecov.io/gh/ArturSpirin/test_junkie) [![Maintainability](https://api.codeclimate.com/v1/badges/40b17ed68d5b3eca140b/maintainability)](https://codeclimate.com/github/ArturSpirin/test_junkie/maintainability) [![Maintenance](https://img.shields.io/badge/Maintained%3F-yes-green.svg)](https://github.com/ArturSpirin/test_junkie/graphs/commit-activity) [![Known Vulnerabilities](https://snyk.io/test/github/ArturSpirin/test_junkie/badge.svg?targetFile=requirements.txt)](https://snyk.io/test/github/ArturSpirin/test_junkie?targetFile=requirements.txt) [![PyPI version shields.io](https://img.shields.io/pypi/v/test_junkie.svg)](https://pypi.python.org/pypi/test_junkie/) [![PyPI pyversions](https://img.shields.io/pypi/pyversions/test_junkie.svg)](https://pypi.python.org/pypi/test_junkie/) [![Downloads](https://pepy.tech/badge/test-junkie)](https://pepy.tech/project/test-junkie) # Test Junkie [![Twitter](https://img.shields.io/twitter/url/http/shields.io.svg?style=social)](https://twitter.com/intent/tweet?text=Test+Junkie+is+one+of+the+most+powerful+testing+frameworks+on+Python+that+you+did+not+hear+of+and+you+are+missing+out!&url=https%3A%2F%2Ftest-junkie.com&hashtags=automation,testing,python&original_referer=https%3A%2F%2Fgithub.com%2F&tw_p=tweetbutton) [![Test Junkie Logo](https://www.test-junkie.com/static/media/logo.png)](https://www.test-junkie.com/) ## 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`. ```python 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](https://www.test-junkie.com/documentation/#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](https://www.test-junkie.com/documentation/#cli). ## Output Example [![Test Junkie Console Output](https://www.test-junkie.com/static/media/console_out.jpg)](https://www.test-junkie.com/static/media/console_out.jpg) Full documentation is available on **[test-junkie.com](https://www.test-junkie.com/)** Please [report](https://github.com/ArturSpirin/test_junkie/issues/new?template=bug_report.md) any bugs you find. **Our Sponsors** [](https://www.actocorp.com) become our [sponsor](https://www.patreon.com/join/arturspirin?) %package help Summary: Development documents and examples for test-junkie Provides: python3-test-junkie-doc %description help [![Build Status](https://travis-ci.com/ArturSpirin/test_junkie.svg?branch=master)](https://travis-ci.com/ArturSpirin/test_junkie) [![codecov](https://codecov.io/gh/ArturSpirin/test_junkie/branch/master/graph/badge.svg)](https://codecov.io/gh/ArturSpirin/test_junkie) [![Maintainability](https://api.codeclimate.com/v1/badges/40b17ed68d5b3eca140b/maintainability)](https://codeclimate.com/github/ArturSpirin/test_junkie/maintainability) [![Maintenance](https://img.shields.io/badge/Maintained%3F-yes-green.svg)](https://github.com/ArturSpirin/test_junkie/graphs/commit-activity) [![Known Vulnerabilities](https://snyk.io/test/github/ArturSpirin/test_junkie/badge.svg?targetFile=requirements.txt)](https://snyk.io/test/github/ArturSpirin/test_junkie?targetFile=requirements.txt) [![PyPI version shields.io](https://img.shields.io/pypi/v/test_junkie.svg)](https://pypi.python.org/pypi/test_junkie/) [![PyPI pyversions](https://img.shields.io/pypi/pyversions/test_junkie.svg)](https://pypi.python.org/pypi/test_junkie/) [![Downloads](https://pepy.tech/badge/test-junkie)](https://pepy.tech/project/test-junkie) # Test Junkie [![Twitter](https://img.shields.io/twitter/url/http/shields.io.svg?style=social)](https://twitter.com/intent/tweet?text=Test+Junkie+is+one+of+the+most+powerful+testing+frameworks+on+Python+that+you+did+not+hear+of+and+you+are+missing+out!&url=https%3A%2F%2Ftest-junkie.com&hashtags=automation,testing,python&original_referer=https%3A%2F%2Fgithub.com%2F&tw_p=tweetbutton) [![Test Junkie Logo](https://www.test-junkie.com/static/media/logo.png)](https://www.test-junkie.com/) ## 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`. ```python 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](https://www.test-junkie.com/documentation/#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](https://www.test-junkie.com/documentation/#cli). ## Output Example [![Test Junkie Console Output](https://www.test-junkie.com/static/media/console_out.jpg)](https://www.test-junkie.com/static/media/console_out.jpg) Full documentation is available on **[test-junkie.com](https://www.test-junkie.com/)** Please [report](https://github.com/ArturSpirin/test_junkie/issues/new?template=bug_report.md) any bugs you find. **Our Sponsors** [](https://www.actocorp.com) become our [sponsor](https://www.patreon.com/join/arturspirin?) %prep %autosetup -n test_junkie-0.8a6 %build %py3_build %install %py3_install install -d -m755 %{buildroot}/%{_pkgdocdir} if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi pushd %{buildroot} if [ -d usr/lib ]; then find usr/lib -type f -printf "\"/%h/%f\"\n" >> filelist.lst fi if [ -d usr/lib64 ]; then find usr/lib64 -type f -printf "\"/%h/%f\"\n" >> filelist.lst fi if [ -d usr/bin ]; then find usr/bin -type f -printf "\"/%h/%f\"\n" >> filelist.lst fi if [ -d usr/sbin ]; then find usr/sbin -type f -printf "\"/%h/%f\"\n" >> filelist.lst fi touch doclist.lst if [ -d usr/share/man ]; then find usr/share/man -type f -printf "\"/%h/%f.gz\"\n" >> doclist.lst fi popd mv %{buildroot}/filelist.lst . mv %{buildroot}/doclist.lst . %files -n python3-test-junkie -f filelist.lst %dir %{python3_sitelib}/* %files help -f doclist.lst %{_docdir}/* %changelog * Fri Jun 09 2023 Python_Bot - 0.8a6-1 - Package Spec generated