Plugin Testing - Git Integration
Answered
Hey all,
I'm developing a plugin which relies heavily on git4idea.
I'm now wondering how I can set up my test fixture to properly test the Git integration in my plugin.
I already found an issue from 2018 here about the same topic, but I'm not sure If you notice my post there.
The issue mentions a youtrack ticket which was resolved by publishing the class GitPlatformTest via the artifact
com.jetbrains.intellij.platform:vcs-test-framework
However, I can't find it anymore in the maven repo https://cache-redirector.jetbrains.com/intellij-dependencies.
So my questions are:
1) Is there a better way to test Git integration in my plugin?
2) If not, is there an alternative artifact or repository which I can use to extend from GitPlatformTest?
Thanks in advance
Please sign in to leave a comment.
That's the URL for 3rd party dependencies, it is available from the IntelliJ repository https://plugins.jetbrains.com/docs/intellij/intellij-artifacts.html
Oh boy... I somehow overlooked the Snapshot Repository. It works now. Thanks for the swift reply!
Sorry If I'm missing something obvious here but although I managed to find the package, it has dependencies to a number of artifacts which can't be found in any of 3 repositories. Namely:
I've set my sandbox intellij version to 22.3739.54 and added
com.jetbrains.intellij.platform:vcs-test-framework:222.3739.54
to my build.gradle dependencies.
Sorry for delay. I was unable to reproduce this problem with this minimal setup on my side, could you please share your project?
```
Sure! I omitted some parts of the tasks and apollo config for readability and privacy reasons but this really shouldn't matter. Please let me know if it does.
Thanks, reproduced. It seems more repositories must be configured in addition, researching...
As a temporary workaround, please add these repositories additionally.