Automated Test improvements #41
Open
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.
Test Organization and Addressables BuildLayout Testing
This PR
Test Suite Reorganization
Refactored UnityDataToolTests.cs into focused test classes:
Fixed WebBundle tests so they weren't repeating unncessarily. There is only one folder of reference files but because they were added to a class inheriting from AssetBundleTestFixture they were repeated redundantly 5 times because there are 5 reference folders inside Data/AssetBundles/
Adding some comments based on study of the test framework (which has some interesting features but I found hard to grasp in its entirely uncommented from)
Introduce SQL helper to aid in performing concise test lookups and assets with better syntax.
New Addressables BuildLayout Test Coverage
New AddressablesBuildLayoutTests.cs test for Addressables BuildLayout analysis
Initial test: Analyze_BuildLayout_ContainsExpectedSQLContent
This runs "analyze" on 2 Addressables BuildLayout JSON files that i extracted from builds of our "AudioExample" test project (made with Unity 6.2 and Addressables 2.2.2)
The test does sanity checks on some expected content in
addressables_builds, addressables_build_bundles and addressables_build_groups table
New BuildReport test coverage
BuildReportInspector
This sets the baseline, we will add actual specialized build report support in followup work.
Also, because it is a simple serialized file it offers opportunity for more detailed testing of the exact expected content in the database compared to more complicated AssetBundles or Player build results.
Test Results