I want to get visibility on how frequently or regularly do developers in an organisation write automated tests (unit tests) in the codebases they contribute to. I want to do this to understand the outcome of quality culture transformation being driven in the organisation to have more accountability from the developers for unit test.
We are using Sonarcloud but we are not blocking PRs if code coverage does not meet the quality gate, and we do not foresee that happening any time soon.
Questions
- Is it possible to get this kind of information from Sonarqube or Sonarcloud.
- If not, has anyone (reading this post) tried doing something like this in a different way for example by reading data from Git / Github?
- From your perspective, do you see value in fetching insights like this? Or is this pointless if we enable mandatory quality gates on code coverage?