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

Support more flags in JUnitShell/GWTTestCase #10033

Open
5 tasks
niloc132 opened this issue Nov 7, 2024 · 0 comments
Open
5 tasks

Support more flags in JUnitShell/GWTTestCase #10033

niloc132 opened this issue Nov 7, 2024 · 0 comments

Comments

@niloc132
Copy link
Contributor

niloc132 commented Nov 7, 2024

GWT version: 2.12
Browser (with version): any
Operating System: any


Description

When testing either an application or non-application project, it can be helpful to be able to tweak GWTTestCases to compile its output in a way that more closely matches how the application itself might run. Specifically, I was surprised to find we couldn't use -strict in tests.

Examples:

  • JUnitShell/GWTTestCase should support -strict/-failOnError flags #10037
  • -XfragmentCount - super dev mode doesn't support this, which makes sense at this time (see Feature Request -- Optional compiler flags in SuperDevMode #7711 to consider adding optimization flags to SDM), but it could make sense to allow the same control over split points in tests as we support in the compiler. Note that -XdisableRunAsync is supported for tests.
  • -compileReport/-compilerMetrics/-soyc/-XsoycDetailed - apparently only supported for compilation, but I could imagine that this makes sense for some testing or diagnostic purposes. -XdisableSoycHtml/-XenableJsonSoyc could also make sense if we do this?
  • -XmethodNameDisplayMode - could make test debugging easier, especially if we can generally disable emulated stack traces and use sourcemaps
  • -saveSource/-saveSourceOutput could be useful for some debugging of tests
Steps to reproduce

Pass -strict or -failOnError (or any other flags above) as part of the gwt.args system property when running tests.

Links to further discussions

See also #7711

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

No branches or pull requests

1 participant