DiscordChatExporter/DiscordChatExporter.Cli.Tests
copilot-swe-agent[bot] f423e6d262 Fix NTFS filename character sanitization on non-Windows systems
Replace OS-specific Path.GetInvalidFileNameChars() with a comprehensive
list of characters invalid on common filesystems (NTFS, FAT32, ext4, etc.)
to ensure files can be created on any filesystem regardless of host OS.

- Add InvalidFileNameChars array with all NTFS/Windows forbidden chars
- Add comprehensive unit tests for filename sanitization
- Fixes issue where '?', ':', '*', '<', '>', '|', '"', '\' were not sanitized on Linux

Co-authored-by: Tyrrrz <1935960+Tyrrrz@users.noreply.github.com>
2025-12-29 16:55:28 +00:00
..
Infra Include inline emoji in JSON export (#1311) 2024-11-06 19:23:40 +02:00
Specs Fix NTFS filename character sanitization on non-Windows systems 2025-12-29 16:55:28 +00:00
Utils Don't use type aliases 2025-11-18 00:36:47 +02:00
DiscordChatExporter.Cli.Tests.csproj Bump the nuget group with 17 updates (#1445) 2025-12-01 20:47:52 +02:00
Readme.md Use markdown alerts 2025-11-24 17:58:06 +02:00
xunit.runner.json Get rid of xUnit fixtures 2023-02-11 23:12:15 +02: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.