Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

new tests in file not being picked up by NCrunch
davidtouchette-gateway
#1 Posted : Wednesday, June 12, 2019 6:11:42 PM(UTC)
Rank: Newbie

Groups: Registered
Joined: 2/24/2017(UTC)
Posts: 4
Location: Canada

Was thanked: 1 time(s) in 1 post(s)
I have submitted a bug report through the NCrunch 3.23.0.10 menu in VS 2017 community.

The gist of which is that I have existing tests which are recognized, automatically run when affected, and display the green circle indicator in the gutter.

Adding a new test into an existing test.cs file does not show that test in the NCrunch tests window, nor does it auto-run or show a visual indicator in the gutter.

I am also noticing that new lines of code in my library projects are not showing the white circle indicating no test coverage for said line.

I've tried restarting, cleaning bin+obj, cleaning %temp%

I cannot view the workspace in use for specific test, nothing happens.
Remco
#2 Posted : Wednesday, June 12, 2019 10:58:31 PM(UTC)
Rank: NCrunch Developer

Groups: Administrators
Joined: 4/16/2011(UTC)
Posts: 5,759

Thanks: 745 times
Was thanked: 956 time(s) in 911 post(s)
Hi, thanks for sharing this issue.

I've had a look through the report your submitted and didn't see anything going obviously wrong inside the engine (no errors, looks like normal function).

I think the first thing we should do is clear ALL of your NCrunch configuration to see if this makes any difference.

With the IDE closed:

In your solution directory, run a search for .ncrunchproject files, delete them all. Delete them all.
Delete all the .ncrunchsolution files adjacent to the solution file.
Delete the _NCrunch_* cache directory.
Delete the contents of C:\Users\[USER]\AppData\Roaming\NCrunch

Then let me know if this makes any difference for you.
davidtouchette-gateway
#3 Posted : Thursday, June 13, 2019 12:48:48 AM(UTC)
Rank: Newbie

Groups: Registered
Joined: 2/24/2017(UTC)
Posts: 4
Location: Canada

Was thanked: 1 time(s) in 1 post(s)
Thanks for your hints; doing those things didn't do it for me but it did reveal some failed builds in the tests window which pointed me to some bad reference issues and after doing a update-package -reinstall the build succeeded and everything is back to normal, thanks!
1 user thanked davidtouchette-gateway for this useful post.
Remco on 6/14/2019(UTC)
Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

YAF | YAF © 2003-2011, Yet Another Forum.NET
This page was generated in 0.031 seconds.