Closed matthiasdiener closed 4 years ago
Better, but still fails with
bin/projections --exit test/hello.sts
Found 4 log files
Found 4 sum files
java.lang.NullPointerException
at projections.analysis.LogLoader.determineEndTime(LogLoader.java:103)
at projections.analysis.Analysis.findEndTime(Analysis.java:257)
at projections.analysis.Analysis.initAnalysis(Analysis.java:182)
at projections.analysis.ProjMain.startup(ProjMain.java:171)
at projections.analysis.ProjMain.main(ProjMain.java:194)
make: *** [test] Error 1
, since determineEndTime()
depends on a GUI object (which we can't have with Travis).
Agreed. In any case, we need a way to run projections in a headless way, which can be used in gradle check on Travis.
I think this should be using
gradle check
(which runs by default in Travis) instead. I need to look up exactly how to do so, but I think it'll involve just exposing a method (or a few) that will be executed as tests. Doing so will be more semantically useful than just usingmake test
like this.
Adding support for gradle test/check
will require quite a bit more effort: https://www.tutorialspoint.com/gradle/gradle_testing.htm
Imho, we could merge this patch and work on a more comprehensive testing suite afterwards.
Currently fails on Travis with: