2

I have a maven project for testing. I am using testng plugin. After the test run is complete we get a test-output folder in package explorer of eclipse . What i want to do is send the email-able report from withing the "test-output" folder. To do this i need to refresh the work-space after the test run . How should i do it.

If we don't refresh we will get the old test run report on the mail . Thus its necessary to refresh work-space

YoDO
  • 93
  • 1
  • 7
  • there is a way to do some Eclipse related calls with Ant: https://stackoverflow.com/questions/985976/refresh-an-eclipse-project-with-ant, so maybe you do something similar with Maven. – Christophe Roussy Jul 09 '19 at 09:01
  • @ChristopheRoussy Couldnt find one with maven , thanks for the help though – YoDO Jul 11 '19 at 11:29

1 Answers1

1

Eclipse provides a way to automatically refresh resources modified externally: Window > Preferences > General > Workspace > Refresh using native hooks or polling.

Not sure if it'll solve your problem cause you can't control the exact instant of refreshing, but it may be worth trying.

Luis Iñesta
  • 401
  • 3
  • 6
  • Thankyou @Luis, 1 out of 10 times it works rest time it doesn't because of the fact you stated :) – YoDO Jul 16 '19 at 05:31
  • more here: https://stackoverflow.com/questions/19951785/on-eclipse-what-does-preferences-general-workspace-refresh-using-nati – Christophe Roussy Jul 17 '19 at 09:06