Skip to content

Conversation

@oldergod
Copy link
Member

@oldergod oldergod commented Nov 25, 2025

Organised in 3 commits:

  • Midstep addition into WireCompiler's API which allows us to do in-memory tests not relying on gen-tests
  • Golden files for opaque types, all types in Java + proto3
  • Sharing tests, fixtures, and proto generation: We removed a LOT of somewhat golden files and only consume them if some tests now. Proto generation to be used in other tests are now in wire-test-proto-generation, and wire-tests contains proto fixtures and testing modules.

@oldergod oldergod force-pushed the jwilson-bquenaudon.1118.actually_run_tests branch from 867abd5 to 0ecd14f Compare November 25, 2025 14:46
@oldergod oldergod force-pushed the jwilson-bquenaudon.1118.actually_run_tests branch from 0ecd14f to 3a016ea Compare December 4, 2025 16:26
@oldergod oldergod force-pushed the jwilson-bquenaudon.1118.actually_run_tests branch 7 times, most recently from 9c60d83 to b761d9e Compare January 7, 2026 11:42
@oldergod oldergod changed the title Start running shared tests Global test refactoring Jan 7, 2026
@oldergod oldergod requested a review from swankjesse January 7, 2026 11:43
@oldergod oldergod marked this pull request as ready for review January 7, 2026 11:43
@oldergod oldergod force-pushed the jwilson-bquenaudon.1118.actually_run_tests branch from b761d9e to 2ccc5e4 Compare January 7, 2026 14:10
val logger = object : WireLogger {
override fun artifactHandled(outputPath: Path, qualifiedName: String, targetName: String) {
logs.add("artifactHandled($qualifiedName, $targetName)")
@Test // TODO(Benoit) Delete? Nobody wanna maintain such a test
Copy link
Collaborator

Choose a reason for hiding this comment

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

Don't delete it, it guarantees you don’t typo a parameter?

val sources = arrayOf("service_kotlin_with_all_flags.proto")
compileToKotlin(
sources,
fun allTargetsAndAllOptions() {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Is this different from the other one?

Copy link
Member Author

Choose a reason for hiding this comment

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

This also test the custom target!

@oldergod oldergod force-pushed the jwilson-bquenaudon.1118.actually_run_tests branch from 2ccc5e4 to d4c501a Compare January 13, 2026 15:31
@oldergod oldergod enabled auto-merge January 13, 2026 15:32
We removed a LOT of somewhat golden files and only consume them if some tests now.
Proto generation to be used in other tests are now in wire-test-proto-generation, and wire-tests contains proto fixtures and testing modules.
@oldergod oldergod force-pushed the jwilson-bquenaudon.1118.actually_run_tests branch from d4c501a to 0f334d3 Compare January 13, 2026 15:57
@oldergod oldergod merged commit ce7ca4d into master Jan 13, 2026
15 checks passed
@oldergod oldergod deleted the jwilson-bquenaudon.1118.actually_run_tests branch January 13, 2026 16:55
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