Running tests with ipr runner

Hi,
I'm trying to run just one test class, but I don't understand how I'm
supposed to define it. The FAQ says:
You can define it explicitly by typing
"*/Test.java" where
"*" is the template of the module name
"*/Test.java" is the template of the test class name.
That's not very clear to me.

I'm trying to include the file "com/bidon/tests/AllTest.java" from a
module called "Java". I tried "Java/com/bidon/tests/AllTest.java" and
the build succeeds, but I don't see the test output. When I change the
string to "Java/com/bidon/tests/BlahBlah.java" (i.e. a file that doesn't
exist) I don't get any complaints and the build succeeds.

Questions:
1) How am I actually supposed to specify the name of the test class in
this case?
2) How do I get access to the test results?
http://www.jetbrains.com/teamcity/documentation/faq.html
talks about an Artifact paths field, but that doesn't seem to be present
in the .ipr runner.

Thanks,
R
PS Any chance of a new EAP some time soon? I need to be able to run the
server in headless mode, and that doesn't work at the moment
http://www.jetbrains.net/jira/browse/TW-773
(was fixed 10 days ago)

4 comments
Comment actions Permalink

You have to separate module name from the test name with a colon, like this:
Java:com/bidon/tests/AllTest.java.


--
Olesya Smirnova
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"


"Robert Gibson" <robbie_usenet@yahoo.co.uk> wrote in message
news:eemaai$5p2$1@is.intellij.net...

Hi,
I'm trying to run just one test class, but I don't understand how I'm
supposed to define it. The FAQ says:
You can define it explicitly by typing
"*/Test.java" where
"*" is the template of the module name
"*/Test.java" is the template of the test class name.
That's not very clear to me.

>

I'm trying to include the file "com/bidon/tests/AllTest.java" from a
module called "Java". I tried "Java/com/bidon/tests/AllTest.java" and the
build succeeds, but I don't see the test output. When I change the string
to "Java/com/bidon/tests/BlahBlah.java" (i.e. a file that doesn't exist) I
don't get any complaints and the build succeeds.

>

Questions:
1) How am I actually supposed to specify the name of the test class in
this case?
2) How do I get access to the test results?
http://www.jetbrains.com/teamcity/documentation/faq.html
talks about an Artifact paths field, but that doesn't seem to be present
in the .ipr runner.

>

Thanks,
R
PS Any chance of a new EAP some time soon? I need to be able to run the
server in headless mode, and that doesn't work at the moment
http://www.jetbrains.net/jira/browse/TW-773
(was fixed 10 days ago)



0
Comment actions Permalink

OK, got it thanks.
R

0
Comment actions Permalink

But what is the working directory for the tests by default? It doesn't
seem to be the same as the working directory for the build -
buildAgent/work.
R

0
Comment actions Permalink

Should be the same. But classes will be compiled into temp directory.

--
Olesya Smirnova
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"


"Robert Gibson" <robbie_usenet@yahoo.co.uk> wrote in message
news:eerns3$gg6$1@is.intellij.net...

But what is the working directory for the tests by default? It doesn't
seem to be the same as the working directory for the build -
buildAgent/work.
R



0

Please sign in to leave a comment.