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

Add v2 buf.yaml Configuration/PublishWithWorkspaceTest test cases #218

Merged
merged 3 commits into from
Jul 29, 2024

Conversation

drice-buf
Copy link
Contributor

@drice-buf drice-buf commented Jul 29, 2024

No description provided.

@drice-buf drice-buf changed the title Add v2 buf.yaml ConfigurationTest and PublishWithWorkspaceTest test c… Add v2 buf.yaml Configuration/PublishWithWorkspaceTest test cases Jul 29, 2024
@drice-buf drice-buf marked this pull request as ready for review July 29, 2024 18:41
@drice-buf drice-buf merged commit 132c14e into main Jul 29, 2024
8 checks passed
@drice-buf drice-buf deleted the drice/misc_with_workspace_tests_v2 branch July 29, 2024 21:35
Copy link
Member

@jhump jhump left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry I didn't get a chance to look yesterday. One small comment that maybe could be addressed in a later branch?


private fun assertSuccess() {
val result = gradleRunner().withArguments(":tasks").build()
assertThat(result.output).doesNotContain("cannot use both the protobuf-gradle-plugin and a Buf workspace")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This feels a little bit brittle. If we tweak the wording of the error message, we could then break what this test is trying to cover, but this assertion would mean the test case actually passes. Is there nothing in the output to look for to change this to a contains call?

@drice-buf
Copy link
Contributor Author

@jhump good point and will address in a new PR shortly

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