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

Use full compilation for closure_js_test #75

Merged
merged 1 commit into from
May 27, 2016
Merged

Conversation

jart
Copy link
Contributor

@jart jart commented May 27, 2016

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, the ADVANCED property renamer wouldn't rename them? Also no one seems to quote them internally at Google. Is this intended behavior?

CC: @hochhaus

@MatrixFrog
Copy link
Contributor

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
Copy link
Contributor

Choose a reason for hiding this comment

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

optional

@hochhaus
Copy link
Contributor

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",
Copy link
Contributor

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/.

@jart
Copy link
Contributor Author

jart commented May 27, 2016

All comments addressed.

@MatrixFrog Thanks for letting me know about exportTestFunctions. I'm going to look into creating a Java frontend for JSComp soon, so I can hopefully enable things like that. I can also send a CL back upstream to you for enabling that flag in the open source world at some point in the near future.

@jart jart merged commit e140082 into bazelbuild:master May 27, 2016
@jart jart deleted the new-test branch May 29, 2016 21:09
ptmphuong pushed a commit to ptmphuong/rules_closure that referenced this pull request Dec 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants