I'm trying to setup a Jenkins Server to run our JSunit tests automatically as described on the wiki https://wiki.servoy.com/display/Serv7/Using+Jenkins+As+Continuous+Build+Software
Jenkins works wonderfully, but the unit tests do not run. I get the following exception when the ant build commes to the "run_smart_client_tests_if_exported_ok" part:
- Code: Select all
run_smart_client_tests_if_exported_ok:
[junit] Running com.servoy.automation.jsunit.smartclient.ServoyJSUnitTestRunner
[junit] Testsuite: com.servoy.automation.jsunit.smartclient.ServoyJSUnitTestRunner
[junit] Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0 sec
[junit] Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0 sec
[junit]
[junit] Null Test: Caused an ERROR
[junit] null
[junit] java.lang.reflect.InvocationTargetException
[junit] Caused by: java.lang.IllegalStateException
[junit] at com.servoy.j2db.ClientState.<init>(ClientState.java:151)
[junit] at com.servoy.j2db.smart.J2DBClient.<init>(J2DBClient.java:733)
[junit] at com.servoy.j2db.smart.J2DBClient.<init>(J2DBClient.java:725)
[junit] at com.servoy.automation.Za.Za.<init>(Za.java:44)
[junit] at com.servoy.automation.Za.Zb.<init>(Zb.java:7)
[junit] at com.servoy.automation.Za.Zb.getInstance(Zb.java:20)
[junit] at com.servoy.automation.Za.Zb.access$000(Zb.java:14)
[junit] at com.servoy.automation.Za.Zf.Za(Zf.java:1)
[junit] at com.servoy.automation.Za.Zf.Zb(Zf.java:48)
[junit] at com.servoy.automation.jsunit.smartclient.Za.<init>(Za.java:80)
[junit] at com.servoy.automation.jsunit.smartclient.ServoyJSUnitTestRunner.suite(ServoyJSUnitTestRunner.java:10)
[junit]
[junit]
[junit] Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=128m; support was removed in 8.0
[junit] Test com.servoy.automation.jsunit.smartclient.ServoyJSUnitTestRunner FAILED
Has anybody else experienced this?
I'm trying to find something in the logs, but no luck. The JSUnit tests run fine when run in the developer, but i cannot get them to work with the ServoyJSUnitTestRunner class.
The solution is exported without problems and it resides in the directory defined in smart.test.exports.dir in the export_and_test.properties file