dmusican / Elegit

A GUI client for people who want to learn Git.
MIT License
30 stars 7 forks source link

Fix process so pom.xml doesn't need modification for headless tests #555

Open dmusican opened 6 years ago

dmusican commented 6 years ago

Right now, for running headless TestFX tests (which is fabulous), there's a line in pom.xml that looks like

<argLine> -Djava.awt.headless -Dtestfx.robot=glass -Dtestfx.headless=true -Dprism.order=sw -Dprism.text=t2k -Dtestfx.setup.timeout=20000</argLine>

This works great, but if one is debugging locally and wants to see the GUI tests actually run, this line needs to be commented out. It's super easy to forget to uncomment it again before committing. It would be great if we could modify the process so that the pom.xml didn't need modification and it could instead be handled via Run Configurations or whatever.

I tried this to some degree in IntelliJ, and didn't succeed; but I didn't hit the issue head on. This seems like it should be fixable.