openllmetry
openllmetry copied to clipboard
feat(tests): add support for running EarlyAI-generated tests
Introduced EarlyAI-generated tests to enhance test coverage and quality.
- Added support for running these tests by making the following updates:
-
nx.json: Added a
test:earlytarget to enable running EarlyAI-specific tests for the relevant projects. -
package.json: Updated scripts to include
test:earlyfor simplified test execution. -
project.json (for the updated projects): Configured
test:earlytargets to handle EarlyAI test execution. -
pytest.ini: Added global configuration for custom markers (
happy_path,edge_case) to better organize tests. - EarlyAI_README.md: Added a new README file explaining the integration and execution of EarlyAI-generated tests.
-
nx.json: Added a
Documentation Updates
- Added a new
EarlyAI_README.mdto provide detailed information on:- The purpose and usage of EarlyAI-generated tests.
- Configuration updates (
nx.json,package.json,pytest.ini). - Instructions for running tests.
How to Run EarlyAI Tests
The detailed instructions for running EarlyAI tests are available in the EarlyAI_README.md. Here's a quick overview:
-
Run all tests:
npm run test:early -
Run tests per project:
nx run <project-name>:test:early
- [X] I have added tests that cover my changes.
- [X] If adding a new instrumentation or changing an existing one, I've added screenshots from some observability platform showing the change.
- [X] PR name follows conventional commits format:
feat(instrumentation): ...orfix(instrumentation): .... - [X] (If applicable) I have updated the documentation accordingly.