How to configure NetBeans to call Maven Failsafe to run a custom integration test?
I know that the Maven command for this is "mvn -Dit.test = checking MyClassIT". I also know how to configure "actions" in the properties of a Netbeans project.
My problems:
- Netbeans sometimes triggers an action (and calls Maven), and sometimes it just uses its own compiler and test runner. Don't know how to say to use this. Bizarre
- Netbeans appends "Test" to the class name. Instead, he should add "IT." But the strange part is that nothing happens in the action that defines this behavior. The action simply passes the class name.
- I do not want to override the regular Test File and Debug Test File files because I need them for regular tests. But custom actions appear only in the Project 'Custom' context menu, and not for a single file! So they are extraordinary. It would be nice if I could make toolbar buttons for them.
- If the planets are correctly aligned and Netbeans issues the correct command, Maven starts with the correct settings, but the debugger does not work.
Using Netbeans 7.1 and Netbeans Dev 201201260600
source
share