Running Only Modified Feature Tests
and Their Dependencies
#26926
Labels
suggestion
suggestions for new features (yet to be agreed)
Tests
and Their Dependencies
#26926
Hello everyone,
I'm working on a Deno project and using BDD for testing. The project is structured with each feature and its slices in separate folders, each containing their own code and test cases.
The Issue
I recently updated a feature called "User Profile Management", which is a dependency for another feature, "Authentication". When I run
deno test
, it executes all the tests in the project, including unrelated ones like "Payment Processing", which takes a lot of time.What I'm Looking For:
I want to run only the test cases for the User Profile Management feature and its dependents (like Authentication) after making changes. This way, I can save time and focus on relevant tests.
Attempts So Far:
deno test src/user_profile/
, but it doesn't include tests from Authentication.Project Structure Example:
Goal
profile.ts
, I want to runprofile_test.ts
andauth_test.ts
.payment_test.ts
.Why It Matters
Proposed Enhancements
Auto-Run Affected Tests Based on Changes:
--affected
) that detects code modifications and automatically executes only the relevant tests, including those from dependent features. This would streamline the workflow by saving time and focusing on necessary tests.CLI Integration for Including Dependent Tests:
deno test
command with a configuration option (e.g.,--include-dependencies
) to run tests for a modified feature along with its dependencies. This would improve testing efficiency by ensuring related tests are executed without manual selection.The text was updated successfully, but these errors were encountered: