Open Numpsy opened 3 months ago
As the linked YoloDev issue says, testTasks are also missing source information, but in that case it seems to get to https://github.com/haf/expecto/blob/9fe60dc25d2dedb20f0dfcf4a0358d936b4eb50f/Expecto/Expecto.Impl.fs#L976 as an Async case and exits without trying to get further information
Hmm. I haven't worked with this part of the code base yet. I don't have any prior knowledge to bring to the table here.
Have you found a particular place where getLocation
is falling back to SourceLocation.empty
for thestTheory?
That might give some hints about what's going wrong
Looks like it gets to https://github.com/haf/expecto/blob/9fe60dc25d2dedb20f0dfcf4a0358d936b4eb50f/Expecto/Expecto.Impl.fs#L1010 and then getFirstOrDefaultSequencePoint
doesn't find any results
The where clause is looking for methodName
. Is it looking for the right method name?
That could be a good indicator of what threads to pull on
It seems to be looking for 'Invoke':
It does get into getFirstOrDefaultSequencePoint
, but then there are no sequence points found
Hi,
I've seen similar issues with Ionide in the past, and am not really sure if there is an issue in Expecto itself of in the YoloDev test adaptor, but - in reference to https://github.com/YoloDev/YoloDev.Expecto.TestSdk/issues/107#issuecomment-1976249759
If I have an expecto test project with a theory test, and I run if via the Visual Studio (2022) test explorer, then all the test results are shown but there is no source locaion available:
I've tried debugging some of Expectos own tests, and I notice that the![image](https://github.com/haf/expecto/assets/1178570/9c78183e-9745-4a4b-a8e1-00a6c8f59e32)
getLocation
function isn't returning anything for test theories, even though the input appears to have the appropriate information inside it:I haven't gone any further with debugging than that yet - thought I'd enquire and see what the expected situation is first?