Skip to content

Conversation

restingbull
Copy link
Collaborator

@restingbull restingbull commented Apr 7, 2022

  • Integration test helpr RulesKotlinWorkspace

#707

@restingbull restingbull force-pushed the restingbull/mixed-source-test branch from 1c34310 to 696b087 Compare April 7, 2022 16:40
* Integration test helpr RulesKotlinWorkspace
@restingbull restingbull force-pushed the restingbull/mixed-source-test branch from 696b087 to c907eb4 Compare April 7, 2022 16:41
@restingbull restingbull marked this pull request as ready for review April 7, 2022 16:42
@restingbull restingbull requested review from jin and timpeut as code owners April 7, 2022 16:42
Copy link
Collaborator

@cgruber cgruber left a 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",
Copy link
Collaborator

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
Copy link
Collaborator

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(
Copy link
Collaborator

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 {
Copy link
Collaborator

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.

@restingbull restingbull merged commit 6a543c0 into master Apr 8, 2022
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

Successfully merging this pull request may close these issues.

3 participants