Sponsored by- The #1 Flutter-powered AI app builder
Home/Top/Testing/mockito vs test_api

mockito vs test_api

A head-to-head of two Testing packages on pub.dev, by daily downloads, GitHub activity, and maintenance.

test_api leads on usage with about 4.0x the daily downloads of mockito (273,152 vs 69,038 per day). mockito has the larger GitHub following (847 vs 529 stars).

mockito

🇺🇸 dart.dev · v5.6.5

A mock framework inspired by Mockito with APIs for Fakes, Mocks, behavior verification, and stubbing.

Downloads / day
69,038
Stars
847
Likes
1,532
Pub points
160

Replies within ~2 days

test_api

🇺🇸 tools.dart.dev · v0.7.12

The user facing API for structuring Dart tests and checking expectations.

Downloads / day
273,152
Stars
529
Likes
24
Pub points
150

Replies within ~2 days

mockito vs test_api, metric by metric

Metric mockito test_api
Downloads / day 69,038 273,152
Rank in Testing #8 #1
GitHub stars 847 529
Likes 1,532 24
Pub points 160 / 160 150 / 160
Issue response (median) 0 days 0 days
Contributors 99 99
Last commit 1 month ago 1 month ago
CI Yes Yes
License BSD-3-Clause BSD-3-CLAUSE
First published 11 years ago 7 years ago
Platforms android, ios, windows, linux, macos, web android, ios, windows, linux, macos, web

Highlighted cell wins each comparable metric. For rank, issue response, and last commit, lower is better.

More Testing comparisons