简体   繁体   中英

m2eclipse filtering test resources

I am using m2eclipse and I want to right click and run tests from inside eclipse while the test resources get filtered from Maven. How can I do this? From eclipse when I right click on a test I do not get any m2eclipse options

Julia.

Similar to:

Debugging maven junit tests with filtered resources?

右键单击项目->运行方式-> Maven测试

  1. Setup filtering in your pom.xml (and you'll get filtering under Eclipse with m2eclipse, m2eclipse runs process-resources after a change of any resource).
  2. Run your test as any other test ( right-click then Run As > JUnit Test ).
  3. After a first run, you can run an individual test method ( right-click on the method in the JUnit view).

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM