Forum member
openshac
14 posts
Posts by openshac
-
Code coverage incorrect
The following code snippets give different code coverage stats: [quote]if (isValid) return;[/quote] [quote]if (isValid) { return; }[/quote] The first example has 100% coverage if isValid = false The second example has <100% coverage if isValid = false Now I appreciate some develo…
18 Jan 2017 09:54 UTC
-
"Ignore this component completely" setting is irreversible
On further investigation I am now seeing the component disappear almost immediately. When the component is ignored a number of the components drop out of the Configuration window. At this moment all the tests in the Test window disappear whilst NCrunch reloads them. When the components are added bac…
30 Jun 2016 07:28 UTC
-
"Ignore this component completely" setting is irreversible
The component setting "Ignore this component completely" when set to [b]False[/b] initially greys out the component. However at some later point in time it completely disappears from the NCrunch Configuration window. How do you set "Ignore this component completely" back to [b]True[/b] in this s…
29 Jun 2016 17:04 UTC
-
Building C++/CLI project is very slow
Thanks for that suggestion, it worked. However with the by modifying the references in the way you have you end up getting [b]two references[/b] displayed in Visual Studio. One for the assembly that's referenced and another one for the project reference. In addition one of these has a horrible warni…
31 Mar 2015 08:18 UTC
-
Building C++/CLI project is very slow
I tried specifying the condition you mentioned however it didn't change the behaviour. And it would also mean the additional include directories would get omitted if [b]$(NCrunch) == '1'[/b], but I guess that modification was just to test things.
11 Mar 2015 09:15 UTC
-
Building C++/CLI project is very slow
The directory I have specified in the "Additional Include Directories" is [b]C:\Program Files %28x86%29\Boost\boost_1_51_0[/b] which is an absolute path. However in the typical NCrunch output I am seeing: [i]ENGINE - [09:13:31.1332-LocalBuildTask-10] Writing new workspace member C:\User…
09 Mar 2015 09:20 UTC
-
Building C++/CLI project is very slow
When you say "referencing the library files" what exactly do you mean? The Boost header files are currently "referenced" from the C++/CLI files using [b]#include[/b] statements.
06 Mar 2015 09:51 UTC
-
Building C++/CLI project is very slow
Remco, Thanks for your reply, I turned on the logging and I think I can see the problem... My C++/CLI project has "Additional Include Directories" specified. NCrunch is making a separate copy of all these files to its local build directory, rather than using the actual directories themselves. …
05 Mar 2015 13:12 UTC
-
Building C++/CLI project is very slow
I have a solution with about 25 projects (about half of those being unit test projects). One of these projects is a C++/CLI project which is somewhat slow to build - about one minute in Visual Studio. However in NCrunch it takes over 20 minutes, which is a much bigger problem. If I open my solution…
05 Mar 2015 10:33 UTC
-
Excluding autogenerated code
Ralf, That's exactly what I was looking for. Cheers Charlie
04 Feb 2015 16:39 UTC
-
Excluding autogenerated code
Hi Remco, I am generating the code myself so I think adding comments to the code will be the easiest solution. As I am currently just on an evaluation licence ATM I was trying to keep the code as NCrunch independent as possible, but this should be fine. Thanks for your help.
04 Feb 2015 09:36 UTC
-
Excluding autogenerated code
What is the recommended way to exclude auto-generated code from NCrunch code-coverage? At the moment I've got a number of classes that are generated using T4 Templates. The partial classes are currently preceded with the following standard Microsoft comments: [quote] //-----------------------…
03 Feb 2015 13:16 UTC
-
Recommended project file modifications "corrupt" sln file.
Thanks for your email Daniel, So are you saying that it's OK for me to change AnyCPU to x86 at the top of each project file?
22 Jan 2015 11:15 UTC
-
Recommended project file modifications "corrupt" sln file.
I enabled NCrunch for a solution with about 20 projects. I got load failures for some of the projects so I followed the recommendations on the [url=http://www.ncrunch.net/documentation/considerations-and-constraints_project-build-platform-and-configuration]Project Build Platform And Configuration[/u…
21 Jan 2015 16:24 UTC