Skip to content

Conversation

johanbenschop
Copy link

Explains that TUnit only works with Razor files in reflection mode due to source generator limitations.

Provides instructions for setting up TUnit with .razor files using a .runsettings file and updating the .csproj.

Adds a note recommending a separate test project for bUnit tests to avoid performance issues.

Relates to #1661

Pull request description

PR meta checklist

  • Pull request is targeted at main branch for code
    or targeted at stable branch for documentation that is live on bunit.dev.
  • Pull request is linked to all related issues, if any.
  • I have read the CONTRIBUTING.md document.

Code PR specific checklist

  • My code follows the code style of this project and AspNetCore coding guidelines.
  • My change requires a change to the documentation.
    • I have updated the documentation accordingly.
  • I have updated the appropriate sub section in the CHANGELOG.md.
  • I have added, updated or removed tests to according to my changes.
    • All tests passed.

Explains that TUnit only works with Razor files in reflection
mode due to source generator limitations.

Provides instructions for setting up TUnit with .razor files
using a .runsettings file and updating the .csproj.

Adds a note recommending a separate test project for bUnit tests
to avoid performance issues.
@johanbenschop johanbenschop marked this pull request as draft September 15, 2025 09:22
@linkdotnet
Copy link
Collaborator

Looks good to me - thanks. Currently the PR is "in draft". Is there something "missing"?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants