dgarlitt / karma-nyan-reporter

Nyan Cat style reporter based on the Mocha version
MIT License
169 stars 19 forks source link

Issue with display when run through 'Task Runner Explorer' in VS #22

Closed ste2425 closed 7 years ago

ste2425 commented 7 years ago

When being run through Visual Studio's Task Runner Explorer for Node the output appears broken. Instead of moving from left to right, each 'step' is re-rendered on the line below.

Running the same through CMD or GitBash and it renders correctly.

Task runner: image

GitBash: image

This is using: V0.2.4

dgarlitt commented 7 years ago

@ste2425 I appreciate the feedback, however I don't have a setup for debugging Windows behaviors. This is the first issue opened relating to this scenario. I will leave it open for a bit to see if you or someone else with a similar setup wants to try and debug the issue. If a clean/simple cross-compatible solution can be arrived at, I will be happy to accept the pull request.

If the issue remains untouched for too much longer, I will be closing it. In the meantime, you can use renderOnRunCompleteOnly: true in your karma config file to have the output rendered only after all tests have finished (it's not as fun to watch, though).

whyboris commented 7 years ago

I strongly suspect that renderOnRunCompleteOnly: true is an adequate solution to the problem.

Issue seems not to happen on VS Code 1.12.2 (running MacOS Sierra) -- animation shows correctly. Unsure about Visual Studio's Task Runner Explorer -- it looks like it's not been updated since early 2015.