Accelerate your Flutter test suite with lightning speed! ⚡

Tests with testRocket Tests with testRocket

Sample : 4600 tests running in ~1 min...

Show your support

Buy Me A Coffee

Features

  • Dramatically speeds up test execution: By bundling tests into a single file, testRocket significantly reduces the overall runtime of your test suite.
  • Simplifies test organization: Automatically collects and consolidates tests from across your project, eliminating the need for manual test management.
  • User-friendly command-line interface: Interact with the tool using intuitive commands designed for clarity and ease of use.
  • Upcoming: Support for test run with coverage

Installation

Activate the testRocket command line tool using this command:

dart pub globabl activate testRocket

Usage

Core Commands

  • testRocket bundle: Creates the bundled test file.
  • testRocket run: Executes the bundled tests.

Some tests are failing. Why?!

Test failure with testRocket expose vulnerabilities in the test suite. If tests are passing with the regular flutter run but fail in the testRocket run, then there is a good chance the tests are not truly isolated. Hence, the tests might be sharing some resource in the test environment, eg; a shared service locator, a ViewBinding, etc.