IBM-Cloud / vscode-log-output-colorizer

Language extension for VSCode that adds syntax colorization for both the output/debug/extensions panel and *.log files.
https://marketplace.visualstudio.com/items?itemName=IBM.output-colorizer
MIT License
111 stars 28 forks source link

Add tests #3

Open jsloyer opened 7 years ago

jsloyer commented 7 years ago

Add colorize tests.

Blocked on determining how to run colorize tests.

http://stackoverflow.com/questions/38667476/adding-colorizer-tests-to-an-extension

davidwallis commented 7 years ago

I would like to see support for pester tests within vscode output if thats what you mean?

mwgustin commented 6 years ago

hey @jsloyer, I stumbled on your issue while trying to figure this out for myself on my own extension. I know this was from a while ago, but I figured I'd pass on the info anyways.

You need to add a test file like this to your test directory. This test looks for files in a "/test/colorizer-fixtures" directory to find a file, and then outputs the info in JSON into a new directory colorizer-results. If there's already a file in colorizer-results, it will test the current results against the previously generated results.