-
-
Notifications
You must be signed in to change notification settings - Fork 477
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
Run Pester Tests only on changed files (Git) #2600
Comments
#607 is your request similar to this? |
Similar, but not quite the same. The file system watcher is great for local development. The |
Thank you for the suggestion. I'm a bit confused about the intended behavior. Should it track local uncommited changes or compare commit/branches (CI)?
Running e.g.
With CI we'd have to diff the commit/target and base ref, e.g. Using Running only modified test files feels like a rare scenario for a CI, as you'd likely want to catch unexpected changes by testing the complete solution. In general, we'd be taking a dependency on |
Checklist
Summary of the feature request
As a user, I would like to be able to run pester tests only on changed files. These may either be the git differences between the current and last commit, or the current changes in the workspace.
In cases where the number and runtime of tests in a repository is very large, this would be extra helpful to test only the changes one made, before holistic testing is ran on CI/CD.
How should it work?
Invoke-Pester -GitChanges
The text was updated successfully, but these errors were encountered: