Skip to content
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

remove option "Use Project TestNG jar", to always use Project TestNG #224

Closed
missedone opened this issue Feb 15, 2016 · 4 comments
Closed

Comments

@missedone
Copy link
Collaborator

hi @cbeust
from my understanding, the option "Use Project TestNG jar" is to solve the issue of communicating between IDE and TestNG process, e.g. issue #91 , etc. (please correct me if i'm wrong 😄 ).
this also can eliminate issue #111 "TestNg Eclipse-plugin and snakeyaml conflict" as along as people don't use "TestNG Library"

however, the option leads to confusion about which TestNG jar used at runtime for some users.

now that, we have abstracted the remote communication into testng-remote, i think it's time to remove this option to ALWAYS use project TestNG jar, do NOT append plugin embedded TestNG onto runtime process in any case.

what do you think?

CC @juherr

@juherr
Copy link
Member

juherr commented Feb 15, 2016

👍

It is possible to detect if testng.jar is missing in the project and update the classpath of the eclipse project?
In this case, maybe the plugin can continue embed a testng.jar and add it by default when missing.

@missedone
Copy link
Collaborator Author

in the case of missing testng.jar on project classpath, the IDE will show compile error, and user has to fix it before launch test.

the plugin will still embed the testng.jar in case people want to add "TestNG Library" container for their eclipse project, for example some project dont use maven or any other dep mgmt tool, etc., though i think peole rarely use this case today. however, if people add "TestNG Library", it's still on project classpath.
testng_lib

@juherr
Copy link
Member

juherr commented Feb 15, 2016

Ok, perfect for me then!

@cbeust
Copy link
Collaborator

cbeust commented Feb 16, 2016

@missedone Right on. This option was only there as a stop gap measure, but your (and @juherr)'s new implementation of the remote TestNG completely takes care of that. I'm fine with completely removing it.

On a related note, the IDEA Kobalt plug-in does all this dynamically: it ships with its own kobalt.jar but at start up, it checks to see if a newer one is available from the release web site and if there is one, it downloads it and uses it instead.

cbeust added a commit that referenced this issue Feb 16, 2016
feature #224: remove "Use Project TestNG jar" option, not add embedded testng.jar to test process in any case
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants