Skip to content

grahamsmith/dart-test

Repository files navigation

dart-test

Build Version Downloads

Description

This plugin addresses missing functionality when working with Dart/Flutter, specifically the pain of creating tests in a package structure that reflects the implementation code.

Features:

  • alt+enter on a class name to generate a test inside the tests folder following the same relative path.
  • Right click on a dart file to create a test file, via the new file menu, in the test folder in the same relative location.
  • Right click inside the test folder to create a test in that location.
  • All tests come with the test package as imported and the bare bones to create a test.

Create a Dart Test file from the "New Item" menu, give it a name and watch it magically create the test in the right folder .

Create a Dart Test file from source or test folders

All tests are generated ready to go with the basic elements filled in. Groups and Widget tests coming soon!

Create a Dart Test file from source or test folders

Contributors

Future work

  • Create other types of test e.g. widget and test groups.
  • Allow the path to unit, widget and integration tests to be configurable.

Installation

  • Using IDE built-in plugin system:

    Settings/Preferences > Plugins > Marketplace > Search for "dart-test" > Install Plugin

  • Manually:

    Download the latest release and install it manually using Settings/Preferences > Plugins > ⚙️ > Install plugin from disk...


Plugin based on the IntelliJ Platform Plugin Template.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages