The main issue (no code) was caused by the git-clone step in bitrise and after going with this user’s suggestion the code shows.
However, there is another strictly related issue:
The code coverage differs between the main branch analysis and the pull request analysis.
Main branch analysis:
ClassX in moduleA - 80% coverage
ClassY in moduleB - 50% coverage
Pull request analysis:
ClassX in moduleA - 0% coverage
ClassY in moduleB - 50% coverage
What’s important, the code (both test and main) is marked as a new code (which is correct).
New methods (ClassX):
Tests (ClassX):
- Coverage for exactly the same code in ClassY is shown correctly on the pull request analysis.
- Code coverage for both ClassX and ClassY is shown correctly on the main branch analysis