Forum member
Strilanc
17 posts
Posts by Strilanc
-
(Minor) NCrunch leaves redundant files when renaming projects/solutions
[quote=Remco;3618]Thanks for reporting this - I'll note it down for fix. Can you provide some more details around what happens with the engine before you need to re-enable it? Is it just that it doesn't enable itself? Or does it bug out?[/quote] It just didn't enable itself, and I had to go th…
30 Jan 2013 20:59 UTC
-
(Minor) NCrunch leaves redundant files when renaming projects/solutions
I've noticed that when I rename a project or solution, ncrunch will create new settings files (e.g. the .ncrunchproject file), but not delete the old ones. Also, I sometimes need to re-enable ncrunch when I re-open the solution.
30 Jan 2013 05:32 UTC
-
Why is this weakref test failing according to NCrunch but passing according to visual studio?
NCrunch seems to be preventing the garbage collection of objects that only have weak references. [code=csharp] [TestMethod] public void WeakReferencesCanBeCollected() { var r = new object(); var w = new WeakReference<object>(r); r = null; GC.Collect(); …
03 Jan 2013 17:06 UTC
-
'Enable ncrunch' wizard is a minor annoyance
One of the minor annoyances I have with ncrunch is that every time I start a new project I have an extra 8 precise mouse clicks to get it configured to automatically run all my tests. Streamlining the wizard, remembering previous choices, and other little touches on the 'enabling ncrunch' use cas…
03 Jan 2013 16:50 UTC
-
Static initialization code isn't considered covered
Code that is invoked when initializing static fields of classes is not considered covered by tests. Although there are cases where this makes sense, I'm not so sure it makes sense in general. I have an AnonymousComparer class. It happens that the only place it is instantiated is to initialize a f…
11 Nov 2012 08:19 UTC
-
Multiline expressions only have a marker on the first line, creating conspicuous blank space
When an expression covers several lines, it creates a blank area that stands out to my eyes. It looks visually similar to the way things look before ncrunch has parsed the expression at all. See the attached screenshot for an example of something that looks "off", at least to my eyes. [img=http:/…
22 Oct 2012 01:47 UTC
-
Portable class libraries fail to build if they include metro
NCrunch fails to build portable class libraries targeting the intersection of .net 4.5 and metro. Also, the build error description does not display in the tests pane: the description from the previously selected thing just persists. I assume this issue has the same root cause as NCrunch not bein…
14 Aug 2012 21:58 UTC
-
NCrunch can't seem to build metro projects
I can't get ncrunch to build metro projects. As a result, I can't use it to test them. For example, create a new metro class library, enable ncrunch, and put this code in a class: using System; public class C{ public C(Action action = null) { } } NCrunch should fail to build the proj…
06 Jun 2012 20:51 UTC
-
Installer for VS 2012 RC
This also worked for me although I was initially tricked by 'Program Files' being specified in the instructions, instead of 'Program Files (x86)'. There's a visual studio 11 directory in both.
06 Jun 2012 12:01 UTC
-
Tried creating a no-contract build configuration for ncrunch, ncrunch can't build anymore
Now that the first issue is fixed I'm running into the second issue: null ref exception when building. I don't see how to attack a file here, so I sent an email to you via the forum. Reply to it and I'll attach the project in question.
05 Apr 2012 03:14 UTC
-
Tried creating a no-contract build configuration for ncrunch, ncrunch can't build anymore
I posted it to Microsoft connect as a bug: https://connect.microsoft.com/VisualStudio/feedback/details/735407/project-configuration-changes-not-saved-to-project-files -- hold on, something's weird -- ... Ok, now I'm really confused. So, it looks like changes to configurations ARE making it t…
05 Apr 2012 02:31 UTC
-
Tried creating a no-contract build configuration for ncrunch, ncrunch can't build anymore
I thought the beta was the preview. I have the beta installed. My mistake. It's strange. Hovering over the task bar icon shows 'developer preview' but it is definitely the beta based on the splash screen and when I installed it.
04 Apr 2012 10:34 UTC
-
Tried creating a no-contract build configuration for ncrunch, ncrunch can't build anymore
I think I found the problem. I'm using the vs11 preview, and it appears that it's not storing changes to the project files in the project files themselves. Seems like they're going into a binary solution file ending with .v11.suo. My guess is that ncrunch is reading the project file but not takin…
04 Apr 2012 09:31 UTC
-
Tried creating a no-contract build configuration for ncrunch, ncrunch can't build anymore
I'm trying to create a build configuration, without code analysis or contracts, for ncrunch to use. But I seem to have dug myself into a hole, because I can't get ncrunch to build the solution at all anymore. I have two build configurations: Dev and ncrunch. If I set the build configuration setti…
04 Apr 2012 04:43 UTC
-
Incorrect file extension: crunchsolution.cache instead of ncrunchsolution.cache
This is incredibly minor, but ncrunch creates a file ending in ".crunchsolution.cache" but it was probably intended to be "ncrunchsolution.cache". (notice the first N)
03 Apr 2012 16:53 UTC
-
Lines covered by only passing tests should be unmarked, not marked green
Pointing out correctly tested lines is unnecessary. They don't need attention. Placing markers on them creates visual noise that distracts from important information, like lines covered by failing tests. By analogy, it would be odd for the C# compiler to underline every syntactically correct expr…
03 Apr 2012 16:44 UTC
-
Skip unnecessary costly build steps (code analysis / code contracts static checker) when possible
I really like NCrunch but if I use it in conjunction with code analysis (run automatically on build) or static verification of code contracts it takes far FAR too long to run tests. This is frustrating because the output of code analysis and static verification of code contracts has no effect on the…
03 Apr 2012 16:25 UTC