openllmetry icon indicating copy to clipboard operation
openllmetry copied to clipboard

feat(tests): add support for running EarlyAI-generated tests

Open itamarEarly opened this issue 11 months ago • 1 comments

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:early target to enable running EarlyAI-specific tests for the relevant projects.
    • package.json: Updated scripts to include test:early for simplified test execution.
    • project.json (for the updated projects): Configured test:early targets 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.

Documentation Updates

  • Added a new EarlyAI_README.md to 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): ... or fix(instrumentation): ....
  • [X] (If applicable) I have updated the documentation accordingly.

itamarEarly avatar Feb 03 '25 16:02 itamarEarly

CLA assistant check
All committers have signed the CLA.

CLAassistant avatar Feb 03 '25 16:02 CLAassistant