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

Notification

Icon
Error

NCrunch Console - Avoid Compilation
mizzm001
#1 Posted : Friday, June 22, 2018 7:59:22 AM(UTC)
Rank: Newbie

Groups: Registered
Joined: 6/22/2018(UTC)
Posts: 3
Location: Malta

Is it possible to avoid compilation and only provide the test assembly path with NCrunch console.
Remco
#2 Posted : Friday, June 22, 2018 8:23:50 AM(UTC)
Rank: NCrunch Developer

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

Thanks: 695 times
Was thanked: 856 time(s) in 814 post(s)
Hi, thanks for posting.

Unfortunately not. NCrunch's feature-set requires it to be in control of the build system. It isn't possible to track code coverage data without instrumenting assemblies, which requires post-processing. This means that when using the console tool in your CI system, you have two options:

1. Build your solution using MSBuild/devenv, then build it again with NCrunch for your tests
2. Build your solution using only NCrunch. This will mean that you won't have releasable artifacts (i.e. it's a test-only build).
mizzm001
#5 Posted : Friday, June 22, 2018 8:30:11 AM(UTC)
Rank: Newbie

Groups: Registered
Joined: 6/22/2018(UTC)
Posts: 3
Location: Malta

Thanks for the insight Remco.
mizzm001
#3 Posted : Friday, June 22, 2018 12:09:53 PM(UTC)
Rank: Newbie

Groups: Registered
Joined: 6/22/2018(UTC)
Posts: 3
Location: Malta

Remco;12385 wrote:
Hi, thanks for posting.

Unfortunately not. NCrunch's feature-set requires it to be in control of the build system. It isn't possible to track code coverage data without instrumenting assemblies, which requires post-processing. This means that when using the console tool in your CI system, you have two options:

1. Build your solution using MSBuild/devenv, then build it again with NCrunch for your tests
2. Build your solution using only NCrunch. This will mean that you won't have releasable artifacts (i.e. it's a test-only build).



We have a case where we don't need code coverage. Could we do without compilation?
Remco
#4 Posted : Friday, June 22, 2018 12:29:09 PM(UTC)
Rank: NCrunch Developer

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

Thanks: 695 times
Was thanked: 856 time(s) in 814 post(s)
mizzm001;12387 wrote:

We have a case where we don't need code coverage. Could we do without compilation?


Conceptually, it then becomes possible. Unfortunately, in practice, there's no way that the console tool can work without performing the builds itself. This is because the console tool itself is basically just the same NCrunch engine as used in the IDE, but it's been adapted to run without a head. The software itself would need to be heavily re-engineered to work in such a way.
Users browsing this topic
Guest (2)
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.