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

Notification

Icon
Error

Jenkins CI association
imays
#1 Posted : Wednesday, September 30, 2015 5:09:09 PM(UTC)
Rank: Newbie

Groups: Registered
Joined: 9/30/2015(UTC)
Posts: 4
Location: Korea, South

How can I associate Ncrunch command line tool to Jenkins?
Remco
#2 Posted : Wednesday, September 30, 2015 10:19:56 PM(UTC)
Rank: NCrunch Developer

Groups: Administrators
Joined: 4/16/2011(UTC)
Posts: 7,144

Thanks: 959 times
Was thanked: 1290 time(s) in 1196 post(s)
I'm afraid that I can't provide direct guidance on this, as I have no knowledge of Jenkins or how to configure it.

The console tool essentially just takes a series of parameters and will run against a solution file. The tool outputs a number of reports that contain the results in human and machine readable form. I'd suggest treating it similar to a 3rd party build or test runner. I'm sure Jenkins will have some way of executing a command line call against the solution file in a way that will let you retrieve the output.
emanuelvarga
#3 Posted : Monday, December 21, 2015 3:23:10 PM(UTC)
Rank: Newbie

Groups: Registered
Joined: 12/21/2015(UTC)
Posts: 2
Location: Romania

I'm also interested in running the command line from jenkins.
Even though you can easily any command with ease from it, I was wondering if there is any way of being able to use ncrunch only for the testing / reporting part.
I would prefer to use our in-house system for generating the artifacts and simply give these as inputs to ncrunch.
Remco
#4 Posted : Monday, December 21, 2015 10:21:41 PM(UTC)
Rank: NCrunch Developer

Groups: Administrators
Joined: 4/16/2011(UTC)
Posts: 7,144

Thanks: 959 times
Was thanked: 1290 time(s) in 1196 post(s)
emanuelvarga;8154 wrote:
I'm also interested in running the command line from jenkins.
Even though you can easily any command with ease from it, I was wondering if there is any way of being able to use ncrunch only for the testing / reporting part.
I would prefer to use our in-house system for generating the artifacts and simply give these as inputs to ncrunch.


Unfortunately, this just isn't possible with NCrunch, as NCrunch's build is fully integrated with its testing system. For NCrunch to be able to run tests in a consistent manner with a dev machine, it needs to first workspace, build, then instrument assemblies. Although a normal build system can produce binaries, it doesn't perform the same workspacing and instrumentation tasks that are needed by NCrunch. This means that even if a feature existed in NCrunch that would let you use a CI's output binaries, you would receive results with no code coverage data and the manner of execution would not be consistent with dev machines (making it harder to troubleshoot problems).
emanuelvarga
#5 Posted : Monday, December 21, 2015 11:32:32 PM(UTC)
Rank: Newbie

Groups: Registered
Joined: 12/21/2015(UTC)
Posts: 2
Location: Romania

Ok, the coverage part would not be possible, ok, for that there is sonar that provides a lot of customizations.

The biggest advantage to ncrunch for a build machine would be the parallel test execution (and maybe even grid running of tests?). This feature is currently not available in any test runner currently (correct me if i'm wrong).

Remco
#6 Posted : Monday, December 21, 2015 11:44:46 PM(UTC)
Rank: NCrunch Developer

Groups: Administrators
Joined: 4/16/2011(UTC)
Posts: 7,144

Thanks: 959 times
Was thanked: 1290 time(s) in 1196 post(s)
emanuelvarga;8162 wrote:
Ok, the coverage part would not be possible, ok, for that there is sonar that provides a lot of customizations.


The nice thing about using NCrunch in your CI is that you get build, test and coverage results all in one step. If you use a different product for code coverage, you'll need to run all the tests twice :)

emanuelvarga;8162 wrote:

The biggest advantage to ncrunch for a build machine would be the parallel test execution (and maybe even grid running of tests?). This feature is currently not available in any test runner currently (correct me if i'm wrong).


Parallel test execution is becoming more common now in other products. Most of them still perform this multi-threaded within the same process, which is quite limiting .. but I'm not yet aware of any runners that can scale horizontally across a grid in the same way that NCrunch can.

It's worth remembering that it is an advantage to have your CI behaving the same way as your local dev machines. If you employ a range of different systems and products to perform your CI steps, you run the risk of having a problem in your CI that doesn't appear on your dev machine. CI problems can be time consuming to troubleshoot and can have a significant impact on team productivity.
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.045 seconds.
Trial NCrunch
Take NCrunch for a spin
Do your fingers a favour and supercharge your testing workflow
Free Download