-
Notifications
You must be signed in to change notification settings - Fork 236
Mixed source compile test reproducing issues/707 #710
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
1c34310
to
696b087
Compare
* Integration test helpr RulesKotlinWorkspace
696b087
to
c907eb4
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.
Ok, this is pretty nice. I like how it sets the stage for better integration tests than the examples. Hearty approval. Just some missing inline docs, but it's more a nag than a blocker.
|
||
kt_jvm_test( | ||
name = "WriteWorkspaceTest", | ||
size = "enormous", |
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.
Heh
@@ -0,0 +1,71 @@ | |||
package io.bazel.kotlin.integration | |||
|
|||
import com.google.common.truth.Truth |
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.
Unnecessary?
import java.nio.file.StandardOpenOption.CREATE_NEW | ||
import java.util.concurrent.TimeUnit | ||
|
||
class RulesKotlinWorkspace private constructor( |
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.
Can we start adding some class level kdocs, at least for new types please?
import java.time.Instant | ||
import kotlin.streams.toList | ||
|
||
object WriteWorkspace { |
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.
The naming of this singleton is a wee bit weird - but I really like the dsl.
A few example usages in a kdoc here would be super handy, so someone isn't hunting down examples in the tests.
#707