You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/recipes/developing-and-testing/testing-the-server.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,7 +10,7 @@ In this guide we will look at using **Expecto**, as this is included with the st
10
10
11
11
If you are using the standard template, then there is nothing more you need to do in order to start testing your Server code.
12
12
13
-
In the tests/Server folder, there is a project named **Server.Tests** with a single script demonstrating how to use Expecto to test the TODO sample.
13
+
In the tests/Server folder, there is a project named `Server.Tests` with a single script demonstrating how to use Expecto to test the TODO sample.
14
14
15
15
In order to run the tests, instead of starting your application using
16
16
```powershell
@@ -91,7 +91,7 @@ If you are using the minimal template, you will need to first configure a test p
91
91
92
92
#### 1. Add a test project
93
93
94
-
Create a **.Net 5**console project called **Server.Tests** in the tests/Server folder.
94
+
Create a `.Net`console project called `Server.Tests` in the tests/Server folder.
95
95
96
96
```powershell
97
97
dotnet new console -lang F# -n Server.Tests -o tests/Server
@@ -141,7 +141,7 @@ let server = testList "Server" [
141
141
]
142
142
143
143
[<EntryPoint>]
144
-
let main _ = runTests defaultConfig server
144
+
let main _ = runTestsWithCLIArgs [] [||] server
145
145
```
146
146
147
147
#### 6. Run the test
@@ -161,4 +161,4 @@ Add the libraries `Microsoft.NET.Test.Sdk` and `YoloDev.Expecto.TestSdk` to your
161
161
162
162
> The way you do this will depend on whether you are using NuGet directly or via Paket. See [this recipe](../package-management/add-nuget-package-to-server.md) for more details.
163
163
164
-
You can now add `[<Test>]` attributes to your tests so that they can be discovered, and then run them using the dotnet tooling in the same way as explained earlier for the standard template.
164
+
You can now add `[<Test>]` attributes to your tests so that they can be discovered, and then run them using the dotnet tooling in the same way as explained earlier for the standard template.
0 commit comments