GithubHelp home page GithubHelp logo

java-unit-testing's Introduction

Unit tests collection using JUnit

testing-examples language-java framework-junit

Java unit tests collection using JUnit.

About

This repository aims to provide a straight forward, simple collection of unit tests anyone can learn from. You can contribute with your own tests and functionality without any limit; as long as you are respectful and provide useful additions.

Installation

The initial source code was made using Eclipse Oxygen, keep reading if you want to know how to make your setup. Of course, you can use any compiler and IDE you may want.

Using Eclipse

Start by downloading/cloning the repository:

git clone https://github.com/SAGGameDeveloper/testing

Open Eclipse and go to File -> Open Projects from File System... and select the repository folder.

You are now ready to go!

Contributing

Feel free to open an issue/pull request if you have any correction or improvement.

Adding new tests

You can add tests to existent methods, or add new methods along with its correspondent tests. Whatever you choose, you will need to fork this repository, create a new branch, commit your changes and then open a pull request.

If you want to add new tests to existent classes/methods, you only need to add them at the end of the correspondent testing class, right after the last test. Instead, if you want to add new functionality and its tests, add your base class and its test class following the scheme of the other ones.

Make sure all of the tests you add are passed by the classes, then make a commit with one of the following descriptions depending on your changes: Added name_of_test_1, name_of_test_2 to test_class_name Implemented new functionality name_of_the_new_class_1, name_of_the_new_class_2.

Authors

License

This repository is under the MIT license.

java-unit-testing's People

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.