An automated way to detect tests that cannot fail are checked to get minmum code coverage?

I have a dev that will get around our code coverage by writing tests that never fail.

The code is just awful, but tests will never catch it because they claim (true).

I am reviewing the code, but I cannot do everything for them, all the time. How do you get people who are motivated to create good software?

Is there a build plugin to detect tests that cannot fail?

C #, mbUnit tests.

+3
source share
8 answers

. , , - , . , .

, , , " ", . , .

, .

+3

, . - ( , dev), , , , , , , .

dev TDD? , - .. , , / .

, , , , , .

+1

/, .

, , assert(true) grep -ping.

0

.

?

0

, , , - .

  • ,

-, , - , ...

0

, , . , / , . . , , .

0

, , , , - . . , , , , unit test.

, . Nester, ( .Net Jester) - , .

, , !

: : " ?" , .

0

, . . ppl .

, " ". PEX, , , , ... , .

, "", - , . , , " " . , , 2 , .

Unit-Tests , ... , .

?

0

Source: https://habr.com/ru/post/1697231/


All Articles