Skip to content

monterail/vs-code-flutter-tests

Repository files navigation

Flutter Tests Assistant mascot Flutter Tests Assistant

MIT license PRs Welcome Monterail's logo

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

Visual Studio code extension demo

Features

  • Create a matching {xyz}_test.dart file with customized boilerplate test inside
  • Switch between the implementation and test files with a shortcut
  • Run tests for the code you're refactoring without leaving the source file
  • Use handy test snippets
  • Keep lib and test directories in sync after renaming or moving the file in either

Commands

Command Shortcut Description
Go to tests Ctrl+Shift+T
+Shift+T
Switch to the matching test file. The extension will create the test file, if necessary, after asking for the use-case.
Go to source file Ctrl+Shift+T
+Shift+T
Switch to the source file.
Run tests for file Ctrl+Alt+Shift+R
++Shift+R
Executes all tests for the matching source file.
Generate test coverage None Executes all tests to gather test coverage information.
Toggle test coverage highlights Ctrl+Alt+Shift+C
++Shift+C
Shows/Hides text editor line decorations indicating test coverage.

Snippets

Snippet prefix Result
ftest Unit test
fwidgettest Widget test
fgroup Group of tests

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •