Running tests in-line breaks external tool

Answered

Hi,

I am having a problem running JUnit tests in-line (clicking on the small arrow in picture) 
My tests are configured to run a 'make' command as an external tool before the tests are executed.

The external tool is configured to run the make command in the project root directory. 

This all works perfectly fine if I use the 'Run' command at the top of the window to run the test.  

For some reason the in-line triggering of the tests doesn't seem to pick up the working directory of the external tool and the make command fails. 

If I run the test in-line it fails and then if I simply click the 'Run' button at the top of the screen with the configuration already loaded by the in-line triggering, it works and my tests execute correctly.

It seems like there is a bug to me, that the working directory of external tool is lost? Hopefully that all makes sense! :) 

 

 

0
6 comments

Hi. Is it possible to create a demo project to reproduce a problem?

0
Avatar
Permanently deleted user

I can certainly try. Do you know if there are any guidelines for submitting demo projects for these use cases? I.e. should I just send a zipped up Project file etc. 

0

there are no guidelines, zip archive is fine.

0
Avatar
Permanently deleted user

Hi,

I created a new maven quickstart project and a video to show the problem. MP4 file is in the project root.

Zip here: https://drive.google.com/file/d/1Wd-hcMNCIZOxkzwlg0kpdZyKFHNY2jTW/view?usp=sharing

0

Hi.

I have raised a ticket for this problem, please follow:

https://youtrack.jetbrains.com/issue/IDEA-198964

0
Avatar
Permanently deleted user

Thanks, will do.

0

Please sign in to leave a comment.