Skip to main content

PyBEN Alternative Testing Module

Project description

PyBen-Test

Alternative Testing Module

PyBEN Tester

Tester application helping find and execute test files with an easy-to-use GUI

Arguments:

directory: Root directory of test files
module: Locate test files in a python module instead of directory
regex: Regex to match test files (default='**/test_*.py')
prefix: python module to execute each test file with (default='pytest')
args: Arguments to pass to each test file execution

Execution function (easy to understand):

for i in self.selected_files:
    main_args = [sys.executable, '-m'] + self.prefix.split() + [' ', i, ' '] + self.suffix.split()
    subprocess.run(main_args)

Use cases:

Show ArgParser info:

python -m pybentest.tester -h

Default: Find and execute pytest files under the current working directory:

python -m pybentest.tester

Find and execute pytest files under a different directory:

python -m pybentest.tester -d 

Find and execute pytest files under a specific python module (if the module has pytest files inside it):

python -m pybentest.tester -m <module name>

You can also pass extra arguments like '--junitxml=utput.xml':

python -m pybentest.tester -a --junitxml=utput.xml
python -m pybentest.tester -a "--junitxml=utput.xml --alluredir=allure-results"

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pybentest-1.0.tar.gz (5.2 kB view details)

Uploaded Source

File details

Details for the file pybentest-1.0.tar.gz.

File metadata

  • Download URL: pybentest-1.0.tar.gz
  • Upload date:
  • Size: 5.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.5

File hashes

Hashes for pybentest-1.0.tar.gz
Algorithm Hash digest
SHA256 45d78b4098c1b88fa2b74d0a84a93037a3260af9fc184eef9f81fca93ace01be
MD5 37ac0739352b878bfa5a8e87009a5625
BLAKE2b-256 a1a02f64fbfd946e8153c5a9d2d1cc8891f51e4c94973a132c030452c895b0ac

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page