question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

FsCheck.xUnit has incomplete source information in Visual Studio

See original GitHub issue

screenshot I have a <Property> based test like the following

module Foo = [<Property>] let``Reverse of reverse of a list is the original list``(xs:list<int>) = List.rev(List.rev xs) = xs

The discovered test in Test Explorer isn’t having the appropriate Source code information. Clicking the test in the Test Explorer in visual studio gives the following in the pane where the source file name and line information is displayed.

Source: no source available.

Looks like when the test is discovered the xUnit is unable to set the “CodeFilePath” and “LineNumber” information in the TestCase object.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:9 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
ploehcommented, Aug 22, 2016

@tlycken, if it helps, I’ve made that mistake at least once within the last 6 months 😳 Took me some time to figure out, too…

0reactions
kurtschelfthoutcommented, Sep 29, 2016

Seems like this was solved or at least not reproducible.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Convert a test in a properties based test in C# · Issue #137
I've created another branch with xunit < 2.0 for enabling FsCheck integration, fsc-xunit19. This is the direct link to altered source file, so ......
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 >
Expecto Alternatives - Testing - Awesome .NET - LibHunt
A very extensive set of extension methods that allow you to more naturally specify the expected outcome of a TDD or BDD-style unit...
Read more >
Sergey Tihon's Blog – Going its own way with F#
The F# compiler service now always looks at the actual C# sources, ... Your Voice Matters – Visual Studio Blog (microsoft.com) ... Have...
Read more >
A fun community for developers to connect over code, tech ...
Hunting through the code line by line, I eventually find this. WHY IS THIS ALLOWED TO COMPILE · rant visual studio debug ·...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found