Errors running tests in handlebars module

33 views
Skip to first unread message

Phil Waligora

unread,
Jun 29, 2017, 5:16:10 PM6/29/17
to handlebars.java
I'm posting this for a colleague who does not yet have posting rights to the group. Can anyone offer assistance?

Hello,

I cloned the handlebars.java master branch to my mac.

While running mvn install I am getting 5 test errors (pasted below). All of them are failing because the test code is looking for .yml files in the resources folder which are missing in the master branch. Let me know how i can resolve these failures.

Running mustache.specs.CommentsTest

Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0 sec <<< FAILURE! - in mustache.specs.CommentsTest

initializationError(mustache.specs.CommentsTest)  Time elapsed: 0 sec  <<< ERROR!

java.io.FileNotFoundException: File 'src/test/resources/mustache/specs/comments.yml' does not exist

at org.apache.commons.io.FileUtils.openInputStream(FileUtils.java:136)

at org.apache.commons.io.FileUtils.readFileToString(FileUtils.java:961)

at org.apache.commons.io.FileUtils.readFileToString(FileUtils.java:979)

at mustache.specs.SpecTest.data(SpecTest.java:126)

at mustache.specs.SpecTest.data(SpecTest.java:106)

at mustache.specs.CommentsTest.data(CommentsTest.java:33)


Running mustache.specs.DelimitersTest

Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0 sec <<< FAILURE! - in mustache.specs.DelimitersTest

initializationError(mustache.specs.DelimitersTest)  Time elapsed: 0 sec  <<< ERROR!

java.io.FileNotFoundException: File 'src/test/resources/mustache/specs/delimiters.yml' does not exist

at org.apache.commons.io.FileUtils.openInputStream(FileUtils.java:136)

at org.apache.commons.io.FileUtils.readFileToString(FileUtils.java:961)

at org.apache.commons.io.FileUtils.readFileToString(FileUtils.java:979)

at mustache.specs.SpecTest.data(SpecTest.java:126)

at mustache.specs.SpecTest.data(SpecTest.java:106)

at mustache.specs.DelimitersTest.data(DelimitersTest.java:33)


Running mustache.specs.InterpolationTest

Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0 sec <<< FAILURE! - in mustache.specs.InterpolationTest

initializationError(mustache.specs.InterpolationTest)  Time elapsed: 0 sec  <<< ERROR!

java.io.FileNotFoundException: File 'src/test/resources/mustache/specs/interpolation.yml' does not exist

at org.apache.commons.io.FileUtils.openInputStream(FileUtils.java:136)

at org.apache.commons.io.FileUtils.readFileToString(FileUtils.java:961)

at org.apache.commons.io.FileUtils.readFileToString(FileUtils.java:979)

at mustache.specs.SpecTest.data(SpecTest.java:126)

at mustache.specs.SpecTest.data(SpecTest.java:106)

at mustache.specs.InterpolationTest.data(InterpolationTest.java:33)


Running mustache.specs.InvertedTest

Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0 sec <<< FAILURE! - in mustache.specs.InvertedTest

initializationError(mustache.specs.InvertedTest)  Time elapsed: 0 sec  <<< ERROR!

java.io.FileNotFoundException: File 'src/test/resources/mustache/specs/inverted.yml' does not exist

at org.apache.commons.io.FileUtils.openInputStream(FileUtils.java:136)

at org.apache.commons.io.FileUtils.readFileToString(FileUtils.java:961)

at org.apache.commons.io.FileUtils.readFileToString(FileUtils.java:979)

at mustache.specs.SpecTest.data(SpecTest.java:126)

at mustache.specs.SpecTest.data(SpecTest.java:106)

at mustache.specs.InvertedTest.data(InvertedTest.java:33)


Running mustache.specs.LambdasTest

Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0 sec <<< FAILURE! - in mustache.specs.LambdasTest

initializationError(mustache.specs.LambdasTest)  Time elapsed: 0 sec  <<< ERROR!

java.io.FileNotFoundException: File 'src/test/resources/mustache/specs/~lambdas.yml' does not exist

at org.apache.commons.io.FileUtils.openInputStream(FileUtils.java:136)

at org.apache.commons.io.FileUtils.readFileToString(FileUtils.java:961)

at org.apache.commons.io.FileUtils.readFileToString(FileUtils.java:979)

at mustache.specs.SpecTest.data(SpecTest.java:126)

at mustache.specs.SpecTest.data(SpecTest.java:106)

at mustache.specs.LambdasTest.data(LambdasTest.java:148)


Reply all
Reply to author
Forward
0 new messages