Add Android instrumented tests to the app
module
#110829
Open
+933
−39
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR adds an initial set of instrumented tests to the Godot
app
module which should help us improve stability of the engine and detect regressions.To do so, the PR is split into two commits (note: I recommend reviewing each commit by themselves):
The first commit updates the project layout for both the
app
andlib
modules in order to align with the default Android Studio project layout. Doing so allow us to more easily set up, use and contribute to instrumented tests for the project. While the commit looks large, it mostly consists of moving files around, and doesn't contain much logical changes except where updates to project paths were needed.The second commit sets up the instrumented tests folder layout and build config for the
app
module. A newinstrumented
product flavor is created which defines a custom Godot project and custom test plugins that are launched when running instrumented tests. The Godot project and test plugins are imported from @dsnopek https://github.com/dsnopek/javaclasswrapper-test repo, and theJavaClassWrapper
tests it contains make up the initial set of instrumented tests.