You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi everyone! As you may have known, the tutorial included how to measure code coverage. However, it is for class tests or methods tests. Our team (CS2103T-F13-1 @hoholyin@shiyao821@seeziyang@Cronyxx and myself) has found a way to get code coverage for the entire project!
At the top right hand corner, select the dropdown menu and choose 'Edit Configuration...'
Press '+' at the top left hand corner
Select 'JUnit'
Name the test 'Whole project' or something you like to identify this test
For Directory, choose the directory that contains all the tests of the project '.../main/src/test/'
Set classpath of module to be 'main.test'
For Coverage, choose 'Tracing' mode
Save the changes by clicking 'Apply'
Now, when running the tests, first select 'Whole Project' from the dropdown menu, then click on 'Run with Coverage' (The icon with the green arrow and the grey shield behind)
Test coverage for the entire project will be calculated easily!
The text was updated successfully, but these errors were encountered:
Hi everyone! As you may have known, the tutorial included how to measure code coverage. However, it is for class tests or methods tests. Our team (CS2103T-F13-1 @hoholyin @shiyao821 @seeziyang @Cronyxx and myself) has found a way to get code coverage for the entire project!
Now, when running the tests, first select 'Whole Project' from the dropdown menu, then click on 'Run with Coverage' (The icon with the green arrow and the grey shield behind)
Test coverage for the entire project will be calculated easily!
The text was updated successfully, but these errors were encountered: