diff options
| author | Andrew Lee <alee14498@protonmail.com> | 2020-04-19 17:19:32 -0400 |
|---|---|---|
| committer | Andrew Lee <alee14498@protonmail.com> | 2020-04-19 17:19:32 -0400 |
| commit | c55fba8ab2a1c9d3df65eda4a5a1e957f4aa1f78 (patch) | |
| tree | ee4d51c7c1d633e11f46453ef1edd3c77c4ef9f7 /Library/PackageCache/com.unity.test-framework@1.1.11/Documentation~/workflow-create-test.md | |
| download | Project-Sandbox-c55fba8ab2a1c9d3df65eda4a5a1e957f4aa1f78.tar.gz Project-Sandbox-c55fba8ab2a1c9d3df65eda4a5a1e957f4aa1f78.tar.bz2 Project-Sandbox-c55fba8ab2a1c9d3df65eda4a5a1e957f4aa1f78.zip | |
Inital commit
Diffstat (limited to 'Library/PackageCache/com.unity.test-framework@1.1.11/Documentation~/workflow-create-test.md')
| -rw-r--r-- | Library/PackageCache/com.unity.test-framework@1.1.11/Documentation~/workflow-create-test.md | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/Library/PackageCache/com.unity.test-framework@1.1.11/Documentation~/workflow-create-test.md b/Library/PackageCache/com.unity.test-framework@1.1.11/Documentation~/workflow-create-test.md new file mode 100644 index 0000000..94f992a --- /dev/null +++ b/Library/PackageCache/com.unity.test-framework@1.1.11/Documentation~/workflow-create-test.md @@ -0,0 +1,36 @@ +# Workflow: How to create a test
+
+To create a test, do the following:
+
+1. Create your *Test* [assembly folder](./workflow-create-test-assembly.md) and select it in the **Project** window.
+2. Click the button **Create Test Script in current folder** option in the **Test Runner** window.
+
+
+
+3. It creates a *NewTestScript.cs* file in the *Tests* folder. Change the name of the script, if necessary, and press Enter to accept it.
+
+
+
+Now you’ll see two sample tests in the Test Runner window:
+
+
+
+Now you can open the tests in your favorite script editor.
+
+You can also create test scripts by navigating to **Assets** > **Create > Testing** > **C# Test Script**, unless adding a test script would result in a compilation error.
+
+> **Note**: Unity does not include `TestAssemblies` ([NUnit](http://www.nunit.org/), Unity Test Framework, and user script assemblies) when using the normal build pipeline, but does include them when using **Run on <Platform>** in the Test Runner window.
+
+## Filters
+
+If you have a lot of tests, and you only want to view/run a sub-set of them, you can filter them in three ways (see image above):
+
+* Type in the search box in the top left
+
+* Click a test class or fixture (such as **NewTestScript** in the image above)
+
+* Click one of the test result icon buttons in the top right
+
+
+
+For more information, see [Edit Mode vs. Play Mode tests](./edit-mode-vs-play-mode-tests.md).
|
