Skip to content

Commit 06b3bf8

Browse files
committed
Remove depricated use of runTests; fix some formatting
1 parent 9eb0d67 commit 06b3bf8

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

docs/recipes/developing-and-testing/testing-the-server.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ In this guide we will look at using **Expecto**, as this is included with the st
1010

1111
If you are using the standard template, then there is nothing more you need to do in order to start testing your Server code.
1212

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.
1414

1515
In order to run the tests, instead of starting your application using
1616
```powershell
@@ -91,7 +91,7 @@ If you are using the minimal template, you will need to first configure a test p
9191

9292
#### 1. Add a test project
9393

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.
9595

9696
```powershell
9797
dotnet new console -lang F# -n Server.Tests -o tests/Server
@@ -141,7 +141,7 @@ let server = testList "Server" [
141141
]
142142
143143
[<EntryPoint>]
144-
let main _ = runTests defaultConfig server
144+
let main _ = runTestsWithCLIArgs [] [||] server
145145
```
146146

147147
#### 6. Run the test
@@ -161,4 +161,4 @@ Add the libraries `Microsoft.NET.Test.Sdk` and `YoloDev.Expecto.TestSdk` to your
161161

162162
> 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.
163163
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

Comments
 (0)