Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

itamarEarly
Copy link

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
  • I have added tests that cover my changes.
  • If adding a new instrumentation or changing an existing one, I've added screenshots from some observability platform showing the change.
  • PR name follows conventional commits format: feat(instrumentation): ... or fix(instrumentation): ....
  • (If applicable) I have updated the documentation accordingly.

- 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.
@dosubot dosubot bot added the size:XXL This PR changes 1000+ lines, ignoring generated files. label Feb 3, 2025
@CLAassistant
Copy link

CLAassistant commented Feb 3, 2025

CLA assistant check
All committers have signed the CLA.

@dosubot dosubot bot added documentation Improvements or additions to documentation testing labels Feb 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation size:XXL This PR changes 1000+ lines, ignoring generated files. testing
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants