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
Update integration tests README.md and remove obsolete files (PomeloFoundation#1872)
* Update README.md
Added fix for running powershell scripts on linux machines.
Minor updates to grammatical issues.
* Update README.md
* Update README.md
* Update README.md
* Update README.md
* Delete test/EFCore.MySql.IntegrationTests/scripts/stress.sh
Like in comment PomeloFoundation#1872 (comment) removing this file.
Copy file name to clipboardExpand all lines: test/EFCore.MySql.IntegrationTests/README.md
+9-13Lines changed: 9 additions & 13 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,16 +4,16 @@ Integration and Performance Tests
4
4
**Configuring the Database**
5
5
6
6
1. Configure your MySQL database by opening the `config.json.example` file, specifying the connection string and saving the changed file as `config.json`.
7
-
2. Run the `scripts/rebuild.sh`script on Linux or the `scripts/rebuild.ps1` script on Windows to rebuild all migrations. Any time you make changes to database models, run the rebuild script again.
7
+
2. Run the `scripts/rebuild.ps1` PowerShell script on Linux or Windows to rebuild all migrations (for installing PowerShell, see [Install PowerShell on Windows, Linux, and macOS](https://learn.microsoft.com/en-us/powershell/scripting/install/installing-powershell)). Any time you make changes to the database models, run the rebuild script again.
8
8
9
9
**Running Integration Tests**
10
10
11
-
1. Ensure that you configured the database (see previous paragraph).
12
-
2. Run `dotnet test`. This will execute all tests in the Tests/ directory.
11
+
1. Ensure that you configured the database correctly (see previous paragraph).
12
+
2. Run `dotnet test`. This will execute all tests in the `Tests/` directory.
13
13
14
14
**Running Performance Tests**
15
15
16
-
1. Configure the Database
16
+
1. Configure the database.
17
17
2. Run `dotnet run`. This will start a .NET Core MVC API application on "http://localhost:5000".
18
18
19
19
Methods:
@@ -38,15 +38,11 @@ Methods:
38
38
}
39
39
```
40
40
41
-
The `scripts` directory contains load testing scripts. These scripts require that the [Vegeta](https://github.com/tsenart/vegeta/releases) binary is installed and accessible in your PATH. Here are examples of how to call the load testing scripts:
41
+
The `scripts` directory contains load testing scripts. These scripts require that the [Vegeta](https://github.com/tsenart/vegeta/releases) binary is installed and accessible in your PATH. Here are some examples of how to call the load testing scripts:
42
42
```
43
-
# by default, runs 50 async queries per second for 5 seconds
44
-
./stress.sh # bash for linux
45
-
./stress.ps1 # powershell for windows
43
+
# runs 50 async queries per second for 5 seconds by default
44
+
./stress.ps1
46
45
47
-
# runs 100 async queries per second for 10 seconds on linux
48
-
./stress.sh 100 10s async
49
-
50
-
# run 50 sync queries per second for 1 minute on windows
0 commit comments