Skip to content

Commit

Permalink
Update CONTRIBUTING.md
Browse files Browse the repository at this point in the history
TBR, @pq
  • Loading branch information
devoncarew authored Jan 10, 2017
1 parent 1d3fc2b commit 9525eaa
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,15 +39,15 @@ Do the same for the intellij-plugins repo to get Dart plugin sources.
- Expand Defaults and verify that Flutter is present.
- Click [+] and verify that Flutter is present.

## Running plugin tests (TODO: this needs to be updated)
## Running plugin tests

In order to run unit tests you need to create a run configuration. The easiest way is to copy the
one named 'Dart tests' defined for the Dart plugin. It can be found in the intellij-community
repository under `.idea/runConfigurations/Dart_tests.xml` but it should already be in the run
configuration editor dialog. Name your copy 'Flutter tests' and modify the VM settings,
adding '-Dflutter.sdk=/path/to/flutter/sdk'.
The repository contains two pre-defined test run configurations. One is for 'unit' tests; that is
currently definied as tests that do not rely on the IntelliJ APIs. The other is for 'integration'
tests - tests that do use the IntelliJ APIs. In the future we would like for the unit tests to be
able to access IntelliJ APIs, and for the integration tests to be larger, long-running tests that
excercise app use cases.

Important! In order to be able to run a single test class or test method you need to do the following:
In order to be able to run a single test class or test method you need to do the following:

* Open Run | Edit Configurations, select 'Flutter tests' run configuration, copy its VM Options
to clipboard
Expand Down

0 comments on commit 9525eaa

Please sign in to comment.