DiscordChatExporter/DiscordChatExporter.Cli.Tests
2023-02-06 15:57:08 +02:00
..
Fixtures Fix file lock not getting disposed when postamble throws an exception 2023-01-30 12:04:33 +02:00
Infra Use local secret store for tests instead of hand-made solution 2023-01-30 12:16:47 +02:00
Specs More namespace refactoring 2023-02-06 15:57:08 +02:00
TestData More test stuff 2022-06-30 19:07:11 +03:00
Utils C#10ify 2021-12-08 23:50:21 +02:00
DiscordChatExporter.Cli.Tests.csproj Use local secret store for tests instead of hand-made solution 2023-01-30 12:16:47 +02:00
Readme.md Use local secret store for tests instead of hand-made solution 2023-01-30 12:16:47 +02:00
xunit.runner.json Basic automated tests through the CLI 2021-07-19 20:09:35 +03:00

DiscordChatExporter Tests

This test suite runs against a real Discord server, specifically created to exercise different behaviors required by the test scenarios. In order to run these tests locally, you need to join the test server and configure your authentication token.

  1. Join the test server
  2. Locate your Discord authentication token
  3. Add your token to user secrets: dotnet user-secrets set DISCORD_TOKEN <token>
  4. Run the tests: dotnet test

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.