Giter Site home page Giter Site logo

asifurrouf / practicalunittesting-examples Goto Github PK

View Code? Open in Web Editor NEW

This project forked from tomekkaczanowski/practicalunittesting-examples

1.0 2.0 1.0 184 KB

Source code of the examples from "Practical Unit Testing with TestNG and Mockito"

Home Page: http://practicalunittesting.com

Java 100.00%

practicalunittesting-examples's Introduction

Basic Info

This project contains all the source code of examples for "Practical Unit Testing with TestNG and Mockito".

See the book’s website: http://practicalunittesting.com

Import project to your IDE

Eclipse

First you need to generate Eclipse project files. If you have Gradle installed then type

gradle eclipse

In other cases (this will take some time - first Gradle will be downloaded):

./gradlew eclipse

After this you can import this project to Eclipse as any other project (File / Import / General / Existing Project into Workspace). As far as I know (not being an Eclipse guru!) you need to import each project individually.

IntelliJ IDEA

You can import files by choosing:

  • File / New Project / Import project from external module

  • select Gradle

  • and then select build.gradle file

Content

For your convenience all exercises are kept in separate dirs with names like "chp_X_exercise_name" where X is the chapter number:

TODO more of them in examples

  • Chapter 2 "Developers Tests"

  • Chapter 3 "Unit Tests with no Collaborators"

  • Chapter 4 "Test Driven Development"

  • Chapter 5 "Mocks, Stubs, Test Spies"

  • Chapter 6 "Things You Should Know"

  • Chapter 7 "Points of Controversy"

  • Chapter 8 "Getting Feedback"

  • Chapter 9 "Organization of Tests"

  • Chapter 10 "Maintainable Tests"

  • Chapter 11 "Test Quality"

Some tests fail - yes, on purpose

TODO

practicalunittesting-examples's People

Contributors

tomekkaczanowski avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Forkers

asifrouf

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.