Skip to content

Commit

Permalink
printresults: add tests to cover output and Sonarqube output type
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 <[email protected]>
  • Loading branch information
matheusalcantarazup committed Nov 9, 2021
1 parent b79058f commit 9b86bd2
Show file tree
Hide file tree
Showing 2 changed files with 282 additions and 238 deletions.
Loading

0 comments on commit 9b86bd2

Please sign in to comment.