I just ran into something and I'm not sure if it's...
# general
g
I just ran into something and I'm not sure if it's a bug or expected behavior. When I make a change to a signle python test, but not any actual code -- this command does not trigger any tests to be run. Is this expected?
Copy code
$ pants \
    --changed-since=origin/main \
    --changed-dependents=transitive \
    test
$
My expectation is that this would at least run the test that was changed. list does show the changed test too:
Copy code
$ pants \
    --changed-since=origin/main \
    --changed-dependents=transitive \
    list
data/jobs/my-job/tests/tasks/test_abc.py:tests
$
I'm on bleeding edge 2.21.0.dev3
s
for
pants dependents
there is
--dependents-closed
option https://www.pantsbuild.org/2.19/reference/goals/dependents#closed but I don't see such an option for
[changed]
, maybe it's actually a bug https://www.pantsbuild.org/2.19/reference/subsystems/changed#dependents