TeamCity JUnit help

 I'm trying to run junit tests in team city but I get the following error message:
"JUnit run configuration with "null" test object is not supported"

I'm not using a maven or ant build, but a shared run configuration as described in https://confluence.jetbrains.com/display/TCD18/IntelliJ+IDEA+Project

The actual test is a simple assertEquals(5,5), so it shouldn't be failing on that.
I don't know if it's because TeamCity somehow doesn't have junit.

The code compiles perfectly fine on its own, and without the run configuration team city does too.

Any idea about what I have missed to make it work?

1
3 comments

Hi

 

I have never seen this kind of error. Could you please send us a screenshot of the configuration of your build plus the build log for it using the "submit a request" button on top of the page? To get the build log, please access the build results, navigate to the build log tab, and on the top right you will find a "Download full build log" link.

0
Avatar
Permanently deleted user

I have run into the same issue in a simple test project (one class, one test). In build log:

[23:24:02][Step 1/1] Running 'PersonTest'
[23:24:02][Running 'PersonTest'] JUnit run configuration with "null" test object is not supported.
[23:24:02][Step 1/1] JUnit run configuration with "null" test object is not supported.
[23:24:02][Running 'PersonTest'] ##teamcity[buildProblem tc:tags='tc:parseServiceMessagesInside' identity='1215598794' description='JUnit run configuration with "null" test object is not supported.' type='jps-error' flowId='13383851698499']
[23:24:02][Step 1/1] Process exited with code 1
[23:24:02][Step 1/1] Process exited with code 1 (Step: IntelliJ IDEA Project)
[23:24:02][Step 1/1] Step IntelliJ IDEA Project failed
 
Is there a solution?
Server is 2018.1.3 (build 58658)
0

Hi,

 

no, there wasn't any progress, because, as far as I could tell, the requested information wasn't provided. I also have been unable to find any related issue to the topic. It looks like an issue in the shared run configuration, maybe some missing fields or something else. Sharing the screenshots and the related files might make it easier for us to replicate the problem.

 

If you can create a simple test project with it, as you mentioned, please feel free to post it to our issue tracker: https://youtrack.jetbrains.com/issues/TW

0

Please sign in to leave a comment.