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

Restructure aspect integration tests #179

Merged
merged 8 commits into from
Dec 28, 2023
Merged

Conversation

martis42
Copy link
Owner

The new test framework has the same design as used by the automatic fixes test framework: Individual test are dedicated files. This moves the test definitions closer to the code they are testing and also allows custom logic and explanatory comments in the tests.

Also we decouple the test cases from the workspace bazelrc file to gain more flexibility in using Bazel flags which are only available for some Bazel versions.

Furthermore, we improve efficiency by:

  • Combining some test cases which had no reason for separation besides the old test framework not supporting target patterns for multiple targets.
  • using --nolegacy_external_runfiles

The new test framework has the same design as used by the automatic fixes
test framework: Individual test are dedicated files.
This moves the test definitions closer to the code they are testing and also
allows custom logic and explanatory comments in the tests.

Also we decouple the test cases from the workspace bazelrc file to gain
more flexibility in using Bazel flags which are only available for some
Bazel versions.

Furthermore, we improve efficiency by:
- Combining some test cases which had no reason for separation besides the
  old test framework not supporting target patterns for multiple targets.
- using `--nolegacy_external_runfiles`
Normally they are enforced automatically. But one could have created a
commit with `--no-verify` which would then not be recognized until the CI
runs.
More explanatory name and fix wrong content from error in test framework
migration
@martis42 martis42 merged commit 54bffd2 into main Dec 28, 2023
4 checks passed
@martis42 martis42 deleted the restructure_aspect_tests branch December 28, 2023 11:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant