Skip to content

Commit b02dd67

Browse files
authored
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.
1 parent 99e7920 commit b02dd67

File tree

2 files changed

+9
-30
lines changed

2 files changed

+9
-30
lines changed

test/EFCore.MySql.IntegrationTests/README.md

Lines changed: 9 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,16 @@ Integration and Performance Tests
44
**Configuring the Database**
55

66
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.
88

99
**Running Integration Tests**
1010

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

1414
**Running Performance Tests**
1515

16-
1. Configure the Database
16+
1. Configure the database.
1717
2. Run `dotnet run`. This will start a .NET Core MVC API application on "http://localhost:5000".
1818

1919
Methods:
@@ -38,15 +38,11 @@ Methods:
3838
}
3939
```
4040

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:
4242
```
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
4645
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
51-
./stress.ps1 50 1m sync
46+
# runs 100 sync queries per second for 1 minute
47+
./stress.ps1 100 1m sync
5248
```

test/EFCore.MySql.IntegrationTests/scripts/stress.sh

Lines changed: 0 additions & 17 deletions
This file was deleted.

0 commit comments

Comments
 (0)