Open-sourcing Python Test Runner for multiple tests in parallel

WHAT’S NEW:

A new Python-based project called Python Test Runner (ptr), that allows developers to run Python unit test suites. The main difference between ptr and existing test runners is that ptr crawls a repository to find Python projects with unit tests defined in their setup files. It then runs each suite in parallel with configured enabled steps.

WHY IT MATTERS:

The ptr project was created as a way to provide a lightweight tool using standard open source Python components. Supported and tested on Linux, MacOS, and Windows, ptr allows developers to test multiple projects in one Python environment and run the tests in parallel.

To achieve this, ptr recursively searches for setup.(cfg|py) from BASE_DIR (-b) and parses the found setup files for ptr configuration. If setup.(cfg|py) exists with ptr configuration, ptr runs the tests. When running test suites in parallel, all steps will be run for each suite until failure, and only failed runs will have their output written to stdout.

USE IT FOR:

ptr has four main use cases:

  • Running a Python test suite
  • Optionally checking and enforcing code coverage requirements
  • Optionally formatting and linting Python code
  • Optionally performing static type analysis

GET IT ON GITHUB:

ptr on github
ptr on PyPI

The post Open-sourcing Python Test Runner for multiple tests in parallel appeared first on Facebook Code.

Funding

We need your support to operate it properly. We have lots of ideas but less fund, so help us with your funding.

Contribute

Thoughts of the day

A perfection of means, and confusion of aims, seems to be our main problem

Albert Einstein
Sell your product online

Do you want to sell products online with no extra cost?

Send your details, our executive will contact you

Email:

Mobile:

Location:

Polls
What you like most in facebook?
News
33%

 


Games
33%

 


Images
13%

 


Videos
21%

 


Tutorial On Request
Q. Ask us for any tutorial or any thing which helps to build your career better.
Email:
Query: