V
V
Vanookay2020-04-07 17:31:14
Codeception
Vanookay, 2020-04-07 17:31:14

The acceptance test report in YII2 shows 0 code coverage. How to setup?

With the command codecept run --coverage --coverage-html The
report for unit and functional tests is shown normally, but any acceptance test shows

OK (2 tests, 4 assertions)

Code Coverage Report:     
  2020-04-07 14:21:22     
                          
 Summary:                 
  Classes:  0.00% (0/34)  
  Methods:  0.00% (0/177) 
  Lines:    0.00% (0/3656)

Why is this happening, how to set up so that acceptance tests are also shown in the coverage report

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Artem, 2020-04-07
@Vanookay

On acceptance tests, it is useless to run coverage, because there is no way to determine which code is running.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question