configureByFile(path): always relative to <IDEA_HOME>/testdata ?


I can't find the way to specify a path, absolute or relative, for
configureByFile()?


I tried many variations, but it always get appened to ]]>/testdata.


Examples:

configureByFile( "/testcase/Foo.java");
gives :
java.io.FileNotFoundException:
C:\dev\Tool\idea-926\testData\testcase\Foo.java


configureByFile( "C:/testcase/Foo.java");
gives :
java.io.FileNotFoundException:
C:\dev\Tool\idea-926\testDataC:\testcase\Foo.java

Any idea?

Alain

2 comments
Comment actions Permalink

That's right. I can provide a property like -Didea.testdata.path if you die
hard need it.

--

Best regards,
Maxim Shafirov
JetBrains, Inc / IntelliJ Software
http://www.intellij.com
"Develop with pleasure!"


"Alain Ravet" <alain.ravet.list@wanadoo.be> wrote in message
news:bk4arq$f7v$1@is.intellij.net...
>

I can't find the way to specify a path, absolute or relative, for
configureByFile()?

>
>

I tried many variations, but it always get appened to

/testdata. > >]]>

Examples:

>

configureByFile( "/testcase/Foo.java");
gives :
java.io.FileNotFoundException:
C:\dev\Tool\idea-926\testData\testcase\Foo.java

>
>

configureByFile( "C:/testcase/Foo.java");
gives :
java.io.FileNotFoundException:
C:\dev\Tool\idea-926\testDataC:\testcase\Foo.java

>

Any idea?

>

Alain

>


0
Comment actions Permalink

> .. if you die hard need it.

We asked so much for a testing framework, it would be a shame if we
didn't use it, once you provided it. Aren't you happy :) ?



> That's right. I can provide a property like -Didea.testdata.path

If your test code relies heavily on it, I guess you don't want to touch
it too much, but I'd much prefer to see it work the standard way,
absolute, or relative to the r.c. directory.

Alain

0

Please sign in to leave a comment.