File tree Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -81,6 +81,14 @@ Running just the wrapper tests
81
81
$ cabal test wrapper-test
82
82
```
83
83
84
+ Running just the tests for a specific plugin
85
+
86
+ ``` bash
87
+ $ cabal test hls-< plugin-name> -plugin-tests
88
+ # E.g.
89
+ $ cabal test hls-refactor-plugin-tests
90
+ ```
91
+
84
92
Running a subset of tests
85
93
86
94
Tasty supports providing
@@ -92,11 +100,10 @@ $ cabal test func-test --test-option "-p hlint"
92
100
```
93
101
94
102
The above recompiles everything every time you use a different test option though.
95
-
96
- An alternative, which only recompiles when tests (or dependencies) change:
103
+ An alternative, which only recompiles when tests (or dependencies) change is to pass the ` TASTY_PATTERN ` environment variable:
97
104
98
105
``` bash
99
- $ cabal run haskell-language-server: func-test -- -p " hlint enables "
106
+ $ TASTY_PATTERN= ' hlint ' cabal test func-test
100
107
```
101
108
102
109
## Using HLS on HLS code
You can’t perform that action at this time.
0 commit comments