Is there an undocumented `--dry-run` or something ...
# general
a
Is there an undocumented
--dry-run
or something similar in Pants? I want to integrate it into my CI process, and want to run some quick checks on my local machine first to verify that
--changed-since
will work as I expect upstream. E.g. "Show which tests _would have ran_`.
l
Maybe I do not understand you correctly, but you can just run your pants command with
--changed-since
locally?
l
Morten, can you
pants list
instead with filter to see which tests will get run?
Copy code
pants --changed-since=main list --filter-target-type=python_test
https://www.pantsbuild.org/docs/advanced-target-selection#filter-options
The output from here should be the tests that will get run if you replace the
test
with
list
a
That should do it, @late-advantage-75311, thanks!
I could do that @lemon-yak-80782, but that would actually run the tests as well, I was looking for an overview of which files would run and easily compare them when making changes.
👍 1
l
Morten, btw, are you sure that changed-since is what you want? for the case of tests
oh sorry, my bad,
--changed-dependents=transitive
is a separate flag
👍 1
❤️ 1
you would def want that it in the above too