gwtproject / gwt

GWT Open Source Project
http://www.gwtproject.org
1.53k stars 377 forks source link

Enable `-strict` for user tests #10038

Open niloc132 opened 2 weeks ago

niloc132 commented 2 weeks ago

Follow-up to https://github.com/gwtproject/gwt/issues/10037

With the -strict flag supported for tests, we can use this flag to ensure our source paths are complete and included in module files.

Presently they are not - at least com.google.gwt.testing.TestUtils is referenced by classes that appear in other modules. com.google.gwt.storage.client.MapInterfaceTest for example references TestUtils, but appears in the com.google.gwt.storage.client package, which is part of Storage.gwt.xml.

Since this fails through the JUnit module, which is automatically inherited by every GWTTestCase module, many tests in gwt-user's own tests would fail in this way. There are likely other issues like this one, but this is the most obvious as it fails most every test.

On the plus side, this validates that -strict works for tests as expected.