You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Tyrrrz
ab71b035fc
|
3 years ago | |
---|---|---|
.. | ||
Fixtures | 3 years ago | |
Infra | 3 years ago | |
TestData | 3 years ago | |
Utils | 3 years ago | |
DiscordChatExporter.Cli.Tests.csproj | 3 years ago | |
EmbedSpecs.cs | 3 years ago | |
MentionSpecs.cs | 3 years ago | |
Readme.md | 3 years ago | |
ReplySpecs.cs | 3 years ago | |
xunit.runner.json | 3 years ago |
Readme.md
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.
- Join the server: https://discord.gg/eRV8Vap5bm
- Locate your Discord authentication token
- 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
- Using a file: put your token in a new
- Run the tests:
dotnet test
If you're submitting a pull request, you don't have to run the tests locally -- they are executed automatically by CI. Running them locally can still sometimes be useful for debugging purposes though.
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.