Skip to content
| Marketplace
Sign in
Visual Studio Code>Programming Languages>Easy Flutter TestsNew to Visual Studio Code? Get it now.
Easy Flutter Tests

Easy Flutter Tests

Luis Ribeiro

|
952 installs
| (0) | Free
Create, run and maintain Dart/Flutter test files easily
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

README

This is a fork from Better Flutter Tests with configurable paths

Improve the quality of your code by accelerating your coding/testing workflow 🚀

Boost your TDD-Workflow by:

  • ✅ Creating a proper xyz_test.dart file with boilderplate code for an existing xyz.dart file with one click!
  • ✅ Switching between xyz.dart file and the associated xyz_test.dart file instantly
  • ✅ Dramatically faster test execution -> Run only the unit tests that affect the file you're currently working on.
  • ✅ Using snippets to avoid writing boilderplate code
  • ✅ Automatically keep file and folder structure in sync between /lib and /test even if you rename or move a file or folder

Demo

Create test file or switch between tests and code with ⌘+T. Execute Tests with ⌥+⌘+T

demo-gif

Keep file and folder structure in sync after rename or move operations

rename-gif

Commands Summary

Command ( + context menu) Shortcut Description
Easy Tests: Go to tests ⌘+T Creates file xyz_test.dart for file xyz.dart in the /test folder. Will automatically create the necessary folder tree under /test to match the location of xyz.dart under /lib.
If xyz_test.dart already exists, editor will show it.
Easy Tests: Go to source file ⌘+T Opens the xyz.dart file if you are inside a xyz_test.dart file.
Easy Tests: Run tests for file ⌥+⌘+T Executes all tests inside of a xyz_test.dart. Works also if you are currently inside of xyz.dart

Snippets

Snippet Prefix Description
ftest Creates test('<test-name>', () {<test-code>})
fgroup Creates group('<group-name>', () {<multiple-tests>})

Extension Settings

This extension contributes the following settings:

easy-tests.codePath: Dart code files path within workspace root

easy-tests.testsPath: Test files path within workspace root

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft