Forum member
samholder
100 posts
Posts by samholder
-
Can not build project when it uses a specflow plugin to generate NCrunch test attributes
Ok I've managed to test this, and the path is the same in both environements, but it seems to work occasionally. This is the NCrunch (failing) output: http://tny.cz/e7c37273 the msbuild output that worked : http://tny.cz/2b4220ea The strange thing is that NCrunch did build it a couple of tim…
27 Jan 2014 19:23 UTC
-
Can not build project when it uses a specflow plugin to generate NCrunch test attributes
Hi, I've started to create a library that allows specflow feature files to specify a tag which will allow the test classes that are generated to be decorated with the NCrunch attributes like ExclusivelyUses, InclusivelyUses etc. I have it working for ExclusivelyUses (the one I actually need at…
25 Jan 2014 15:46 UTC
-
NotImplementedException building one project
I have started to get this exception when we are building one of our projects. It is a test project and because of it we can't run the tests: System.NotImplementedException: 26 at Mono.Cecil.SignatureReader.GetPrimitiveType(ElementType etype) at Mono.Cecil.SignatureReader.ReadTypeSigna…
14 Mar 2013 19:37 UTC
-
Projects fail to build with no explanation
Thanks. I'll try and get a full output text file to see if that helps shed any light on the problem. I might try to disable code analysis in ncrunch to see if that solves it but actually that provides useful feedback and so I'm a bit loath to do that. Thanks again for the great support!
19 Feb 2013 22:49 UTC
-
Projects fail to build with no explanation
I used post sharp as an example here but we have several other dlls which also seem to be causing the same issue. I must have had to addfive or six references to implicit dependencies in some projects. And wo betide anyone who tries to clean up the references :). So basically what you are sayin…
19 Feb 2013 22:16 UTC
-
Cloud projects do not copy correct files
Hi, we have a problem that our cloud projects (azure deployments) don't copy the correct files to the output directory in NCrunch. So one of our projects always says that the post validation can't run as the csdef file can't be found, which is true as NCrunch hasn't copied it to the output folder. …
19 Feb 2013 19:25 UTC
-
Projects fail to build with no explanation
Whilst this provided a way to solve this problem, it seems that we shouldn't need to do this I don't think. we are getting output.txt which contained a entries along the lines of: Dependency "PostSharp, Version=2.1.0.0, Culture=neutral, PublicKeyToken=b13fd38b8f9c99d7". Could not resolve …
19 Feb 2013 18:57 UTC
-
Projects fail to build with no explanation
Actually it was the code analysis step that required the indirectly referenced assemblies. Not sure why visual studio was happy but msbuild e wasn't. Thanks for helping us track it down and thanks to achilles for making the time to find the error cause of the problem.
22 Jan 2013 20:21 UTC
-
Projects fail to build with no explanation
Thanks remco. I can't do the output now as I'm not at work but I can answer some of the questions. The project has always built in ncrunch before and this issue has just started recently. I'm not sure what caused it, though and haven't had time to investigate fully yet. It still builds on some o…
15 Jan 2013 21:48 UTC
-
Projects fail to build with no explanation
Hi, Recently I have encountered an issue where some of my projects are failing to build in NCrunch, but NCrunch doesn't tell me anything about why it is. When I turn on logging and rebuild I get an error in the log like this: [11:45:31.6581-BuildTask-13] ERROR (Internal): System.Exception: Un…
15 Jan 2013 12:01 UTC
-
Tests don't fail when MSTest initialize function is incorrect
MSTest requires that the [ClassInitialize] decorated method is static and has a TestContext parameter, and if this doesn't exist then the tests return an error (though not a failure), at least in teamcity (our build server) NCrunch doesn't show these issues and still runs the tests. Whilst this …
16 Nov 2012 15:40 UTC
-
My tests can't find an additionally included file
Ah thanks, forgot about that little trick. Used it before to fool sliverlight stuff into compiling. Help much appreciated
02 Oct 2012 11:16 UTC
-
My tests can't find an additionally included file
Thanks Remco, that has sorted it. I discovered this when I pushed the changes to the build server and it suffered the same issues building with MSTest as NCrunch did. Much appreciated. Is there some way to mark a test as needing to run in an isolated way without having to use the attribute …
02 Oct 2012 07:23 UTC
-
My tests can't find an additionally included file
My test project contains a zip file with some files in which the tests rely on. The zip file is included in the additional files and appears in the AppData\Local\NCrunch\6276\14\<project> directory (as well as the \AppData\Local\NCrunch\6276\14\<project>\bin\Debug\ directory). In the test set…
01 Oct 2012 10:38 UTC
-
Coverage shows black when tests cover the code
Thanks Remco, Unfortunately this setup is common. We currently have 71 projects in our solution, about 15 of them are silverlight builds of another .NET project. The silverlight projects do not have any tests, and are not considered by NCrunch, so I would have thought that as far as NCrunch is …
23 May 2012 07:44 UTC
-
Coverage shows black when tests cover the code
Remco, sorry not to have got back sooner, seem to be snowed under at the moment. I wanted to try and create a slimmed down solution which showed the problem but have not had the time. We have a .NET project (lets call it A) and some tests for that (A.Tests). We also have a silverlight project…
22 May 2012 11:37 UTC
-
Coverage shows black when tests cover the code
Hi Remco, thanks for the reply sorry I was late to respond. The solution has 72 projects in it some of which are silverlight projects. The project in question The class I looked at (though I think there are others with the same issue) is in a project that is right at the root (ie it doesn't de…
15 May 2012 13:56 UTC
-
How does NCrunch determine what to put in the output location it uses to run the tests?
Hi Remco, Thanks. I was able to get the behaviour I wanted by creating a post build step which replicates the AfterBuild item in the project file. Thanks! and thanks for an awesome tool!
14 May 2012 08:11 UTC
-
How does NCrunch determine what to put in the output location it uses to run the tests?
Does NCrunch use the .csproj file to determine how to build the project? I ask because I have a custom post build task which I use to make the config files for the tests different based on the current build configuration, and this custom build task does not seem to be being run by NCRunch (it alway…
11 May 2012 14:40 UTC
-
Coverage shows black when tests cover the code
I have just started using NCrunch and have some classes where the markers show there is no coverage, but I have tests which NCrunch is running successfully. When I edit the class (just add a space) the markers go green for a short while, then return to black. Why might this be?
11 May 2012 08:43 UTC