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

Using jupyter.api Gradle plugin breaks when I use Kotest 5.8.0 in my project #452

Closed
Jolanrensen opened this issue Feb 19, 2024 · 0 comments

Comments

@Jolanrensen
Copy link
Contributor

We use the jupyter.api Gradle plugin in our build as well as JupyterReplTestCase() in our tests to test Jupyter integration.

But somehow, the Jupyter testkit API attempts to take my project's version of kotest-assertions-core (which I set to 5.8.0), breaking calls to shouldBe with NoSuchMethodErrors:

Caused by: java.lang.NoSuchMethodError: 'void io.kotest.matchers.ShouldKt.shouldBe(java.lang.Object, java.lang.Object)'
	at org.jetbrains.kotlinx.jupyter.testkit.JupyterReplTestCase.execSuccess(JupyterReplTestCase.kt:68)
	at org.jetbrains.kotlinx.jupyter.testkit.JupyterReplTestCase.execRendered(JupyterReplTestCase.kt:30)
	at org.jetbrains.kotlinx.dataframe.jupyter.RenderingTests.executeScriptAndParseDataframeResult(RenderingTests.kt:245)

If I set my project's version of kotest to 5.5.4, there's no issue.
This should probably be separated somehow.

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

1 participant