[F#]Auto-properties are not implicitly covered
See original GitHub issueWriting unit tests for auto-properties is a futile exercise; they are essentially noise (as is the coverage or otherwise of such properties).
Auto-properties in code exercised by coverlet are marked as uncovered by default be they C#
public class Class1
{
string Property { get; set; }
}
or F#
type Class1 () =
member val Property= String.Empty with get, set
Issue Analytics
- State:
- Created 5 years ago
- Reactions:7
- Comments:6
Top Results From Across the Web
[F#]Auto-properties are not implicitly covered · Issue #81
Writing unit tests for auto-properties is a futile exercise; they are essentially noise (as is the coverage or otherwise of such properties) ...
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
Sorry, F# auto-properties of the form
are not marked
[CompilerGenerated]
– the F# compiler does its own thing here.The key to identify these ones is by a backing field with name
Property@
Ugh…sorry to you for my ignorance…didn’t know, I’m not familiar with F# compiler. I’m thinking to add a F# lib on tests to handle the cases. Thank’s Steve.