Coder Social home page Coder Social logo

ci-tdd-java-template's Introduction

ci-tdd-java-template

A little template used for explaining CI and TDD

Introduction

This project is suppose to be used as a helper project when demonstrating and explaining continuous integration (CI), code coverage and test driven development (TDD).

The project uses Travis CI for building and the combination of Jacoco and CodeCov for code coverage. All master branch merges must go through a pull request (PR) and each PR has multiple status checks.

The status checks required are the following:

  1. Successful build from Travis CI
  2. 100% code coverage, reported from CodeCov

Assignment

The goal with this assignment is to create PR from the develop branch of a forked repository, to the master branch of the main repository where all the status checks are approved.

In order to do that, the following tasks are required.

  • Fork the repository
  • Checkout the develop branch
  • Do the coding task

Coding

The coding task is very simple but should give a good feeling of the difference between test driven development and regular unit testing. The coding task consists of implementing one method which already has unit tests, write unit tests for an already implemented method and finally implement both the method and write unit tests for one method.

Note that for the final implementation part, you can choose if you want to write the test first or the functionality.

The implementation part should be done in this order:

  1. Implement StringUtils.isPalindrome(final String str)
  2. Implement the tests for Calculator.sumAll(final Integer... valuesPram)
  3. Implement both the tests and the functionality for StringUtils.isBlank(final String str)

ci-tdd-java-template's People

Contributors

palmithor avatar

Watchers

Pierre Stridsberg 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.