You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There is still something funky going on with status markers: only the latest defined of the child tests which have run updates the marker. So if you run the entire set of children, the last result will be the only one reflected: if you then run any child but the last one, the status marker does not even update to reflect that the test is running. If you run individual children (from the summary window), then the status marker is updated iff you haven't run any later-listed children.
I think I've figured out what's going on here. My change in this area in 6676edc#diff-866d3516ad8bfe1d181d7b54bddf2bb25543d9e18828cd9876bab6401707dfc4 wasn't correct: it means that we set a mark on the test's first line for the parent and every child that has a result in results, which explains the behaviour I've observed. Instead, we should simply skip setting status markers for child tests, deferring to the parent.
The text was updated successfully, but these errors were encountered:
This fixesnvim-neotest#305, by ensuring that rangeless tests will not have markers
written at all, avoiding overwriting their parent's mark.
This does introduce another, less significant, issue: the marker for a
test will always indicate the result of the last time that the parent
test was explicitly executed, including being absent if the parent test
has never been specifically requested. (Currently, this likely only
occurs when using the summary window, so users can reference that for
more precise result info. This could become a more annoying issue with,
for example, a "run all failed tests" command in future which might
bypass parent test execution.)
This fixes#305, by ensuring that rangeless tests will not have markers
written at all, avoiding overwriting their parent's mark.
This does introduce another, less significant, issue: the marker for a
test will always indicate the result of the last time that the parent
test was explicitly executed, including being absent if the parent test
has never been specifically requested. (Currently, this likely only
occurs when using the summary window, so users can reference that for
more precise result info. This could become a more annoying issue with,
for example, a "run all failed tests" command in future which might
bypass parent test execution.)
I ran into this in my neotest-python PR (nvim-neotest/neotest-python#36 (comment)):
I think I've figured out what's going on here. My change in this area in 6676edc#diff-866d3516ad8bfe1d181d7b54bddf2bb25543d9e18828cd9876bab6401707dfc4 wasn't correct: it means that we set a mark on the test's first line for the parent and every child that has a result in
results
, which explains the behaviour I've observed. Instead, we should simply skip setting status markers for child tests, deferring to the parent.The text was updated successfully, but these errors were encountered: