-
Notifications
You must be signed in to change notification settings - Fork 39
feat(graalvm-kt): support for powerassert #1565
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
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #1565 +/- ##
==========================================
+ Coverage 39.80% 39.86% +0.06%
==========================================
Files 769 769
Lines 37004 37010 +6
Branches 5235 5230 -5
==========================================
+ Hits 14729 14754 +25
+ Misses 20510 20489 -21
- Partials 1765 1767 +2
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report in Codecov by Sentry.
🚀 New features to boost your workflow:
|
d0bc204 to
aed5cc7
Compare
31c097f to
bc62252
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR adds support for Kotlin Power Assert functionality to the Elide testing framework, enabling enhanced assertion output with detailed breakdowns when tests fail. The implementation integrates the Power Assert compiler plugin into the Kotlin compilation pipeline for improved test debugging experience.
- Integration of kotlin-power-assert-compiler-plugin-embeddable into build dependencies
- Configuration of Power Assert plugin with predefined assertion functions from kotlin.test
- Updates to compiler configuration to enable Power Assert by default for test builds
Reviewed Changes
Copilot reviewed 10 out of 10 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
| gradle/elide.versions.toml | Adds kotlin-powerAssert-embedded dependency reference |
| packages/graalvm-kt/build.gradle.kts | Includes Power Assert plugin in dependencies and embedded resources |
| packages/builder/build.gradle.kts | Adds Power Assert plugin dependency to builder module |
| packages/graalvm-kt/src/main/kotlin/elide/runtime/gvm/kotlin/KotlinCompilerConfig.kt | Implements Power Assert plugin configuration with function symbols and refactors plugin initialization |
| packages/builder/src/main/kotlin/elide/tooling/kotlin/KotlinCompiler.kt | Integrates Power Assert processor and adds enablePowerAssert parameter |
| packages/builder/src/main/kotlin/elide/tooling/jvm/JvmBuildConfigurator.kt | Updates plugin enablement logic from explicit true checks to false checks |
| packages/tooling/src/main/kotlin/elide/tooling/project/manifest/ElidePackageManifest.kt | Enables experimental features by default |
| packages/builder/api/builder.api | Updates API signature for configureDefaultPlugins method |
| packages/cli/src/main/kotlin/elide/tool/cli/cmd/repl/ToolShellCommand.kt | Improves test failure output formatting |
| packages/cli/src/projects/ktjvm/src/test/kotlin/sample/testGreeting.kt | Updates test expectation to demonstrate Power Assert functionality |
Comments suppressed due to low confidence (1)
packages/graalvm-kt/src/main/kotlin/elide/runtime/gvm/kotlin/KotlinCompilerConfig.kt
Outdated
Show resolved
Hide resolved
packages/graalvm-kt/src/main/kotlin/elide/runtime/gvm/kotlin/KotlinCompilerConfig.kt
Outdated
Show resolved
Hide resolved
packages/graalvm-kt/src/main/kotlin/elide/runtime/gvm/kotlin/KotlinCompilerConfig.kt
Outdated
Show resolved
Hide resolved
feat(cli): make kotlin plugins non-experimental feat(graalvm-kt): powerassert embedded deps feat(graalvm-kt): powerassert built-in chore: update pins for `tooling`/`builder` Signed-off-by: Sam Gammon <sam@elide.ventures>
bc62252 to
f202ad9
Compare
Summary
Adds support for Kotlin Power Assert when running
elide test ...on Kotlin code. Continuance of #1374.Before
After