Configure Sonar to see Integration Tests (v6.2)

前端 未结 2 714
盖世英雄少女心
盖世英雄少女心 2021-01-01 19:48

How to visualize Integration Tests in Sonar ?

Currently I only see :

  • the global coverage (UT + IT)
  • the number of UT
2条回答
  •  迷失自我
    2021-01-01 20:27

    Merging unit testing coverage and integration testing coverage numbers is not a good idea.

    Modern unit tests that mock out all dependencies and environmental factors and have been proven to run on a developers local machine cannot by definition fail in a continuous integration environment. This makes them next to useless to run in a CI environment. Therefore, 100% unit test coverage but 0% integration test coverage means no meaningful testing is actually happening in the CI build.

提交回复
热议问题