-
Notifications
You must be signed in to change notification settings - Fork 134
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Run a test with a particular maven profile #1635
Comments
Technically, it's doable. But it's not convenient. The key is to let the Java Language Server import the project using the target profile. See: redhat-developer/vscode-java#1263 (comment) And in order to make those config files generate at the project root, you need to enable |
Thank you @jdneo for the reply. I followed the steps mentioned in redhat-developer/vscode-java#1263 (comment) but it is not working for me. Can I look at some logs to confirm whether my Test Runner is picking up the right maven profile to execute the test? |
Test Runner does not know which profile it is running towards. The way how it works is: The Java Language Server will import the maven project using m2e, which converts the Maven project to an internal project model representation. So it's the m2e needs the profile name and import it correctly. When you run a test, Test Runner ask Java Language Server for information like classpath, and run it. What kind of configuration are you changing in your test profile? |
@jdneo We have catergorized tests as per the enviroment and we initialize those enviroment as per the profile setting. |
I see. I'm afraid it's not supported right now. You have to manually run the long running tests. We environment variable, currently you can set it via the |
Hi @jdneo I have the following profile defined in my parent POM.xml . How can I configure this using
|
I see. That's properties, I was thought about env variable before. Sorry for the confusion. The BTW, Is it possible to share a minimal sample project? I would like to use that to check where is the gap. |
@jdneo I will try to put up something. |
I guess you can use the |
I want to run certain tests with a particular maven profile. Let me know how can i do that.
The text was updated successfully, but these errors were encountered: