Forum member

openshac

14 posts

Posts by openshac

  1. 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…

  2. "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…

  3. "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…

  4. 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…

  5. 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.

  6. 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…

  7. 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.

  8. 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. …

  9. 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…

  10. Excluding autogenerated code

    Ralf, That's exactly what I was looking for. Cheers Charlie

  11. 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.

  12. 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] //-----------------------…

  13. 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?

  14. 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…