Skip to content
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

Conversation

ericoporto
Copy link
Member

@ericoporto ericoporto commented Oct 13, 2023

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!

@ericoporto ericoporto marked this pull request as draft October 13, 2023 17:32
@ericoporto ericoporto force-pushed the add-autocomplete-tests-and-backport-editor-tests branch 2 times, most recently from 57924e8 to cf72527 Compare October 13, 2023 19:21
@ericoporto ericoporto marked this pull request as ready for review October 13, 2023 19:22
@ericoporto ericoporto force-pushed the add-autocomplete-tests-and-backport-editor-tests branch 7 times, most recently from f119be6 to 259df37 Compare October 15, 2023 03:41
@ivan-mogilko
Copy link
Contributor

@ericoporto I noticed you keep adding the tests, please tell when this is ready to be merged.

@ericoporto
Copy link
Member Author

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.

@ivan-mogilko
Copy link
Contributor

This pr makes unnecessary change to Sprite class reverting its DefaultProperty.
Also, it adds IToXml interface to Sprite class, but no method implementation, is it safe?

persn and others added 9 commits October 15, 2023 09:13
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
@ericoporto ericoporto force-pushed the add-autocomplete-tests-and-backport-editor-tests branch from 259df37 to 46e5913 Compare October 15, 2023 12:18
@ericoporto
Copy link
Member Author

This pr makes unnecessary change to Sprite class reverting its DefaultProperty.
Also, it adds IToXml interface to Sprite class, but no method implementation, is it safe?

I dropped changes to the Sprite class in 7f20cce ! Yes, that was a mistake, thanks for catching it.

@ivan-mogilko ivan-mogilko merged commit 93c3f7f into adventuregamestudio:master Oct 16, 2023
20 checks passed
@ericoporto ericoporto deleted the add-autocomplete-tests-and-backport-editor-tests branch October 16, 2023 21:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Task: Write Editor AutoComplete Tests
4 participants