Skip to content

Commit

Permalink
printresults: add tests to cover output and Sonarqube output type (#760)
Browse files Browse the repository at this point in the history
This commit add new tests to cover Sonarqube output type and add asserts
to check if what was printed is correctly.

The tests was changed to use table testings approach to make more easily
to add a new testcase.

The PrintResults implementation was improved too. Basically a new
io.Writer field was added to customize where we will write outputs. The
default constructor will always write to Stdout, but on tests we use a
custom BufferString to write.

This commit also make some improvements on code organization and private
method names.

Updates #718

Signed-off-by: Matheus Alcantara <matheus.alcantara@zup.com.br>
  • Loading branch information
matheusalcantarazup authored Nov 11, 2021
1 parent 0151921 commit 20e7581
Show file tree
Hide file tree
Showing 2 changed files with 726 additions and 236 deletions.
Loading

0 comments on commit 20e7581

Please sign in to comment.