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

chore: add make target to run only modified tests #1118

Merged
merged 3 commits into from
Sep 7, 2023

Conversation

fnaranjo-vmw
Copy link
Contributor

Existing targets run all terraform or integrations tests for all services unless you use FIt, FDescribe, FWhen, etc to limit them.

This new Makefile uses git to detect which files were modified and pass them to ginkgo through the --focus-file. This in effect causes Ginkgo to ignore any other tests files in the project.

Warning: This target doesn't try to be smart and automatically run any tests related to some modified non-test file. The only thing this target does is run any test files modified in the current branch.

Checklist:

  • [ ] Have you added Release Notes in the docs repositories?
  • [ ] Have you ran make run-integration-tests and make run-terraform-tests?
  • [ ] Have you ran acceptance tests for the service under change?
  • Have you followed the Conventional Commits specification?

@cf-gitbot
Copy link

We have created an issue in Pivotal Tracker to manage this:

https://www.pivotaltracker.com/story/show/185972417

The labels on this github issue will be updated when the story is started.

Existing targets run all terraform or integrations tests for all
services unless you manually focus some tests using FIt,FWhen,etc.

This new target uses git to detect any modified uncommitted files
and pass them to ginkgo through the `--focus-file`. This in effect
causes Ginkgo to ignore any other tests and focus only on these.

Warning: This target doesn't try to be smart and automatically run
any tests related to some modified non-test files. The only thing
this target does is run any new or modified uncommitted test files.
@fnaranjo-vmw fnaranjo-vmw force-pushed the chore-make-target-modified-tests branch from 4f3a11b to a8c84c3 Compare September 5, 2023 10:26
@fnaranjo-vmw fnaranjo-vmw merged commit 7056971 into main Sep 7, 2023
5 checks passed
@fnaranjo-vmw fnaranjo-vmw deleted the chore-make-target-modified-tests branch September 7, 2023 11:08
pivotal-marcela-campo added a commit that referenced this pull request Mar 25, 2024
csb 1.0.0 defaults to opentofu download url for tofu,
hence there is no need to specify the url template anymore.

[#187199931](https://www.pivotaltracker.com/story/show/187199931)
pivotal-marcela-campo added a commit that referenced this pull request Mar 25, 2024
csb 1.0.0 defaults to opentofu download url for tofu,
hence there is no need to specify the url template anymore.

[#187199931](https://www.pivotaltracker.com/story/show/187199931)
pivotal-marcela-campo added a commit that referenced this pull request Mar 25, 2024
csb 1.0.0 defaults to opentofu download url for tofu,
hence there is no need to specify the url template anymore.

[#187199931](https://www.pivotaltracker.com/story/show/187199931)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Development

Successfully merging this pull request may close these issues.

3 participants