I can able to use this Jacoco coverage in Windows machine. I want to know whether this works for Linux machine or not. If it works, tell me how. If it doesn't, please tell me the reason.
Thanks.
Jacoco is implemented in Java and usually ran from Maven or Ant or Jenkins, which are also implemented in Java. Java works on both Windows and Linux, so there should not be any issue with running Jacoco in Linux.
You could have issues with running your build, say under Maven, if your pom file definition contains Windows specific paths and settings. This would cause your build process to break, not the Jacoco run. If you manage to have a successful build in Linux then it should easy to get Jacoco to run as well.
Related
When I am using runAs inside eclipse I am always getting this error.
Error: Could not find or load main class com.xx.api.Application
How to fix this ?
It depends on your version of Eclipse, on what you have installed, on how you configured everything...
What you can do:
Install Spring Tool Suite : it's an Eclipse version with everything already set up, so you can get started quickly
Use JHipster's new Vagrant devbox which will give you a virtualized environment with everything pre-configured for you
Thanks for looking into this. I am using Spring Tool Suite. I am trying to use gradle eclipse plugin. This is where i was getting errors.
When i switched to import project as gradle project It started working. However I have generated DTO using the jhipster-uml.
This generate the mapper classes in build folder by default. Now when i run the application, It fails to find mapper classes.
I am able to make is work by generating the mapper classes into my source folder for now.
Thanks for help.
I've been trying to migrate my whole test projects to Jenkins which includes both Windows and Qnx C++ codes. Since I'm trying to manage all the continuous integration from the windows platform, I installed jenkins only on the windows machine.
Inside Jenkins, I created 2 different jobs, one for windows related codes and the other for qnx related codes. For windows related codes, there is no problem on building, running and collecting gtest outputs like passed/failed results or code coverage. (I use Visual Studio with OpenCppCoverage tool, so inside Jenkins, msbuild plugin and some windows shell commands are enough to create results for cobertura and junit plugins)
However, for the qnx related part I have the problem:
(For qnx projects I'm using Qnx Momentics) Inside Jenkins, I checkout the project to the windows machine from subversion, and use "mkbuild" command (which works fine for windows). This builds the project automatically and create the executable on windows. But I could not manage to run the executable (on the target qnx machine) to collect the test results from Jenkins.
I have checked many plugins but couldn't find some to solve this problem.
Is there any option to do this?
Thanks in advance :)
One similar question was asked for hudson, and it was proposed there to use virtual machines and creating slaves for each one. Using different slaves may solve the problem, I will try this.
How to use hudson when building for multiple platforms
We have a smallish C++ Linux project that accompanies our large C++/MFC Windows project. Currently, the Windows project uses CruiseControl.net and Visual Build Pro for managing continuous building and integration. We would like implement something to start our Linux project on the same path.
My question is, should I research using a separate Build tool for Linux or attempt to get Visual Build Pro to work by leveraging its automation and simply invoking a make script on a our Linux Build Machine to actually compile the project?
Even further, due to the size of the Linux project, would it be just easier to script it all including making snapshots and such?
While I don't know the complexity of the "integration" step in your project, the "building" step is in my experience best solved by a trivial shell script:
BUILDDIR=`mktemp -d`
svn checkout MY_REPOSITORY/trunk $BUILDDIR
cd $BUILDDIR
./configure
make all check
I've solved the integration test part with Dejagnu in my current project, works like a charm with another line of sh calling it.
Then insert this shell script into the daily run routine (e.g. by adding it to the crontab of a special CI user on the Linux machine) and forward all of the mail the CI user gets to the person responsible for watching the CI.
You can use jenkins or hudson to build on Linux box. This tools have integration with Source Control (svn, perforce, ...), cppunit ...
I am new to groovy and I cannot understand, if it is possible to compile a groovy program, so it runs at all computers, were the JRE is installed.
The application I am developing has to run on any computer with JRE 1.5. Is it possible to start using groovy and maintain this flexibility? With JRE 1.6?
I have heard about the library groovy-all-VERSION.jar. Is this the one required library to be shipped with my application?
The answer is yes. In fact, all groovy code compiles down to Java classes that run on the JRE. All you need is JRE 1.4 or higher and the groovy-all-*.jar on the classpath of your application.
Since you are looking to support JRE 1.5 or higher, make sure your source compatibility is set on your compiler to this level.
There are a few options for compiling your groovy code. Groovyc (Ant Task), GMaven (Maven) and Gradle are all options.
Another option you have is to 'not' compile your groovy code. The groovy distribution only requires the JRE to be installed. You can ship your application as a set of scripts that can simply be run using the groovy install. It depends on how sensitive your source code is.
The short answer is yes. How you do this depends on your build system. I do all my development in eclipse, right click my project, select export, select runnable jar file, and all the required librarys are exported in the jar file. I can then run this file on a machine with out Groovy installed. I know build systems like Maven support Groovy but don't know the details on how they do it or how good there support is. According to this question Java 1.4 or above is fine. When looking at the "Setting up your Java environment" section of the initial tutorial it looks like you need Java 1.5 installed.
i want to run a test project in ccnet,
can anyone help?
i am not using NUnit. I am using [Test Class()] attribute in my web project, and wanna run this project from ccnet
It appears the test framework would be MsTest
In order to run MsTest on the build server you have to install visual studio or do a work around or hack (alternate hack).
Then you can use MsTest.exe
Here is the official documentation on running MSTest tests.
Similar question and more hacks or work-arounds
If you're using NUnit, you may want to take a look at the documentation
I'd suggest looking in CCNet to run a msbuild task
There are a number of examples to run MSTest from MSBuild tasks.
This one looks prommesing:
http://harriyott.com/2005/07/running-mstest-from-msbuild.aspx?post=/2005/07/running-mstest-from-msbuild.blogpost
--
I myself am using NUnit and xUnit. Might you consider switching to NUnit for testing? There is a wider adoption of NUnit in combination with CCNet, which makes searching answers easier.