Repository navigation
Switch to TUnit, MTP, local GitHub workflow - #986
Merged
Merged
Conversation
Contributor
There was a problem hiding this comment.
🟡 Changes recommended
Nullable test-context dereferences fail the warnings-as-errors build, while unsafe version and tag interpolation enables shell command injection in packaging and release jobs.
3 open issues
What changed in this PR
Migrates both test suites from xUnit to TUnit and Microsoft.Testing.Platform, and replaces the shared CI workflow with repository-local jobs.
Changes:
- Updates test attributes, setup hooks, and diagnostic output.
- Replaces test dependencies and removes xUnit runner configuration.
- Adds local formatting, testing, packaging, publishing, and notification jobs; CI tests remain disabled.
| File | Description |
|---|---|
| YoutubeExplode.Tests/YoutubeExplode.Tests.csproj | Configures executable TUnit tests. |
| YoutubeExplode.Tests/xunit.runner.json | Removes obsolete runner settings. |
| YoutubeExplode.Tests/VideoSpecs.cs | Migrates video tests and output. |
| YoutubeExplode.Tests/VideoIdSpecs.cs | Migrates video ID test cases. |
| YoutubeExplode.Tests/UserNameSpecs.cs | Migrates username test cases. |
| YoutubeExplode.Tests/StreamSpecs.cs | Migrates stream tests, skips, and output. |
| YoutubeExplode.Tests/SearchSpecs.cs | Migrates search test attributes. |
| YoutubeExplode.Tests/PlaylistSpecs.cs | Migrates playlist tests and output. |
| YoutubeExplode.Tests/PlaylistIdSpecs.cs | Migrates playlist ID test cases. |
| YoutubeExplode.Tests/ClosedCaptionSpecs.cs | Migrates caption test attributes. |
| YoutubeExplode.Tests/ChannelSpecs.cs | Migrates channel test cases. |
| YoutubeExplode.Tests/ChannelSlugSpecs.cs | Migrates channel slug test cases. |
| YoutubeExplode.Tests/ChannelIdSpecs.cs | Migrates channel ID test cases. |
| YoutubeExplode.Tests/ChannelHandleSpecs.cs | Migrates channel handle test cases. |
| YoutubeExplode.Converter.Tests/YoutubeExplode.Converter.Tests.csproj | Configures executable TUnit tests. |
| YoutubeExplode.Converter.Tests/xunit.runner.json | Removes obsolete runner settings. |
| YoutubeExplode.Converter.Tests/Utils/FFmpeg.cs | Fully qualifies the reflection assembly reference. |
| YoutubeExplode.Converter.Tests/SubtitleSpecs.cs | Migrates subtitle tests and setup hooks. |
| YoutubeExplode.Converter.Tests/GeneralSpecs.cs | Migrates conversion tests, setup, and output. |
| YoutubeExplode.Converter.Tests/EnvironmentSpecs.cs | Migrates environment tests, setup, and output. |
| global.json | Selects Microsoft.Testing.Platform. |
| Directory.Packages.props | Replaces xUnit dependencies with TUnit. |
| .github/workflows/main.yml | Defines repository-local CI and release jobs. |
Review effort: Balanced
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

No description provided.