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

Notification

Icon
Error

ncrunch from commandline
floekke
#1 Posted : Thursday, October 31, 2013 9:33:36 AM(UTC)
Rank: Newbie

Groups: Registered
Joined: 4/19/2012(UTC)
Posts: 8

Is it possible to run ncrunch from the command line?

I would like to use it as part of a msbuild script.
willdean
#2 Posted : Thursday, October 31, 2013 9:40:18 AM(UTC)
Rank: Member

Groups: Registered
Joined: 1/31/2012(UTC)
Posts: 25
Location: England

Thanks: 7 times
Was thanked: 2 time(s) in 2 post(s)
What test framework are you using? I always just use the framework's (normally nUnit, I'm just so dull and old fashioned) test runner during automated builds.

To me, nCrunch is all about the integration with VS, and the automatic build/run process, none of which seems relevant during an automated build. What aspect of nCrunch were you wanting to use during the build?

Remco
#3 Posted : Thursday, October 31, 2013 10:58:56 AM(UTC)
Rank: NCrunch Developer

Groups: Administrators
Joined: 4/16/2011(UTC)
Posts: 6,968

Thanks: 929 times
Was thanked: 1256 time(s) in 1169 post(s)
At the moment, it isn't possible to run NCrunch from the command line. I do, however, understand the motive behind this. As there are differences between NCrunch's test environment and that of a standard test runner, it is desirable to be able to ensure code is NCrunch-compliant as part of a continuous integration process. This could be useful for teams where not all members are making use of NCrunch.

Unfortunately, NCrunch itself is designed to be fully continuous. The architecture of a continuous test runner vs a serial test runner is very, very different. Attempts have been made to produce a console variant but so far none of these have resulted in anything reliable enough to be used for a continuous integration process or build server. There is still the possibility of this area being explored more in future.
Andrey
#4 Posted : Sunday, March 2, 2014 1:23:35 PM(UTC)
Rank: Newbie

Groups: Registered
Joined: 3/2/2014(UTC)
Posts: 2
Location: Russia

Remco;4785 wrote:
At the moment, it isn't possible to run NCrunch from the command line. I do, however, understand the motive behind this. As there are differences between NCrunch's test environment and that of a standard test runner, it is desirable to be able to ensure code is NCrunch-compliant as part of a continuous integration process. This could be useful for teams where not all members are making use of NCrunch.

Unfortunately, NCrunch itself is designed to be fully continuous. The architecture of a continuous test runner vs a serial test runner is very, very different. Attempts have been made to produce a console variant but so far none of these have resulted in anything reliable enough to be used for a continuous integration process or build server. There is still the possibility of this area being explored more in future.


If you have a test runner that can execute tests across multiple nodes (V2) then it could be very helpful outside NCrunch itself - for example it would be possible to speed up tests running in TeamCity.
Remco
#5 Posted : Sunday, March 2, 2014 10:31:43 PM(UTC)
Rank: NCrunch Developer

Groups: Administrators
Joined: 4/16/2011(UTC)
Posts: 6,968

Thanks: 929 times
Was thanked: 1256 time(s) in 1169 post(s)
Andrey;5443 wrote:
If you have a test runner that can execute tests across multiple nodes (V2) then it could be very helpful outside NCrunch itself - for example it would be possible to speed up tests running in TeamCity.


Yes - definitely. The distributed and parallel execution features could massively decrease build times on a continuous integration server. The value of this is without question.
Andrey
#6 Posted : Monday, March 3, 2014 7:44:05 AM(UTC)
Rank: Newbie

Groups: Registered
Joined: 3/2/2014(UTC)
Posts: 2
Location: Russia

Remco;5447 wrote:
Yes - definitely. The distributed and parallel execution features could massively decrease build times on a continuous integration server. The value of this is without question.


Any plans for making it a detachable feature?
Remco
#7 Posted : Monday, March 3, 2014 7:49:40 AM(UTC)
Rank: NCrunch Developer

Groups: Administrators
Joined: 4/16/2011(UTC)
Posts: 6,968

Thanks: 929 times
Was thanked: 1256 time(s) in 1169 post(s)
Nothing I can commit to at the moment, but it will probably happen in future.
1 user thanked Remco for this useful post.
penguat on 3/27/2014(UTC)
penguat
#8 Posted : Thursday, March 27, 2014 3:20:52 PM(UTC)
Rank: Newbie

Groups: Registered
Joined: 10/15/2012(UTC)
Posts: 7
Location: United Kingdom

Thanks: 1 times
Was thanked: 1 time(s) in 1 post(s)
If we could use NCrunch to speed up builds as well as continuous testing, I think that would be all I required to persuade my company to set up an NCrunch cluster for running the tests.
Remco
#9 Posted : Thursday, March 27, 2014 9:27:36 PM(UTC)
Rank: NCrunch Developer

Groups: Administrators
Joined: 4/16/2011(UTC)
Posts: 6,968

Thanks: 929 times
Was thanked: 1256 time(s) in 1169 post(s)
Hi, thanks for posting. I recommend voting for this feature at https://ncrunch.uservoice.com.
albertomonteiro
#10 Posted : Friday, May 23, 2014 5:41:10 PM(UTC)
Rank: Member

Groups: Registered
Joined: 5/28/2012(UTC)
Posts: 17
Location: Fortaleza, Ceara - Brasil

Thanks: 11 times
Was thanked: 3 time(s) in 3 post(s)
I would like to retrive code coverage from ncrunch using command line, is it possible?
Remco
#11 Posted : Friday, May 23, 2014 9:50:06 PM(UTC)
Rank: NCrunch Developer

Groups: Administrators
Joined: 4/16/2011(UTC)
Posts: 6,968

Thanks: 929 times
Was thanked: 1256 time(s) in 1169 post(s)
Not at the moment. There is a feature request for this that you're welcome to vote for though - http://ncrunch.uservoice.com/forums/245203-feature-requests/suggestions/5749303-standalone-executable-version-for-builds-etc.
Users browsing this topic
Guest
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.075 seconds.
Trial NCrunch
Take NCrunch for a spin
Do your fingers a favour and supercharge your testing workflow
Free Download