Running Junit using Before Launch > Run Maven Goal > jetty:run

Lets say you have an integration test that should run against a web-app in Jetty. In theory, you could run the test from IntelliJ using "Before Launch > Run Maven Goal > jetty:run". However, since "jetty:run" does not return to the command prompt, the test never starts to execute. What most of us do instead, is run "jetty:run" manually. Any way we can have the unit test execute this automatically before running?

0

Please sign in to leave a comment.