-
Notifications
You must be signed in to change notification settings - Fork 179
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
Spek 1 Plugin compatibility with Android Studio 3.3.0 #571
Comments
Also cross-referencing raniejade/spek-idea-plugin#71 and raniejade/spek-idea-plugin#68 |
Can you guys test this build out? |
0.6.1-studio3.3.zip works with Android Studio 3.3.0 (under the following configurations):
Thanks very much for the very fast resolution 😄 ! |
@raniejade how do you install that manually? I've only done it through Android Studio -> Preferences -> Plugins |
@CACuzcatlan there should be an option to install from disk. |
@CACuzcatlan that's the one. Android Studio -> Preferences -> Plugins -> Install plugin from disk... (bottom right button) After the standard Android Studio restart to initialise the plugin, you should see 0.6.1-studio3.3 is installed: |
@sraiteri Thanks! Unfortunately, I'm still getting the issue where it says Android Studio 3.3 |
@CACuzcatlan - very strange. Do you have any test plugins competing at the JUnit platform level? What is the structure of your Here's what I see when I try to run individual tests in a Spek 1 test file: Occasionally I've got to try to re-run from the gutter again, but the tests all run as expected.
|
@sraiteri I have that exact setup and I know it's not the tests because they were working before I upgraded to Android Studio 3.3. I'm using Gradle Plugin 3.3.0, Gradle 5.1.1, Spek 1.2.1, Spek plugin 0.6.1-studio3.3 Android Studio 3.3 It's definitely an issue that started with AS 3.3 since nothing else has changed. The gutter always says |
@CACuzcatlan what kotlin plugin version are you using? |
@raniejade In my gradle file under dependencies I had: I was getting the following warning: so I change it to 1.3.20 and synced. The build completed without errors but I still see |
@CACuzcatlan Are you able to share the project? If not, can you create a sample project that replicates the issue? |
I'm not sure if this issue is Kotlin related - I have had similar issues before in other projects. Tests ran as part of Gradle fine, but failed to be detected from the IDE (the In most cases, it came down to some Here's the test plugins and dependency versions I've got in the project which works (above). It uses Spek 1, Spek 2 & JUnit Jupiter: // Plugin (buildscript)
classpath "de.mannodermaus.gradle.plugins:android-junit5:1.3.2.0"
...
// Test dependencies
// Spek 1
testImplementation "org.jetbrains.spek:spek-api:1.2.1"
testImplementation "org.jetbrains.spek:spek-junit-platform-engine:1.2.1"
testImplementation "org.jetbrains.spek:spek-subject-extension:1.2.1"
// Spek 2
testImplementation "org.spekframework.spek2:spek-dsl-jvm:2.0.0-rc.1"
testImplementation "org.spekframework.spek2:spek-runner-junit5:2.0.0-rc.1"
// JUnit Jupiter (JUnit 5)
testImplementation "org.junit.jupiter:junit-jupiter-api:5.3.2"
testRuntimeOnly "org.junit.jupiter:junit-jupiter-engine:5.3.2"
// Pact tests (JUnit 5)
testImplementation "au.com.dius:pact-jvm-consumer-junit5_2.12:3.6.1"
... Project is using Kotlin 1.3.20 as well. |
Hi Spek Framework team,
Our team is currently in the process of migrating an Android app from Spek 1 to Spek 2. It's a large codebase, so migration effort will be considerable (magnitude of months).
Android Studio 3.3.0 has been officially released earlier in the week and we've noticed an incompatibility with it and v0.5.5-studio-3.0 of the Spek plugin. We're holding off on full migration of our test codebase until Spek 2 matures out of RC.
Android Studio 3.3.0 throws the following exception when the plugin initialises:
Ideally, we'd like to upgrade to the Android Studio 3.3.0 but running tests from the IDE is a blocker. No issues to report with Spek Framework plugin and the tests already ported over to Spek 2.
Is it possible to get a bug fix for the Spek plugin so it works with Android Studio 3.3.0?
The text was updated successfully, but these errors were encountered: