-
Notifications
You must be signed in to change notification settings - Fork 160
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 autocomplete tests and backport editor tests #2180
Add autocomplete tests and backport editor tests #2180
Conversation
57924e8
to
cf72527
Compare
f119be6
to
259df37
Compare
@ericoporto I noticed you keep adding the tests, please tell when this is ready to be merged. |
This is ready. :) I may make a new PR later that adds a few more tests and do a small refactor in the auto complete parser, but for now I won't have time to look into that, so what is here is what I have for now. |
This pr makes unnecessary change to Sprite class reverting its DefaultProperty. |
This is one project for the entire AGS editor source code. It may be desirable to create multiple projects, one test project for each project, but I did it like this for convenience. I also made this using the new csproj format, which may not be compatible with the the currently preferred Visual Studio version. I'll have to rewrite if that is the case Introduces 4 nuget packages: - nunit, the actual testing framework - NUnit3TestAdapter, needed by Visual Studio and later .NET standards to run tests - NSubstitute, the mocking framework - Microsoft.NET.Test.Sdk, needed to run the tests via dotnet CLI
Can be generated by running `$ dotnet test ./Editor/AGS.Editor.Tests/AGS.Editor.Tests.csproj --no-build --no-restore --logger:"junit;LogFilePath=TestResult.xml"` Added missing JUnit import f d
Instead of AGS.Editor. More convenient as we can have tests for AGS.Types in the same project
259df37
to
46e5913
Compare
Co-authored-by: Per Olav <[email protected]>
I dropped changes to the Sprite class in 7f20cce ! Yes, that was a mistake, thanks for catching it. |
fix #1543
I am backporting from ags4 the Editor tests. I didn't pick everything from there, there are some theme related refactors that I skipped and also all the room controller stuff also was skipped. I am more interested in the preprocessor tests.
I really wanted to add a few autocomplete tests, so here they are!