@@ -236,11 +236,11 @@ be found in the
236236folder and unit tests, in the
237237[ src/test] ( https://github.com/commercialhaskell/stack/tree/master/src/test )
238238folder. Tests are written using the [ Hspec] ( https://hspec.github.io/ ) framework.
239- In order to run the full test suite, you can simply do :
239+ In order to run the full test suite, you can simply command :
240240
241- ``` bash
242- $ stack test
243- ```
241+ ~~~ text
242+ stack test
243+ ~~~
244244
245245The ` --file-watch ` is a very useful option to get quick feedback. However,
246246running the entire test suite after each file change will slow you down. You'll
@@ -250,59 +250,59 @@ description of this follows below.
250250
251251### Working with Unit Tests
252252
253- If you would like to run the unit tests on their own, you can:
253+ If you would like to run the unit tests on their own, you can command :
254254
255- ``` bash
256- $ stack test stack:stack-test
257- ```
255+ ~~~ text
256+ stack test stack:stack-test
257+ ~~~
258258
259- Running an individual module works like this:
259+ Running an individual module works with a command like this:
260260
261- ``` bash
262- $ stack test stack:stack-test --ta " -m <PATTERN>"
263- ```
261+ ~~~ text
262+ stack test stack:stack-test --ta "-m <PATTERN>"
263+ ~~~
264264
265265Where ` <PATTERN> ` is the name of the module without ` Spec.hs ` .
266266
267- You may also load tests into GHCi and run them with:
267+ You may also load tests into GHCi and run them with these command :
268268
269- ``` bash
270- $ stack ghci stack:stack-test --only-main
269+ ~~~ text
270+ stack ghci stack:stack-test --only-main
271271# GHCi starting up output ...
272272> :main -m "<PATTERN>"
273- ```
273+ ~~~
274274
275275Where again, ` <PATTERN> ` is the name of the module without ` Spec.hs ` .
276276
277277### Working with Integration Tests
278278
279- Running the integration tests is a little involved, you'll need to:
279+ Running the integration tests is a little involved, you'll need to command :
280280
281- ``` bash
282- $ stack build --flag stack:integration-tests stack --exec stack-integration-test
283- ```
281+ ~~~ text
282+ stack build --flag stack:integration-tests stack --exec stack-integration-test
283+ ~~~
284284
285- Running an individual module works like this:
285+ Running an individual module works with a command like this:
286286
287- ``` bash
288- $ stack build --flag stack:integration-tests stack --exec " stack-integration-test -m <PATTERN>"
289- ```
287+ ~~~ text
288+ stack build --flag stack:integration-tests stack --exec "stack-integration-test -m <PATTERN>"
289+ ~~~
290290
291291Where ` <PATTERN> ` is the name of the folder listed in the
292292[ test/integration/tests/] ( https://github.com/commercialhaskell/stack/tree/master/test/integration/tests )
293- folder .
293+ directory .
294294
295- You may also achieve this through GHCi with:
295+ You may also achieve this through GHCi with tihs command :
296296
297- ``` bash
298- $ stack ghci stack:stack-integration-test
297+ ~~~ text
298+ stack ghci stack:stack-integration-test
299299# GHCi starting up output ...
300300> :main -m "<PATTERN>"
301- ```
301+ ~~~
302302
303303Where again, ` <PATTERN> ` is the name of the folder listed in the
304304[ test/integration/tests/] ( https://github.com/commercialhaskell/stack/tree/master/test/integration/tests )
305- folder .
305+ directory .
306306
307307## Continuous integration (CI)
308308
0 commit comments