-
Notifications
You must be signed in to change notification settings - Fork 0
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
Setup plugin testing and publication #25
base: main
Are you sure you want to change the base?
Conversation
# Conflicts: # kotlinx.fuzz.gradle/build.gradle.kts
@Test | ||
fun test() { | ||
// for now, just checking that all dependencies resolve | ||
val kfuzzer: KFuzzer = KFuzzerImpl(byteArrayOf(1)) |
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.
It seems like my mistake, I believe that KFuzzerImpl
should be internal, but I may be wrong
import kotlin.test.Test | ||
import kotlin.test.assertEquals | ||
|
||
// TODO: kotlin.test requires a class with empty ctor, NOT an object. Will this be a problem? |
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.
It can be solved in two ways:
- By removing
@Test
annotation, we don't need it by design, therefore an actual user will be able to useobject
instead ofclass
- By adding dependency on
junit-platform-engine
and using ```
tasks.test {
useJUnitPlatform()
}
However I am not sure that it won't break anything, since we use our own engine. But still it helps in replacing `class` with `object`
} | ||
|
||
group = "org.plan.research" // TODO: org.jetbrains.research(.plan) ? |
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.
- I am getting
java.lang.NullPointerException: group.displayName must not be null
when building. It doesn't affect anything but it is a little bit annoying, so if you could fix it, it would be wonderful - We have
GROUP_ID
constant inversions.kt
you may consider looking at it. - We have
group
set in theorg.plan.research.kotlinx-fuzz-module.gradle.kts
why should we change it here?
Turns out we can test our plugin without local publication! (which I set up, spending many hours debugging a single misplaced dot 💀, which we don't need in the end ☠️)