mirror of
https://github.com/dense-analysis/ale.git
synced 2026-01-24 03:51:58 +08:00
#3633 - Put all dummy test files in test/test-files
This commit is contained in:
@@ -22,30 +22,30 @@ After:
|
||||
call ale#linter#Reset()
|
||||
|
||||
Execute(Should return 'gradlew' command if project includes gradle wapper):
|
||||
call ale#test#SetFilename('gradle-test-files/wrapped-project/src/main/kotlin/dummy.kt')
|
||||
call ale#test#SetFilename('test-files/gradle/wrapped-project/src/main/kotlin/dummy.kt')
|
||||
|
||||
AssertEqual
|
||||
\ [
|
||||
\ ale#path#Simplify(g:dir . '/gradle-test-files/wrapped-project'),
|
||||
\ ale#Escape(ale#path#Simplify(g:dir . '/gradle-test-files/wrapped-project/gradlew'))
|
||||
\ ale#path#Simplify(g:dir . '/test-files/gradle/wrapped-project'),
|
||||
\ ale#Escape(ale#path#Simplify(g:dir . '/test-files/gradle/wrapped-project/gradlew'))
|
||||
\ . g:command_tail,
|
||||
\ ],
|
||||
\ ale#gradle#BuildClasspathCommand(bufnr(''))
|
||||
|
||||
Execute(Should return 'gradle' command if project does not include gradle wapper):
|
||||
call ale#test#SetFilename('gradle-test-files/unwrapped-project/src/main/kotlin/dummy.kt')
|
||||
call ale#test#SetFilename('test-files/gradle/unwrapped-project/src/main/kotlin/dummy.kt')
|
||||
let $PATH .= (has('win32') ? ';' : ':')
|
||||
\ . ale#path#Simplify(g:dir . '/gradle-test-files')
|
||||
\ . ale#path#Simplify(g:dir . '/test-files/gradle')
|
||||
|
||||
AssertEqual
|
||||
\ [
|
||||
\ ale#path#Simplify(g:dir . '/gradle-test-files/unwrapped-project'),
|
||||
\ ale#path#Simplify(g:dir . '/test-files/gradle/unwrapped-project'),
|
||||
\ ale#Escape('gradle') . g:command_tail
|
||||
\ ],
|
||||
\ ale#gradle#BuildClasspathCommand(bufnr(''))
|
||||
|
||||
Execute(Should return empty string if gradle cannot be executed):
|
||||
call ale#test#SetFilename('gradle-test-files/non-gradle-project/src/main/kotlin/dummy.kt')
|
||||
call ale#test#SetFilename('test-files/gradle/non-gradle-project/src/main/kotlin/dummy.kt')
|
||||
|
||||
AssertEqual
|
||||
\ ['', ''],
|
||||
|
||||
Reference in New Issue
Block a user