-
Notifications
You must be signed in to change notification settings - Fork 112
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
Use full compilation for closure_js_test #75
Conversation
Tests should set CompilerOptions.exportTestFunctions = true. There's a flag for that in the google-internal runner, but it looks like we don't have one externally. |
exporting `transitive_js_srcs`. Each source will be inserted into the webpage | ||
in its own `<script>` tag based on a depth-first preordering. | ||
|
||
- **harness:** (Label; required; default is |
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.
optional
I reviewed all the code and don't see anything major for improvement. Fully compiled tests are really cool! LGTM |
@@ -42,16 +43,20 @@ JS_HIDE_WARNING_ARGS = [ | |||
"--hide_warnings_for=.soy.js", |
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.
Can you remove ".soy.js" here? I think all .soy.js files live under bazel-out/local-fastbuild/genfiles/.
All comments addressed. @MatrixFrog Thanks for letting me know about |
I've addressed the feedback left by @Dominator008 and @MatrixFrog in #67. This was basically accomplished by changing
closure_js_test
to be a build macro rather than a Skylark rule. JsChecker updates come later. Please take a look.The only difficulty I've really encountered is that
goog.testing.testSuite
keys need to be quoted. I would have assumed that since the type signature says they're strings, theADVANCED
property renamer wouldn't rename them? Also no one seems to quote them internally at Google. Is this intended behavior?CC: @hochhaus