I have this relatively strange maven project that I work on under intellij, where most submodules are java, but one module contains shell and python script (maven packages those with the maven-assembly-plugin). I manage to configure maven to execute python unitest when executing mvn test and it works when executing it on git-bash. But it doesn't work in intellij when clicking on lifecycle>test in the maven tool window.
The problem seems to be that it executes it in a powershell. We develop under windows, but the project is deployed on linux, so the shell and python scripts are expected to work on linux. I found configuration in intellij to use git-bash in the terminal tool of intellij (for example here), but nothing to use it (or another linux-like shell) to execute maven test.
=> Is there any such configuration?
Note: I am using intellij community edition 2021.3.2. I could probably get a new CE or an ultimate edition if that solves my issue (but I prefere to avoid changing/updating if not necessary)
mvn test... if there are test which use shell etc. you have to improve the test that they are able to handle the differences for windows vs. linux but that sounds wrong because your target is linux ...That brings me to the most important part.. write the code of the scripts in Java that would work on Windows etc.