New feature: extract related bricks from changed tests 🎉 #461
DavidVujic
announced in
Announcements
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Adding the possibility to find related bricks for changed tests. There is already an existing feature for finding out which bricks are affected by changes in tests with the
poly test diffcommand. The existing behaviour of this command is to inspect and find affected bricks by the imports in the tests (using AST parsing of the test modules).This new feature adds a
--strategy pathoption to find the corresponding brick according to the folder structure, regardless if the brick was imported in the test or not. This is useful fo extract bricks that are related (or "owners") of the tests.Example
A test has changed: test/components/my_namespace/my_brick/the_test_for_the_brick.py.
The poly tool will look for a brick in the same path structure as the test, components/my_namespace/my_brick, when using the new
--strategyoption.Usage:
The idea and suggestions on how to implement it is from a user of Polylith, thank you! ⭐ 🙏
Issue: #459
Implementation details (pull request): #460
All reactions