antlr / stringtemplate4

StringTemplate 4
http://www.stringtemplate.org
Other
943 stars 227 forks source link

Tests failed while building in headless environment #211

Closed smartnet-club closed 5 years ago

smartnet-club commented 5 years ago

testEarlyEval2(org.stringtemplate.v4.test.TestEarlyEvaluation) Time elapsed: 0.006 sec <<< ERROR! java.awt.HeadlessException

Similar problem described here: https://stackoverflow.com/questions/47575673/headless-exception-while-gui-testing-java-swing-with-gitlab-ci

Is it possible to switch off tests for windows environment?

parrt commented 5 years ago

Hmm...not sure how to hide those w/o cutting out.

sharwell commented 5 years ago

@smartnet-club You can exclude the test class by passing the following argument to Maven:

-Dtest=\!TestEarlyEvaluation*

🔗 From https://stackoverflow.com/a/37794230

smartnet-club commented 5 years ago

It works! Thanks!