Closed ajayvigneshk closed 1 year ago
Marking it draft since I'm not sure if I've covered all cases and would like some feedback if the approach is okay
I like the approach. I was thinking about using the test lines as well differently, but this is simpler.
I'll try to test it on my own tonight.
I'm trying this PR. The position id seems to work correctly.
I found an issue where the output of the command doesn't clear between runs. Like if you do NeotestOutput
at the top of the file, you will see the output repeated and every time you run, it adds to that same output.
It doesn't happen when I switch back to master.
I just rebased on master, and couldn't reproduce the issue. Could you try again to see if the issue still persists?
I didn't notice the streaming results part. I think I should update code there as well?
I just rebased on master, and couldn't reproduce the issue. Could you try again to see if the issue still persists?
Indeed, I couldn't reproduce it either. Seems to be gone.
I didn't notice the streaming results part. I think I should update code there as well?
I think so, yes.
I think this is ready!
One scenario I noticed is when there's a test like this
for i <- [1, 2, 3] do
test "weird test: #{i}" do
if unquote(i) == 2 do
assert false
else
assert true
end
end
end
that passes for 1,3 but fails for 2. The sign indicator shows a pass (green tick) first then changes to error(:red tick). Due to streaming the above mentioned transition (pass to error) happens twice. I think it would be hard to fix this right now, but we can consider it as an improvement to fine tune later on
Yes, that can be left as an improvement.