You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Set test options via cabal.project
This means we can set the default properly for people using the project,
and also set things more simply in the test workflow.
* Set options after testing hls-graph
* Revert "Set options after testing hls-graph"
This reverts commit 73fa801.
* Quote filters
* Use cabal configure instead
* Try better
# run the tests without parallelism to avoid running out of memory
124
-
run: cabal test ghcide --test-options="$TEST_OPTS" || cabal test ghcide --test-options="$TEST_OPTS"
120
+
run: cabal test ghcide || cabal test ghcide
125
121
126
122
- if: matrix.test
127
123
name: Test hls-plugin-api
128
-
run: cabal test hls-plugin-api --test-options="$TEST_OPTS" || cabal test hls-plugin-api --test-options="$TEST_OPTS"
124
+
run: cabal test hls-plugin-api || cabal test hls-plugin-api
129
125
130
126
- if: matrix.test
131
127
name: Test func-test suite
132
128
env:
133
129
HLS_TEST_EXE: hls
134
130
HLS_WRAPPER_TEST_EXE: hls-wrapper
135
-
run: cabal test func-test --test-options="$TEST_OPTS" || cabal test func-test --test-options="$TEST_OPTS"
131
+
run: cabal test func-test || cabal test func-test
136
132
137
133
- if: matrix.test
138
134
name: Test wrapper-test suite
139
135
env:
140
136
HLS_TEST_EXE: hls
141
137
HLS_WRAPPER_TEST_EXE: hls-wrapper
142
-
run: cabal test wrapper-test --test-options="$TEST_OPTS --rerun-log-file .tasty-rerun-log-wrapper"
138
+
run: cabal test wrapper-test
143
139
144
140
- if: matrix.test
145
141
name: Test hls-refactor-plugin
146
-
run: cabal test hls-refactor-plugin-tests --test-options="$TEST_OPTS" || cabal test hls-refactor-plugin-tests --test-options="$TEST_OPTS"
142
+
run: cabal test hls-refactor-plugin-tests || cabal test hls-refactor-plugin-tests
147
143
148
144
- if: matrix.test
149
145
name: Test hls-floskell-plugin
150
-
run: cabal test hls-floskell-plugin-tests --test-options="$TEST_OPTS" || cabal test hls-floskell-plugin-tests --test-options="$TEST_OPTS"
146
+
run: cabal test hls-floskell-plugin-tests || cabal test hls-floskell-plugin-tests
151
147
152
148
- if: matrix.test
153
149
name: Test hls-class-plugin
154
-
run: cabal test hls-class-plugin-tests --test-options="$TEST_OPTS" || cabal test hls-class-plugin-tests --test-options="$TEST_OPTS"
150
+
run: cabal test hls-class-plugin-tests || cabal test hls-class-plugin-tests
155
151
156
152
- if: matrix.test
157
153
name: Test hls-pragmas-plugin
158
-
run: cabal test hls-pragmas-plugin-tests --test-options="$TEST_OPTS" || cabal test hls-pragmas-plugin-tests --test-options="$TEST_OPTS"
154
+
run: cabal test hls-pragmas-plugin-tests || cabal test hls-pragmas-plugin-tests
159
155
160
156
- if: matrix.test
161
157
name: Test hls-eval-plugin
162
-
run: cabal test hls-eval-plugin-tests --test-options="$TEST_OPTS" || cabal test hls-eval-plugin-tests --test-options="$TEST_OPTS"
158
+
run: cabal test hls-eval-plugin-tests || cabal test hls-eval-plugin-tests
163
159
164
160
- if: matrix.test
165
161
name: Test hls-splice-plugin
166
-
run: cabal test hls-splice-plugin-tests --test-options="$TEST_OPTS" || cabal test hls-splice-plugin-tests --test-options="$TEST_OPTS"
162
+
run: cabal test hls-splice-plugin-tests || cabal test hls-splice-plugin-tests
167
163
168
164
- if: matrix.test && matrix.ghc != '9.2'
169
165
name: Test hls-stan-plugin
170
-
run: cabal test hls-stan-plugin-tests --test-options="$TEST_OPTS" || cabal test hls-stan-plugin-tests --test-options="$TEST_OPTS"
166
+
run: cabal test hls-stan-plugin-tests || cabal test hls-stan-plugin-tests
171
167
172
168
- if: matrix.test
173
169
name: Test hls-stylish-haskell-plugin
174
-
run: cabal test hls-stylish-haskell-plugin-tests --test-options="$TEST_OPTS" || cabal test hls-stylish-haskell-plugin-tests --test-options="$TEST_OPTS"
170
+
run: cabal test hls-stylish-haskell-plugin-tests || cabal test hls-stylish-haskell-plugin-tests
175
171
176
172
- if: matrix.test
177
173
name: Test hls-ormolu-plugin
178
-
run: cabal test hls-ormolu-plugin-tests --test-options="$TEST_OPTS" || cabal test hls-ormolu-plugin-tests --test-options="$TEST_OPTS"
174
+
run: cabal test hls-ormolu-plugin-tests || cabal test hls-ormolu-plugin-tests
179
175
180
176
- if: matrix.test
181
177
name: Test hls-fourmolu-plugin
182
-
run: cabal test hls-fourmolu-plugin-tests --test-options="$TEST_OPTS" || cabal test hls-fourmolu-plugin-tests --test-options="$TEST_OPTS"
178
+
run: cabal test hls-fourmolu-plugin-tests || cabal test hls-fourmolu-plugin-tests
183
179
184
180
- if: matrix.test
185
181
name: Test hls-explicit-imports-plugin test suite
186
-
run: cabal test hls-explicit-imports-plugin-tests --test-options="$TEST_OPTS" || cabal test hls-explicit-imports-plugin-tests --test-options="$TEST_OPTS"
182
+
run: cabal test hls-explicit-imports-plugin-tests || cabal test hls-explicit-imports-plugin-tests
187
183
188
184
- if: matrix.test
189
185
name: Test hls-call-hierarchy-plugin test suite
190
-
run: cabal test hls-call-hierarchy-plugin-tests --test-options="$TEST_OPTS" || cabal test hls-call-hierarchy-plugin-tests --test-options="$TEST_OPTS"
186
+
run: cabal test hls-call-hierarchy-plugin-tests || cabal test hls-call-hierarchy-plugin-tests
run: cabal test hls-rename-plugin-tests --test-options="$TEST_OPTS" || cabal test hls-rename-plugin-tests --test-options="$TEST_OPTS"
190
+
run: cabal test hls-rename-plugin-tests || cabal test hls-rename-plugin-tests
195
191
196
192
- if: matrix.test
197
193
name: Test hls-hlint-plugin test suite
198
-
run: cabal test hls-hlint-plugin-tests --test-options="$TEST_OPTS" || cabal test hls-hlint-plugin-tests --test-options="$TEST_OPTS"
194
+
run: cabal test hls-hlint-plugin-tests || cabal test hls-hlint-plugin-tests
199
195
200
196
- if: matrix.test
201
197
name: Test hls-module-name-plugin test suite
202
-
run: cabal test hls-module-name-plugin-tests --test-options="$TEST_OPTS" || cabal test hls-module-name-plugin-tests --test-options="$TEST_OPTS"
198
+
run: cabal test hls-module-name-plugin-tests || cabal test hls-module-name-plugin-tests
203
199
204
200
- if: matrix.test
205
201
name: Test hls-alternate-number-format-plugin test suite
206
-
run: cabal test hls-alternate-number-format-plugin-tests --test-options="$TEST_OPTS" || cabal test hls-alternate-number-format-plugin-tests --test-options="$TEST_OPTS"
202
+
run: cabal test hls-alternate-number-format-plugin-tests || cabal test hls-alternate-number-format-plugin-tests
207
203
208
204
- if: matrix.test
209
205
name: Test hls-qualify-imported-names-plugin test suite
210
-
run: cabal test hls-qualify-imported-names-plugin-tests --test-options="$TEST_OPTS" || cabal test hls-qualify-imported-names-plugin-tests --test-options="$TEST_OPTS"
206
+
run: cabal test hls-qualify-imported-names-plugin-tests || cabal test hls-qualify-imported-names-plugin-tests
211
207
212
208
- if: matrix.test
213
209
name: Test hls-code-range-plugin test suite
214
-
run: cabal test hls-code-range-plugin-tests --test-options="$TEST_OPTS" || cabal test hls-code-range-plugin-tests --test-options="$TEST_OPTS"
210
+
run: cabal test hls-code-range-plugin-tests || cabal test hls-code-range-plugin-tests
215
211
216
212
- if: matrix.test
217
213
name: Test hls-change-type-signature test suite
218
-
run: cabal test hls-change-type-signature-plugin-tests --test-options="$TEST_OPTS" || cabal test hls-change-type-signature-plugin-tests --test-options="$TEST_OPTS"
214
+
run: cabal test hls-change-type-signature-plugin-tests || cabal test hls-change-type-signature-plugin-tests
219
215
220
216
- if: matrix.test
221
217
name: Test hls-gadt-plugin test suit
222
-
run: cabal test hls-gadt-plugin-tests --test-options="$TEST_OPTS" || cabal test hls-gadt-plugin-tests --test-options="$TEST_OPTS"
218
+
run: cabal test hls-gadt-plugin-tests || cabal test hls-gadt-plugin-tests
223
219
224
220
- if: matrix.test
225
221
name: Test hls-explicit-fixity-plugin test suite
226
-
run: cabal test hls-explicit-fixity-plugin-tests --test-options="$TEST_OPTS" || cabal test hls-explicit-fixity-plugin-tests --test-options="$TEST_OPTS"
222
+
run: cabal test hls-explicit-fixity-plugin-tests || cabal test hls-explicit-fixity-plugin-tests
227
223
228
224
- if: matrix.test
229
225
name: Test hls-explicit-record-fields-plugin test suite
230
-
run: cabal test hls-explicit-record-fields-plugin-tests --test-options="$TEST_OPTS" || cabal test hls-explicit-record-fields-plugin-tests --test-options="$TEST_OPTS"
226
+
run: cabal test hls-explicit-record-fields-plugin-tests || cabal test hls-explicit-record-fields-plugin-tests
231
227
232
228
## version needs to be limited since the tests depend on cabal-fmt which only builds using specific ghc versions
233
229
- if: matrix.test && matrix.ghc == '9.2'
234
230
name: Test hls-cabal-fmt-plugin test suite
235
-
run: cabal test hls-cabal-fmt-plugin-tests --flag=isolateCabalfmtTests --test-options="$TEST_OPTS" || cabal test hls-cabal-fmt-plugin-tests --flag=isolateCabalfmtTests --test-options="$TEST_OPTS"
231
+
run: cabal test hls-cabal-fmt-plugin-tests --flag=isolateCabalfmtTests || cabal test hls-cabal-fmt-plugin-tests --flag=isolateCabalfmtTests
236
232
237
233
- if: matrix.test
238
234
name: Test hls-cabal-plugin test suite
239
-
run: cabal test hls-cabal-plugin-tests --test-options="$TEST_OPTS" || cabal test hls-cabal-plugin-tests --test-options="$TEST_OPTS"
235
+
run: cabal test hls-cabal-plugin-tests || cabal test hls-cabal-plugin-tests
240
236
241
237
- if: matrix.test
242
238
name: Test hls-retrie-plugin test suite
243
-
run: cabal test hls-retrie-plugin-tests --test-options="$TEST_OPTS" || cabal test hls-retrie-plugin-tests --test-options="$TEST_OPTS"
239
+
run: cabal test hls-retrie-plugin-tests || cabal test hls-retrie-plugin-tests
244
240
245
241
- if: matrix.test
246
242
name: Test hls-overloaded-record-dot-plugin test suite
247
-
run: cabal test hls-overloaded-record-dot-plugin-tests --test-options="$TEST_OPTS" || LSP_TEST_LOG_COLOR=0 LSP_TEST_LOG_MESSAGES=true LSP_TEST_LOG_STDERR=true cabal test hls-overloaded-record-dot-plugin-tests --test-options="$TEST_OPTS"
243
+
run: cabal test hls-overloaded-record-dot-plugin-tests || cabal test hls-overloaded-record-dot-plugin-tests
248
244
249
245
- if: matrix.test
250
246
name: Test hls-semantic-tokens-plugin test suite
251
-
run: cabal test hls-semantic-tokens-plugin-tests --test-options="$TEST_OPTS" || cabal test hls-semantic-tokens-plugin-tests --test-options="$TEST_OPTS"
247
+
run: cabal test hls-semantic-tokens-plugin-tests || cabal test hls-semantic-tokens-plugin-tests
0 commit comments