Skip to content
Bugwise
Menu

Mock

Also called: Stub, Fake

A fake stand-in for a real dependency, used to test one part in isolation.

Definition

Developers mock payment providers, servers or databases so tests run fast and predictably. Testers should remember that mocked parts still need testing against the real thing.

In practice

The checkout passes every test with a mocked payment provider, but fails with the real one because of a different date format.

Related terms

Esc

Type to search the whole site.