
Product
Announcing Precomputed Reachability Analysis in Socket
Socket’s precomputed reachability slashes false positives by flagging up to 80% of vulnerabilities as irrelevant, with no setup and instant results.
A UI for controlling PyTest interactively. With it, you can explore your test hierarchy (test packages/modules/classes/methods etc.), run tests at the click of a button and see the results presented in your web browser.
docker-compose.yml
file in the root test directory.Install and get started running your own PyTest tests:
pip install pytest-commander
pytest_commander /path/to/your/tests
I recommend installing into an activated virtual environment. You will want to make sure that all additional dependencies required to run your tests are installed into the same virtual environment.
When you run with default options, the web app to browse and run tests should be
opened automatically in your default browser. To view full docs for the
command-line parameters, run pytest_commander --help
.
Alternatively you may build from source. In addition to the prerequisites above, you must ensure you have installed pipenv and npm.
git clone https://github.com/ryanc414/pytest_commander.git
cd pytest_commander
python build.py
python test.py
You may then install the local directory into an activated virual environment, along with other dependencies installed to run your tests:
pip install .
pytest_commander /path/to/your/tests
Configuration for PyTest such as extra command-line arguments may be specified by adding a pytest.ini file in the same directory. See https://docs.pytest.org/en/latest/reference/customize.html#pytest-ini for more details.
Note that there is a known issue when using pytest_commander along with the xdist plugin, used to parallelise tests among multiple processes. You will have to remove xdist config options from your pytest.ini in order to use pytest-commander.
Previously this project was called "pytest_web_ui". I felt that this name gave too much emphasis to the implementation detail of the UI being a web app, when it could easily have been implemented in some other way (e.g. as an electron app) and still serve the same purpose. I chose the name "pytest_commander" to reflect the true purpose of this project: giving a friendly and intuitive interface for developers to take command of their tests.
Happy testing!
FAQs
An interactive GUI test runner for PyTest
We found that pytest-commander 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
Socket’s precomputed reachability slashes false positives by flagging up to 80% of vulnerabilities as irrelevant, with no setup and instant results.
Product
Socket is launching experimental protection for Chrome extensions, scanning for malware and risky permissions to prevent silent supply chain attacks.
Product
Add secure dependency scanning to Claude Desktop with Socket MCP, a one-click extension that keeps your coding conversations safe from malicious packages.