Intellij ignoring breakpoint in maven project
Answered
I inherited TestNg framework driven by Excel sheet. The set up happens in MainClass with main() method. After set up the framework proceeds to execute tests identified in the sheet.
To debug failing test case I created the following Maven profile with following command:
clean compile exec:java test -PMYProfile -DexcelSheet=mySheet.xlsx
I have two breakpoints: one in main() method, another within test method itself. Intellij recognizes the breakpoint in main(), but not in the test class. Any suggestion would be much appreciated.
UPDATE: Since breakpoint is not getting checked during debugging perhaps the issue is JVM is not reporting my test class is loaded. However the tests from the class are actually being executed.
Please sign in to leave a comment.
Are they loaded in the same JVM? Please share a reproducible test case.