2018-10-25 14:30:49 +00:00
|
|
|
Before:
|
|
|
|
call ale#assert#SetUpLinterTest('haskell', 'stack_build')
|
|
|
|
|
|
|
|
After:
|
|
|
|
call ale#assert#TearDownLinterTest()
|
|
|
|
|
|
|
|
Execute(The linter should not be executed when there's no stack.yaml file):
|
|
|
|
AssertLinterNotExecuted
|
|
|
|
|
|
|
|
Execute(The linter should be executed when there is a stack.yaml file):
|
2021-03-20 22:11:22 +00:00
|
|
|
call ale#test#SetFilename('../test-files/stack/test.hs')
|
2018-10-25 14:30:49 +00:00
|
|
|
|
|
|
|
AssertLinter 'stack', 'stack build --fast'
|