Closed bodax closed 5 years ago
Merging #220 into master will not change coverage. The diff coverage is
0%
.
@@ Coverage Diff @@
## master #220 +/- ##
=========================================
Coverage 77.64% 77.64%
Complexity 397 397
=========================================
Files 115 115
Lines 1333 1333
Branches 60 60
=========================================
Hits 1035 1035
Misses 259 259
Partials 39 39
Impacted Files | Coverage Δ | Complexity Δ | |
---|---|---|---|
...rc/main/java/com/github/dgroup/dockertest/App.java | 39.21% <0%> (ø) |
2 <0> (ø) |
:arrow_down: |
Continue to review full report at Codecov.
Legend - Click here to learn more
Δ = absolute <relative> (impact)
,ø = not affected
,? = missing data
Powered by Codecov. Last update 80078ca...28a203c. Read the comment docs.
@bodax , also
The unit test is required in order to check the number of lines which were printed to std output. The
com.github.dgroup.dockertest.AppTest#run
can be used as skeleton
https://github.com/dgroup/docker-unittests/issues/217#issuecomment-452762971
@dgroup what's the main idea of skeleton? There a lot of bit information about it.
@bodax , let's try to understand why this issue happens:
We already have a test which is testing the application output - com.github.dgroup.dockertest.AppTest#run
, however, it checks a successful scenario.
We need to add a new test which will be checking the failed
scenario and will verify that
StdOutput.Fake
) is correctStdOutput.Fake
) contain some particular expected lines (using HasItems
)
217