-
Notifications
You must be signed in to change notification settings - Fork 50
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
Adding a testset source-set to the compile path of another testset #53
Comments
Hi,
|
Agree, removing the idea plugin makes the project work. However, I think the idea plugin still has relevance. It allows to customise the workspace (e.g. by manipulating the XML based configuration of IDEA projects). It has a plugin for managing apt configuration in IDEA. As soon as I add the plugin ( |
Suggestion doesn't work, ignore.
|
After investigating a bit further: Could it be that this is a bug in IDEA? IDEA is able to run the code referencing the shared test code from the integration test. But the editor is showing the referenced class from sharedTest as unavailable (red in my color-scheme). I have also tried replacing my setup by your concept of TestLibrary. testSets { The effect is the same! |
Strange, I'm experiencing the same. I also noticed that the problem goes away when I mark So maybe the IDEA editor has a problem with one test source importing another (even though the runner seems to take it). The only "fix" I can imagine is to exempt test libraries from being marked as "test sources" by the plugin. |
I have upgraded to 2.1.1 (with Gradle 5.1.1) and added a test library and trying to use it with a out-of-the-box source set
The IDE is showing the same symptom but also now the build fails the This is the commit showing the bug: MartinAhrer/gradle-testset-plugin-ideabug@cb5f1ad |
Using 2.1.1 with Gradle 5.5.1 trying to add a dependency from a module to integration tests:
This also fails with
Both IDEA & CLI compile fails with the same error If I remove the testSet definition & try same with like below, it works:
|
After upgrading to version 2.2.1 of the plugin and Gradle 6.0.1 this issues still exists (with current IDEA 2019.1.3).
|
I have a scenario where I want to re-use code from a testset in another testset. The setup is as follows
This compiles and runs fine when running the gradle CLI to build and test. However the IDEA integration seems to fail as the code does not compile in the IDE. Running this with JDK 8 + IDEA 2018.2.4.
See https://github.com/MartinAhrer/gradle-testset-plugin-ideabug.
It looks like this has worked with earlier versions of IDEA + the testset plugin.
The text was updated successfully, but these errors were encountered: