Java Other
Latest commit 885defd Jul 8, 2017 @szpak szpak committed on GitHub Merge pull request #1147 from mockito/versionInCommitMessage
[#1147] Provide version in release commit message
Permalink
Failed to load latest commit information.
.github Fixes #1044: change example for alignment of throws declaration (#1045) Apr 19, 2017
config/checkstyle Clean up unused imports Mar 25, 2017
doc version bumped + release notes updated by CI build 2789 [ci skip-rele… Jul 6, 2017
gradle Provide version in release commit message Jul 8, 2017
src Don't use raw rypes in UnusedStubbingsTest (#1137) Jun 24, 2017
subprojects Bumped shipkit, simplified Travis file, removed unnecessary code Jul 5, 2017
.checkstyle Additional line ending fixes Jun 6, 2015
.editorconfig Add editor config to automatically adhere to code style guide (#966) Feb 28, 2017
.gitattributes Add .gitattributes to enforce LF Jun 4, 2015
.gitignore Ignore log files and trigger release mechanism Feb 13, 2017
.travis.yml Documented travis configuration file Jul 6, 2017
LICENSE added refEq matcher based on reflectionEquals from apache commons lang Jan 27, 2008
README.md Small rewording Jul 3, 2017
build.gradle Bumped shipkit, simplified Travis file, removed unnecessary code Jul 5, 2017
dummy-commit.txt Trigger build for [ci-release 2.1.0] Oct 3, 2016
gradle.properties Provide version in release commit message Jul 8, 2017
gradlew update gradle (v3.5) (#1099) May 28, 2017
gradlew.bat update gradle (v3.5) (#1099) May 28, 2017
settings.gradle Support Kotlin suspending functions (#1032) May 5, 2017
sw-precache-config.json Generate service-worker after generating JavaDoc for offline access (#… Nov 15, 2016
version.properties version bumped + release notes updated by CI build 2789 [ci skip-rele… Jul 6, 2017

README.md

Mockito

Most popular mocking framework for Java

Build Status Coverage Status MIT License

latest release Bintray Maven Central Javadocs

Current version is 2.x

Still on Mockito 1.x? See what's new in Mockito 2!

Mockito continuously delivers improvements using Shipkit library (http://shipkit.org). See the latest release notes and latest documentation. Docs in javadoc.io are available 24h after release. Read also about semantic versioning in Mockito.

Older 1.x releases are available in Central Repository , Bintray and javadoc.io (documentation).

More information

All you want to know about Mockito is hosted at The Mockito Site which is Open Source and likes pull requests, too.

Want to contribute? Take a look at the Contributing Guide.

Enjoy Mockito!

Need help?

How to develop Mockito?

To build locally:

 ./gradlew build

To develop in IntelliJ IDEA you can use built-in Gradle import wizard in IDEA. Alternatively generate the importable IDEA metadata files using:

 ./gradlew idea

Then, open the generated *.ipr file in IDEA.

How to release new version?

Mockito implements Continuous Delivery model. Every change on main branch (for example merging a pull request) triggers a release build on Travis CI. The build publishes new version if specific criteria are met: all tests green, no 'ci skip release' used in commit message, see the build log for more information. Every new version is published to "mockito/maven" Bintray repository. New versions that Mockito team deems "notable" are additionally published to Maven Central and JCenter. We used to publish every version to Maven Central but we changed this strategy based on feedback from the community (#911).

  • Q: What's new in Mockito release model?

    A: In Q2 2017 we implemented Mockito Continuous Delivery Pipeline 2.0. Not every every version is published to Maven Central.

  • Q: How to publish to Maven Central?

    A: Include "[ci maven-central-release]" in the commit message. To signify a new feature consider updating version to next minor/major, like: "2.8.0", "2.9.0", "3.0.0".

  • Q: How to promote already released version to a notable version?

    A: It isn't automated at the moment. What's the use case?