MockK Description

Mocking serves as an effective method to enhance the readability and maintainability of code during testing. In a series of three articles, I aim to explore the foundational concepts, features, and unique aspects of the MockK library. This innovative open-source library, available on GitHub, is dedicated to simplifying the mocking process in Kotlin. When it comes to property injection, the library first attempts to align properties by their names, followed by matching them based on class or superclass hierarchies. For further customization, users can refer to the lookupType parameter. Notably, property injection continues to function even when private visibility is enforced. Additionally, when selecting constructors for injection, the library prioritizes those with the highest number of arguments, proceeding to those with fewer. This thoughtful design enhances the user experience and flexibility in testing scenarios.

Pricing

Pricing Starts At:
Free
Free Version:
Yes

Integrations

API:
Yes, MockK has an API

Reviews

Total
ease
features
design
support

No User Reviews. Be the first to provide a review:

Write a Review

Company Details

Company:
MockK
Website:
mockk.io

Media

MockK Screenshot 1
Recommended Products
MongoDB Atlas runs apps anywhere Icon
MongoDB Atlas runs apps anywhere

Deploy in 115+ regions with the modern database for every enterprise.

MongoDB Atlas gives you the freedom to build and run modern applications anywhere—across AWS, Azure, and Google Cloud. With global availability in over 115 regions, Atlas lets you deploy close to your users, meet compliance needs, and scale with confidence across any geography.
Start Free

Product Details

Platforms
Windows
Mac
Linux
Types of Training
Training Docs
Customer Support
Online Support

MockK Features and Options

MockK User Reviews

Write a Review
  • Previous
  • Next