+
+

Related Products

  • Gearset
    225 Ratings
  • Parasoft
    130 Ratings
  • Bitrise
    383 Ratings
  • c/side
    23 Ratings
  • Source Defense
    7 Ratings
  • Adobe PDF Library SDK
    35 Ratings
  • Reflectiz
    14 Ratings
  • Datasite Diligence Virtual Data Room
    514 Ratings
  • Odoo
    1,616 Ratings
  • Condo Control
    460 Ratings

About

Mocking is a technique to make testing code readable and maintainable. In three consequent articles, I would like to show the basics, features, and quirks of the MockK library. It is a new open-source library (github repository) focused on making mocking in Kotlin great. Injection first tries to match properties by name, then by class or superclass. Check the lookupType parameter for customization. Properties are injected even if private is applied. Constructors for injection are selected from the biggest number of arguments to lowest.

About

Writing unit tests can be hard and sometimes good design has to be sacrificed for the sole purpose of testability. Often testability corresponds to good design, but this is not always the case. For example final classes and methods cannot be used, private methods sometimes need to be protected or unnecessarily moved to a collaborator, static methods should be avoided completely and so on simply because of the limitations of existing frameworks. PowerMock is a framework that extends other mock libraries such as EasyMock with more powerful capabilities. PowerMock uses a custom classloader and bytecode manipulation to enable mocking of static methods, constructors, final classes and methods, private methods, removal of static initializers and more. By using a custom classloader no changes need to be done to the IDE or continuous integration servers which simplifies adoption.

Platforms Supported

Windows
Mac
Linux
Cloud
On-Premises
iPhone
iPad
Android
Chromebook

Platforms Supported

Windows
Mac
Linux
Cloud
On-Premises
iPhone
iPad
Android
Chromebook

Audience

DevOps teams looking for a Unit Testing solution

Audience

Unit Testing solution for developers

Support

Phone Support
24/7 Live Support
Online

Support

Phone Support
24/7 Live Support
Online

API

Offers API

API

Offers API

Screenshots and Videos

Screenshots and Videos

Pricing

Free
Free Version
Free Trial

Pricing

Free
Free Version
Free Trial

Reviews/Ratings

Overall 0.0 / 5
ease 0.0 / 5
features 0.0 / 5
design 0.0 / 5
support 0.0 / 5

This software hasn't been reviewed yet. Be the first to provide a review:

Review this Software

Reviews/Ratings

Overall 0.0 / 5
ease 0.0 / 5
features 0.0 / 5
design 0.0 / 5
support 0.0 / 5

This software hasn't been reviewed yet. Be the first to provide a review:

Review this Software

Training

Documentation
Webinars
Live Online
In Person

Training

Documentation
Webinars
Live Online
In Person

Company Information

MockK
mockk.io

Company Information

PowerMock
github.com/powermock/powermock

Alternatives

Alternatives

Cypress

Cypress

Cypress.io
XCTest

XCTest

Apple
Telerik JustMock

Telerik JustMock

Progress Telerik

Categories

Categories

Integrations

JUnit
Bootstrap
EasyMock
Java
Kotlin
Mockito
Parasoft

Integrations

JUnit
Bootstrap
EasyMock
Java
Kotlin
Mockito
Parasoft
Claim MockK and update features and information
Claim MockK and update features and information
Claim PowerMock and update features and information
Claim PowerMock and update features and information