I have a src directory which contains a main.py file which has just print(“Hello World”) in it. When those code is going to sonar, it says code coverage is less than 50%.
So, I tried to exclude this file:
But now the logs say, coverage is “0”.
I also tried changing the code inside the main.py file but it didn’t work. I tried */src/ also, same issue.
What Can be the error?