
Security News
Researcher Exposes Zero-Day Clickjacking Vulnerabilities in Major Password Managers
Hacker Demonstrates How Easy It Is To Steal Data From Popular Password Managers
pytest-cratedb-reporter
Advanced tools
Supply Chain Security
Vulnerability
Quality
Maintenance
License
A pytest plugin that writes test results to a CrateDB database.
pip install pytest-cratedb-reporter
Run pytest with the cratedb-url
option:
pytest --cratedb-url="crate://<host>:<port>" your_tests.py
Replace host
and port
with your CrateDB server details. For example:
pytest --cratedb-url=crate://localhost:4200 example/test_example.py
Verify Results:
The plugin will create a table named test_results
in your CrateDB database (if it doesn't already exist) and populate it with test result data. You can query the table to view the results.
--cratedb-url
:
crate://localhost:4200
The plugin uses the following schema for the test_results table:
Column | Type | Description |
---|---|---|
id | SRING | Primary key (UUID). |
nodeid | STRING | The test node ID. |
outcome | STRING | The test outcome (e.g., passed, failed). |
message | TEXT | The test message (if applicable). |
backtrace | TEXT | The test backtrace (if applicable). |
duration | INTEGER | The test duration in milliseconds. |
timestamp | DATETIME | The timestamp of the test execution. |
passed | BOOLEAN | True if the test passed, False otherwise. |
failed | BOOLEAN | True if the test failed, False otherwise. |
-- Select all test results:
SELECT * FROM test_results;
-- Select failed tests:
SELECT * FROM test_results WHERE failed = true;
-- Select tests with a duration over 1 second:
SELECT * FROM test_results WHERE duration > 1000;
Clone the repository:
git clone https://github.com/themodelarchitect/pytest-cratedb-reporter.git
cd pytest-cratedb-reporter
Create a virtual environment:
python -m venv venv
source venv/bin/activate
Install dependencies:
pip install -e .
pip install -r requirements.txt
Run tests:
pytest --cratedb-url="crate://<host>:<port>"
Feel free to submit pull requests with improvements or bug fixes.
This project is licensed under the MIT License.
FAQs
A pytest plugin for reporting test results to CrateDB
We found that pytest-cratedb-reporter 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.
Security News
Hacker Demonstrates How Easy It Is To Steal Data From Popular Password Managers
Security News
Oxlint’s new preview brings type-aware linting powered by typescript-go, combining advanced TypeScript rules with native-speed performance.
Security News
A new site reviews software projects to reveal if they’re truly FOSS, making complex licensing and distribution models easy to understand.