DiscordChatExporter/DiscordChatExporter.Cli.Tests
2022-04-09 02:52:57 +03:00
..
Fixtures Automatically detect token kind (#764) 2022-01-03 14:52:16 -08:00
Infra Automatically detect token kind (#764) 2022-01-03 14:52:16 -08:00
Specs Use attachment description as alt text in html 2022-04-09 02:52:57 +03:00
TestData Add support for stickers (#802) 2022-02-05 16:26:23 -08:00
Utils C#10ify 2021-12-08 23:50:21 +02:00
DiscordChatExporter.Cli.Tests.csproj Update nuget packages 2022-04-09 02:22:32 +03:00
Readme.md Don't run tests against PRs 2021-09-28 20:40:48 +03: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 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
  4. Run the tests: dotnet test

If you want to have a new test case or a scenario added, please let me know in your pull request. Currently, it's not possible to add them by yourself.