-
Notifications
You must be signed in to change notification settings - Fork 2
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
Add round-trip and save format tests #3
Open
dsmiller95
wants to merge
20
commits into
buck-co:main
Choose a base branch
from
dsmiller95:main
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- there is no domain reload between tests - the SaveManager stores state in a singleton, so it only resets on domain reload - there is no way to deregister a saveable if it is destroyed
improve async -> coroutine by reading the UniTask library source code
…atible with running on different threads. instead relying on C# System.Threading.Tasks
… unity json converters
organize test files. extract a shared function to a base test class add some documentation to the tests
fixup the unity converter test based on real functionality
…essary, Singleton will auto-create
…when using unity converters
Add doc comments to some test methods
…t need a custom to-coroutine converter: https://docs.unity3d.com/6000.0/Documentation/Manual/AwaitSupport.html
@dsmiller95 I completely missed this PR! Sorry for the slow response, I'll take a look soon and write more. Thanks so much for contributing! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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 tests which:
The project used to develop these changes is here: https://github.com/dsmiller95/SaveAsyncEditingProject . Most tests will run in a fresh project, but to see the json-for-unity tests, the development project must also install the json-for-unity (and leave it at default settings).
These tests uncovered one potential issue, documented in #2