Skip to content

Commit

Permalink
Merge pull request #3 from nowsprinting/chore/readme
Browse files Browse the repository at this point in the history
Mod README.md
  • Loading branch information
nowsprinting committed Jun 11, 2023
2 parents 34dfa7e + dbfe9ea commit 3755b49
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,9 @@ public class MyTestClass
}
```

> **Note**
> In batchmode, open `GameView` window.
#### GameViewResolution

`GameViewResolutionAttribute` is an NUnit test attribute class to set custom resolution to `GameView` before run test.
Expand All @@ -53,15 +56,23 @@ using TestHelper.Attributes;
[TestFixture]
public class MyTestClass
{
[Test]
[UnityTest]
[GameViewResolution(640, 480, "VGA")]
public void MyTestMethod()
public IEnumerator MyTestMethod()
{
yield return null; // wait for one frame to apply resolution.
// e.g., test using GraphicRaycaster.
}
}
```

> **Warning**
> Wait for one frame to apply resolution.
> **Note**
> In batchmode, open `GameView` window.
#### IgnoreBatchMode

`IgnoreBatchModeAttribute` is an NUnit test attribute class to skip test execution when run tests with `-batchmode` from the commandline.
Expand Down

0 comments on commit 3755b49

Please sign in to comment.