Use local secret store for tests instead of hand-made solution

This commit is contained in:
Tyrrrz
2023-01-30 12:16:47 +02:00
parent bf76f10030
commit fc29735a45
4 changed files with 17 additions and 26 deletions

View File

@@ -5,9 +5,8 @@ In order to run these tests locally, you need to join the test server and config
1. [Join the test server](https://discord.gg/eRV8Vap5bm)
2. Locate your Discord authentication token
3. Specify your token using a file or an environment variable:
- **Using a file**: put your token in a new `DiscordToken.secret` file created in this directory
- **Using an environment variable**: set `DISCORD_TOKEN` variable to your token
3. Add your token to user secrets: `dotnet user-secrets set DISCORD_TOKEN <token>`
4. Run the tests: `dotnet test`
> If you want to add a new test case, please let me know and I will give you the required permissions
> **Note**:
> If you want to add a new test case, please let me know and I will give you the required permissions on the server.