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

Fix tests running on Linux editor #42

Merged
merged 7 commits into from
Apr 15, 2024
Merged

Conversation

nowsprinting
Copy link
Contributor

Fix and refactor tests

  • Fix failing tests on Unity 2021+ Linux editor
  • Exclude failing tests on Unity 2019 Linux editor
  • Ignore argument tests when running on window mode
  • Refactor tests
  • Remove unused agent settings in tests
  • Mod canvas scaler in test scenes

Contribution License Agreement

Reason: diff occur after running tests below:
```
-  m_Name: DoNothingAgentForTests
+  m_Name: Observer
```
Tests failed with the following LogAssert output:
```
MonoScript is registered as both Editor and Runtime script!
```
After inserting `Assume.That` for investigation, the test no longer fails...
@nowsprinting nowsprinting requested a review from a team as a code owner April 13, 2024 13:47
@github-actions github-actions bot added the chore label Apr 13, 2024
@@ -57,6 +57,7 @@ public IEnumerator Launch_OnEditMode_RunAutopilotOnPlayMode()
editor.Launch(state); // Note: Can not call editor.OnInspectorGUI() and GUILayout.Button()

yield return new WaitForDomainReload(); // Wait for domain reloading by switching play mode
Assume.That(EditorApplication.isPlaying, Is.True, "Switched to play mode");
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is mysterious...

Copy link
Member

@Kuniwak Kuniwak left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All tests has been passed on my environment! LGTM.

@Kuniwak Kuniwak merged commit 3d0e2cf into DeNA:master Apr 15, 2024
2 checks passed
@nowsprinting nowsprinting deleted the chore/fix_tests branch April 15, 2024 11:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants