-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Get more of the tests to pass on Windows
- Loading branch information
Showing
11 changed files
with
105 additions
and
48 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,37 @@ | ||
Before: | ||
Save $PATH | ||
Save $PATHEXT | ||
|
||
" Count the gradle executable without .exe as executable on Windows | ||
let $PATHEXT = '.' | ||
|
||
call ale#test#SetDirectory('/testplugin/test') | ||
runtime ale_linters/kotlin/kotlinc.vim | ||
let g:ale_gradle_path = $PATH | ||
|
||
After: | ||
Restore | ||
|
||
call ale#test#RestoreDirectory() | ||
call ale#linter#Reset() | ||
let $PATH = g:ale_gradle_path | ||
|
||
|
||
Execute(Should return 'gradlew' if found in parent directory): | ||
call ale#test#SetFilename('gradle-test-files/wrapped-project/src/main/kotlin/dummy.kt') | ||
|
||
AssertEqual | ||
\ g:dir . '/gradle-test-files/wrapped-project/gradlew', | ||
\ ale#path#Winify(g:dir . '/gradle-test-files/wrapped-project/gradlew'), | ||
\ ale#gradle#FindExecutable(bufnr('')) | ||
|
||
Execute(Should return 'gradle' if 'gradlew' not found in parent directory): | ||
call ale#test#SetFilename('gradle-test-files/unwrapped-project/src/main/kotlin/dummy.kt') | ||
let $PATH .= ':' . g:dir . '/gradle-test-files' | ||
let $PATH .= (has('win32') ? ';': ':') . ale#path#Winify(g:dir . '/gradle-test-files') | ||
|
||
AssertEqual | ||
\ 'gradle', | ||
\ 'gradle', | ||
\ ale#gradle#FindExecutable(bufnr('')) | ||
|
||
Execute(Should return empty string if 'gradlew' not in parent directory and gradle not in path): | ||
call ale#test#SetFilename('gradle-test-files/unwrapped-project/src/main/kotlin/dummy.kt') | ||
|
||
AssertEqual | ||
\ '', | ||
\ '', | ||
\ ale#gradle#FindExecutable(bufnr('')) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters