Giter VIP home page Giter VIP logo

jenkins-test's Introduction

How to use Jenkins

Lab Exercise: Setting up Jenkins to run and report Test Coverage

In this exercise you will setup Coverage reporting on our Jenkins server, with build and test of the Calculator-exercise your started last week. The Jenkins Project will pull the latest version from your GitHub repository, before it builds and tests this latest version, when it is triggered manually or automatically. You have already set up GitHub to trigger your job on the Jenkins server, when new file versions are pushed to your repository on GitHub. This should trigger all Jenkins jobs, that use this repository.


  1. One of the time members must download the dotCoverCoverageConfig.xml file from BB to your solution folder
  2. Edit to match your solution and tests
  3. Add it to version control and commit it
  4. Push your local repository to the remote repository
  5. Create together a Jenkins New Item. Use the already defined project TemplateCoverage to copy from, and fill in your repository and other relevant information, as indicated in the template project โ€“ e.g. the correct name of the solution and of the .dll containing your test cases.
  6. Use the Build Now option to verify, that the project can obtain the code from the repository, build and run the tests, AND at the same time calculate test coverage. Correct until this is the case.
  7. All other team members pull from the remote repository and checks, that dotCoverCoverageConfig.xml is now a part of the solution.
  8. Now, one from your team shall create a change in the project. Build and Test. Commit the change to the local repository. Finally do a sync: Pull โ€“ Push to your remote GitHub repository.
  9. Goto the Jenkins server. After a few seconds (10-15), a new Build for your Jenkins project should start automatically, if you have set up your webhook correctly previously, and your new job. If not, check want went wrong, looking at the GitHub server and at the Jenkins server.
  10. If you want to, you can disable the Jenkins job you made last week, as unit testing is now done by the coverage job.

jenkins-test's People

Contributors

grottrup avatar mikeobirch avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.