-
Notifications
You must be signed in to change notification settings - Fork 598
Global test refactoring #3472
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
Global test refactoring #3472
Conversation
867abd5 to
0ecd14f
Compare
0ecd14f to
3a016ea
Compare
9c60d83 to
b761d9e
Compare
b761d9e to
2ccc5e4
Compare
| 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 |
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.
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() { |
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.
Is this different from the other one?
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.
This also test the custom target!
which allows us to do in-memory tests not relying on gen-tests
2ccc5e4 to
d4c501a
Compare
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.
d4c501a to
0f334d3
Compare
Organised in 3 commits: