galenframework / galen-sample-java-tests

A showcase of Maven + TestNG + Galen usage
26 stars 46 forks source link

Relative path to spec files #4

Open scribahti opened 9 years ago

scribahti commented 9 years ago

I'm having trouble pointing a test to my local spec file. What directory does the program use to complete a relative path? As far as I understand from the example, it uses the specified path relative to {project root}/src/test/resources/.

If I pass "galen/sample.spec" to my Galen.checkLayout() call, I expect the program to look for a file at {project root}/src/test/resources/galen/sample.spec.

Is this correct?

ishubin commented 9 years ago

I think in that case you will have to pass "/galen/sample.spec" but I am not sure