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

[FEATURE]: Test Execution and Coverage with Jest/Vitest #13

Open
helabenkhalfallah opened this issue Oct 21, 2024 · 0 comments
Open

[FEATURE]: Test Execution and Coverage with Jest/Vitest #13

helabenkhalfallah opened this issue Oct 21, 2024 · 0 comments
Assignees
Labels
Milestone

Comments

@helabenkhalfallah
Copy link
Member

helabenkhalfallah commented Oct 21, 2024

✨ Description

This feature integrates automated testing and test coverage analysis into Vitality, specifically targeting projects using Jest or Vitest as their testing framework. It will automatically detect the presence of Jest or Vitest configurations, execute the tests, and calculate code coverage, providing developers with valuable insights into their project's testing effectiveness.

🚀 Motivation

  • Calculate and visualize test coverage to identify areas of the codebase that lack sufficient testing, promoting comprehensive test suites.
  • Detect and address potential issues and regressions early in the development process through continuous testing.
  • Integrate testing and coverage analysis seamlessly into the Vitality workflow, enhancing development efficiency.

📝 Proposed Solution

  • Create new Auditor
  • Implement a mechanism to detect the presence of Jest or Vitest configuration files (e.g., jest.config.js, vite.config.js) within projects on the platform.
  • If a supported test configuration is found, automatically trigger the execution of the test suite using the appropriate test runner (Jest or Vitest).
  • Calculate code coverage metrics during test execution to assess the extent to which the codebase is covered by tests.
  • Process reports.
  • Identify recommendations and keywords.
  • Store reports.
  • Update BFF schemas and resolvers.
  • Frontend Visualisation.

🔗 Relevant Links (if any)

@helabenkhalfallah helabenkhalfallah added the enhancement New feature or request label Oct 21, 2024
@helabenkhalfallah helabenkhalfallah added this to the Vitality 2.0 milestone Oct 21, 2024
@helabenkhalfallah helabenkhalfallah added feature and removed enhancement New feature or request labels Oct 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants