NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
pub.dev · #247 most downloaded on pub.dev
A mock framework inspired by Mockito with APIs for Fakes, Mocks, behavior verification, and stubbing.
Last release 2 months ago
06 Aug 2026
Release timing varies
gaps range from 2 weeks to 12 months
Nearly every release is documented
notes for 54 of the last 60 stable releases
Nothing withdrawn
no release was ever pulled
12 years old
83 releases · first in 2014
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
One column per quarter.
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Add new feature to wait for an interaction: untilCalled. See the README for documentation.
untilCalled. See the README for
documentation.capture* calls outside of a verify* call no longer capture arguments.mock.methodWithListArgs([1,2,3].map((e) => e*2)) (note the Iterable
argument) will no longer match the following stub:
when(mock.methodWithListArgs([42])).thenReturn(7);.Add documentation for when, verify, verifyNever, resetMockitoState.
when, verify, verifyNever, resetMockitoState.throwOnMissingStub, resetMockitoState.verify.<2.0.0-dev.infinity to support Dart 2.0
development testing.test/example/iss.Start using the new InvocationMatcher instead of the old matcher.
InvocationMatcher instead of the old matcher.throwOnMissingStub back to invoking Object.noSuchMethod:
throwsNoSuchMethodError if you want to catch it.Add a new thenThrow method to the API.
thenThrow method to the API.thenAnswer in the README.Add a new typed API that is compatible with Dart Dev Compiler; documented in README.md.
typed API that is compatible with Dart Dev Compiler; documented in
README.md.Equality matcher used by default to simplify matching collections as arguments. Should be non-breaking change in most cases, otherwise consider using…
argThat(identical(arg)).Nothing published for this version
* Added support for spy.
Migrate from the unittest package to use the new test package.
Nothing published for this version
Nothing published for this version
Nothing published for this version
Your coding agent can read these notes before it upgrades. Set up the MCP server →