xUnit analyzer emits errors on Property tests
See original GitHub issuehttps://github.com/xunit/xunit/issues/2748
so every method which returns Property
causes analyzer to emit error.
Issue Analytics
- State:
- Created 2 months ago
- Reactions:1
- Comments:5 (3 by maintainers)
Top Results From Across the Web
Change of supported return types when upgrading from 2.4 ...
We now receive this build error: error xUnit1028: Test methods must ... xUnit analyzer emits errors on Property tests fscheck/FsCheck#636.
Read more >Properties throw off xUnit and the Test Explorer
It appears that test discovery fails silently if binding redirects are not set properly. This just cost me about 3 hours, so I...
Read more >Testing Source Generators, Analyzers & Code Fixes - Part 3
The other kind of test verifies the emitted errors and warnings, and the generated code, not just the one produced by the Source...
Read more >dotnet test command - .NET CLI
The dotnet test command is used to execute unit tests in a given project. ... the CLI will emit a warning (an error...
Read more >Rules
ID Title Severity Category
xUnit1000 Test classes must be public Error Usage
xUnit1001 Fact methods cannot have parameters Error Usage
xUnit1003 Theory methods must have test...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
OK, comment added: https://github.com/xunit/xunit/issues/2748#issuecomment-1629408107
Please consider joining the discussion.
I am not very familiar with xUnit architecture, but currently it looks like FsCheck can do nothing.
IMO, the set of allowed types should be defined by
TestCaseDiscovererAttribute
.Maybe it’s indeed worth that you commen in the original issue.