#4454 Clean up root test directory tests

Combine cases into smaller tests of tests and remove tests we no longer
need. Linter tests have been moved to where they should be.
This commit is contained in:
w0rp
2023-09-08 01:00:35 +01:00
parent e5816964d1
commit bf55175b69
30 changed files with 138 additions and 498 deletions

View File

@@ -0,0 +1,17 @@
Before:
call ale#assert#SetUpLinterTest('css', 'csslint')
After:
call ale#assert#TearDownLinterTest()
Execute(--config should be set when the .csslintrc file is found):
call ale#test#SetFilename('../test-files/csslint/some-app/subdir/testfile.js')
AssertLinter 'csslint', 'csslint --format=compact '
\ . '--config=' . ale#Escape(ale#path#Simplify(g:dir . '/../test-files/csslint/some-app/.csslintrc'))
\ . ' %t'
Execute(--config should not be used when no .csslintrc file exists):
call ale#test#SetFilename('../test-files/csslint/other-app/testfile.css')
AssertLinter 'csslint', 'csslint --format=compact %t'