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 improves the organization of the test suite and adds initial test coverage for the recently added Addressables BuildLayout analysis feature.
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)
Ne 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
Test Results
All tests pass locally and they passed on the github action.
Current stats: