-
Notifications
You must be signed in to change notification settings - Fork 583
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 support for external test harness #343
Conversation
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.
Thanks, this looks good. I'm hoping we can generalize some of the function calls so we don't need to pass so many arguments around.
b26d7c9
to
5972dad
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.
One minor nit and then this should be good to go
For reference, this is how this is used right now in scalapb-validate's ScalaHarness. We inverted the control, so the Scala code calls the harness and keeps a single JVM for the entire test, which make it significantly faster (compared to the approach of launching a new JVM for each case). Though we still have over 100 test errors to fix :) |
That makes sense. One of the reasons the test is so slow is that the Java harness takes forever to run since it also starts a new JVM every time. @thesamet can you merge master? |
Sure, I rebased and squashed this into a single commit. |
Signed-off-by: Nadav Samet <[email protected]>
Thanks! |
I am building PGV support for ScalaPB. As ScalaPB offers many ways for users to customize the generated code and the generator is written in Scala, it would be impractical to add ScalaPB support directly in here.
We have started to put some effort in https://github.com/scalapb/scalapb-validate and it would be nice to be able to run PGV's test harness against scalapb-validate. To accomplish that, I would like to be able to specify an external program to the harness.
See #322