I needed to setup a Jenkins pipeline and I wanted to know if unit test should run before the actual compilation of the project
The Jenkins pipeline currently runs unit and Integration test before the bundling and wanted know if that's ok
Related
I have a serenity bdd framework that I use to functionally test an app. I want to put this into a jenkins pipeline but I have come up with an issue.
When I run the pipeline stage with the mvn clean verify command I use to run the tests I get BUILD SUCCESS and it causes the pipeline to always show as green. The BUILD SUCCESS is separate from the results of the tests within it so I could have a successful build with multiple errors and failures from the tests within the BDD framework. How do I get the Jenkins pipeline to report based on the serenity test results rather than the overall build?
A
I created a VueJs project with some unit tests (using Jest) and integration tests using Cypress.
I have also a Jenkins pipeline in order to build, test and deploy the application.
I Integrated, as test stage, the unit tests but I would like to integrate also Cypress in order to run the integration tests into a dedicated pipeline step.
Is is possible to have this without installing any additional Cypress Jenkins plugin?
I mean, Is it possible to use a docker image to run the tests using Cypress?
Can you point me to some examples?
You should be able to use this with Jenkins Docker capabilities. Also here is another example you can refer to.
I have E2E tests written in golang and java for my application.
I want to kick off all E2E tests together as part of one Jenkins job. Is it doable?
I am using Jenkins for integration testing.
Just to give the context. At the moment I have a separate build server which produces the build daily and Jenkins is not used as the build server. The build server executes the unit testing in my case.
When build process is complete it invokes the Jenkins job. In that job Jenkins start to deploy the build into the Virtual machine. I have a script for doing this.
Followed to that my plan is to run several scripts for doing the end-to-end testing.
Now I have several question in this regard:
How to parallelize the execution of the end-to-end tests?
As I am adding scripts after script I am getting worried how manageable it will be?
I am always using the web interface for adding and changing the scripts. How to do this from the command line?
Any ideas for a good tutorial? Any pointers from all of you? Thanks!
Looks like Build Flow Plugin is what I need.
https://github.com/jenkinsci/build-flow-plugin
You might want to try and see if you can use the Build Pipeline plugin before build flow. Much better visualization of what is going on, less scripting.
I link Build and deploy jobs in one sequence and then have unit and integration test jobs linked separately off the build job. You can then use Fail The Build plugin to have downstream jobs fail upstream ones.
I have 2 jobs in Jenkins:
Build and run unit tests
(Build and) run integration tests
Job-2 is a Downstream project of Job-1.
Job-1 initiates build and run unit tests on it.
Job-2 initiates build as well and run integration tests.
I would like to change that, and make Job-2 to run the tests on the result build that was initiated by Job-1.
You could use Copy Artifact Plugin and use Job-1 artifacts from Job-2 to run some tests on them. Refer to this post for more information. Hope it will help.