Skip to content

Latest commit

 

History

History
63 lines (41 loc) · 3.31 KB

README.md

File metadata and controls

63 lines (41 loc) · 3.31 KB

Mockitools IntelliJ plugin

Version Build Downloads PayPal BuyMeACoffee

Mockitools is a plugin for IntelliJ-based IDEs that provides framework integration for Mockito, one of the (if not the) most popular mocking frameworks for unit testing in Java.

It is available for IntelliJ Community Edition as well as IntelliJ IDEA Ultimate Edition.

Plugin setup

Mockito 4 migration aids

There is a handful of inspections available to help migrate users from Mockito 2.x/3.x to 4.x.

Since Mockito 4 has been released only recently, they are enabled by default, but if you are already using Mockito 4, it is recommended to disable them in Java > Mockito > Migration aids (v4) in Inspection settings, so they are not executed for your project. As users move to v4, eventually they will get disabled by default.

See the list of those inspections in Mockito v4 migration aids.

SonarLint

SonarLint also has a few inspections for Mockito that you can find under the Java category of their rules.

If you use SonarLint to validate things that are available in Mockitools too, it is advised to adjust your settings, and have only those enabled that you feel comfortable working with. Be it in SonarLint or in Mockitools. This will help declutter your editor from duplicate highlights for the same problems, and will also improve the analysis performance in the IDE.

You can find the list of those inspections in the Mockitools/SonarLint rules document.

Why Mockitools is tasty

If "Mockito ... tastes really good" and "doesn’t give you hangover", this IDE plugin will only make it better. You can find out why, in the dedicated documentation below.

In the Intellij Inspections settings, all inspections are available under the Java > Mockito folder.

Licensing

This project and the plugin logo are licensed under the terms of Apache Licence Version 2.0.

Acknowledgments

Thank you to my good friend, Thubakabra, for creating the logo.


Plugin based on the IntelliJ Platform Plugin Template.