atom-python-test icon indicating copy to clipboard operation
atom-python-test copied to clipboard

Test that are passing are not shown on dock panel

Open agorer opened this issue 5 years ago • 3 comments

Since updating to 1.0.0 only if there is an error you will see something in the results dock panel. In lib/executor/pytest-executor.js there is nothing done when the BufferedProcess receives an output and updates on the execution are not printed on the results panel.

agorer avatar Feb 28 '20 09:02 agorer

Hey @agorer , I am unable to reproduce this. I have tested running only one test that is passing and the results show the panel with the only test that is passing. I have tested running only one test that is failing and the results are shown too. Could you help me to reproduce this?

Thanks!

pghilardi avatar Feb 28 '20 13:02 pghilardi

I have gone back to the previous version, so I am not really able to test it anymore. But from what I remember, in lib/executor/pytest-executor.js nothing is done when there is an output event on the BufferedProcess so no real time updates are shown. No results were shown when all tests were finished, but I see that is taken care of in the exit event of the BufferedProcess.

agorer avatar Mar 09 '20 09:03 agorer

@agorer ,

The plug-in does not update in real time while monitoring the stdout, because now it just monitors when the process exist, then collects the data using the junit parser to parse the results. So, if there is an error (py.test not available for example), the dock will print an error. Otherwise (if tests pass, fail, etc) it will show the results.

pghilardi avatar Mar 11 '20 08:03 pghilardi