From b1d833417bcb57e265e0d01df07b28f463529d4b Mon Sep 17 00:00:00 2001 From: w0rp Date: Sat, 20 Mar 2021 22:11:22 +0000 Subject: #3633 - Put all dummy test files in test/test-files --- test/ada_files/testfile.adb | 0 test/ant-test-files/ant-project/build.xml | 0 test/ant-test-files/bin/ant | 0 test/ant-test-files/bin/ant.exe | 0 .../alex-node-modules-2/node_modules/alex/cli.js | 0 .../alex-node-modules/node_modules/.bin/alex | 0 test/command_callback/bazel_paths/BUILD | 0 test/command_callback/bazel_paths/WORKSPACE | 0 test/command_callback/bazel_paths/defs.bzl | 0 test/command_callback/bib_paths/dummy.bib | 0 test/command_callback/c_paths/dummy.c | 0 test/command_callback/cargo_paths/Cargo.toml | 0 .../cargo_workspace_paths/Cargo.toml | 0 .../cargo_workspace_paths/subpath/Cargo.toml | 0 .../unusual_build_dir_name/compile_commands.json | 0 .../ccls_paths/with_ccls-root/.ccls-root | 0 test/command_callback/ccls_paths/with_ccls/.ccls | 0 .../compile_commands.json | 0 .../checkstyle_paths/other_config.xml | 0 .../unusual_build_dir_name/compile_commands.json | 0 .../with_compile_commands/compile_commands.json | 0 .../with_clangformat/.clang-format | 0 .../cppcheck_paths/one/compile_commands.json | 0 .../cppcheck_paths/one/two/three/file.c | 0 .../cppcheck_paths/one/two/three/file.cpp | 0 .../with_build_dir/build/compile_commands.json | 0 .../cquery_paths/build/compile_commands.json | 0 .../cquery_paths/with_cquery/.cquery | 0 test/command_callback/dart_paths/.packages | 0 .../elixir_paths/mix_project/lib/app.ex | 0 .../elixir_paths/mix_project/mix.exs | 3 - .../umbrella_project/apps/app1/lib/app.ex | 0 .../umbrella_project/apps/app1/mix.exs | 0 .../umbrella_project/apps/app2/lib/app.ex | 0 .../umbrella_project/apps/app2/mix.exs | 0 .../elixir_paths/umbrella_project/mix.exs | 0 test/command_callback/fecs_paths/fecs | 0 test/command_callback/fecs_paths/fecs.exe | 0 .../fortran-fortls-project/.fortls | 2 - test/command_callback/go_paths/go1/prj1/file.go | 0 test/command_callback/go_paths/go2/prj2/file.go | 0 test/command_callback/hdl_server/foo.vhd | 0 .../with_config_file/.hdl_checker.config | 0 .../with_config_file/_hdl_checker.config | 0 .../hdl_server/with_config_file/foo.vhd | 0 .../hdl_server/with_git/files/foo.vhd | 1 - .../html_beautify_paths/html-beautify | 0 .../command_callback/html_beautify_paths/test.html | 0 .../htmlhint_paths/node_modules/.bin/htmlhint | 0 .../htmlhint_paths/with_config/.htmlhintrc | 0 test/command_callback/ink_paths/story/main.ink | 0 test/command_callback/inko_paths/test.inko | 0 .../inko_paths/tests/test/test_foo.inko | 0 .../build/gen/main/java/com/something/dummy | 0 .../build/gen2/main/java/com/something/dummy | 0 .../java_paths/src/main/java/com/something/dummy | 0 .../java_paths/src/test/java/com/something/dummy | 0 .../src/test/java/com/something/dummy | 0 .../src/main/java/com/something/dummy | 0 .../src/main/jaxb/com/something/dummy | 0 .../julia-languageserver-project/REQUIRE | 0 .../julia-languageserver-project/test.jl | 0 .../lessc_paths/node_modules/.bin/lessc | 0 test/command_callback/ocamllsp_paths/dune-project | 0 test/command_callback/ols_paths/.merlin | 0 .../node_modules/.bin/ocaml-language-server | 0 .../with-composer/composer.json | 0 .../vendor/bin/php-language-server.php | 0 .../with-composer/composer.json | 0 .../vendor/bin/php-language-server.php | 0 .../with-git/vendor/bin/php-language-server.php | 0 .../php_paths/project-with-php-cs-fixer/test.php | 0 .../vendor/bin/php-cs-fixer | 0 .../php_paths/project-with-phpcbf/foo/test.php | 0 .../project-with-phpcbf/vendor/bin/phpcbf | 0 .../project-without-php-cs-fixer/test.php | 0 .../php_paths/project-without-phpcbf/foo/test.php | 0 .../psalm-project/vendor/bin/psalm | 0 .../puglint_project/node_modules/.bin/pug-lint | 0 test/command_callback/puglint_project/package.json | 0 .../puglint_project/puglint_rc_dir/.pug-lintrc | 0 .../puglint_rc_js_dir/.pug-lintrc.js | 0 .../puglint_rc_json_dir/.pug-lintrc.json | 0 test/command_callback/puppet_paths/dummy.pp | 0 .../purescript_paths/bower/Foo.purs | 0 .../purescript_paths/bower/bower.json | 0 .../purescript_paths/psc-package/Foo.purs | 0 .../purescript_paths/psc-package/psc-package.json | 0 .../purescript_paths/spago/Foo.purs | 0 .../purescript_paths/spago/spago.dhall | 0 .../namespace_package_manifest/MANIFEST.in | 3 - .../namespace/foo/__init__.py | 0 .../namespace/foo/bar.py | 0 .../namespace/foo/__init__.py | 0 .../namespace_package_pytest/namespace/foo/bar.py | 0 .../namespace_package_pytest/pytest.ini | 2 - .../namespace/foo/__init__.py | 0 .../namespace_package_setup/namespace/foo/bar.py | 0 .../python_paths/namespace_package_setup/setup.cfg | 2 - .../namespace/foo/__init__.py | 0 .../namespace_package_tox/namespace/foo/bar.py | 0 .../python_paths/namespace_package_tox/tox.ini | 3 - .../no_virtualenv/subdir/foo/COMMIT_EDITMSG | 0 .../no_virtualenv/subdir/foo/__init__.py | 0 .../python_paths/no_virtualenv/subdir/foo/bar.py | 0 .../python_paths/with_bandit/.bandit | 0 .../with_bandit/namespace/foo/__init__.py | 0 .../python_paths/with_bandit/namespace/foo/bar.py | 0 .../with_mypy_ini_and_pytest_ini/mypy.ini | 0 .../with_mypy_ini_and_pytest_ini/tests/pytest.ini | 0 .../tests/testsubfolder/my_tests.py | 0 .../dir_with_yapf_config/.style.yapf | 0 .../with_virtualenv/env/Scripts/activate | 0 .../with_virtualenv/env/Scripts/autoimport.exe | 0 .../with_virtualenv/env/Scripts/autopep8.exe | 0 .../with_virtualenv/env/Scripts/black.exe | 0 .../with_virtualenv/env/Scripts/flake8.exe | 0 .../with_virtualenv/env/Scripts/gitlint.exe | 0 .../with_virtualenv/env/Scripts/isort.exe | 0 .../with_virtualenv/env/Scripts/mypy.exe | 0 .../with_virtualenv/env/Scripts/pyflakes.exe | 0 .../with_virtualenv/env/Scripts/pylama.exe | 0 .../with_virtualenv/env/Scripts/pylint.exe | 0 .../with_virtualenv/env/Scripts/pyls.exe | 0 .../with_virtualenv/env/Scripts/pyre.exe | 0 .../env/Scripts/reorder-python-imports.exe | 0 .../with_virtualenv/env/Scripts/vulture.exe | 0 .../with_virtualenv/env/Scripts/yamlfix.exe | 0 .../with_virtualenv/env/Scripts/yapf.exe | 0 .../python_paths/with_virtualenv/env/bin/activate | 0 .../with_virtualenv/env/bin/autoimport | 0 .../python_paths/with_virtualenv/env/bin/autopep8 | 0 .../python_paths/with_virtualenv/env/bin/black | 0 .../python_paths/with_virtualenv/env/bin/flake8 | 0 .../python_paths/with_virtualenv/env/bin/gitlint | 0 .../python_paths/with_virtualenv/env/bin/isort | 0 .../python_paths/with_virtualenv/env/bin/mypy | 0 .../python_paths/with_virtualenv/env/bin/pyflakes | 0 .../python_paths/with_virtualenv/env/bin/pylama | 0 .../python_paths/with_virtualenv/env/bin/pylint | 0 .../python_paths/with_virtualenv/env/bin/pyls | 0 .../python_paths/with_virtualenv/env/bin/pyre | 0 .../with_virtualenv/env/bin/reorder-python-imports | 0 .../python_paths/with_virtualenv/env/bin/vulture | 0 .../python_paths/with_virtualenv/env/bin/yamlfix | 0 .../python_paths/with_virtualenv/env/bin/yapf | 0 .../with_virtualenv/subdir/foo/COMMIT_EDITMSG | 0 .../with_virtualenv/subdir/foo/__init__.py | 0 .../python_paths/with_virtualenv/subdir/foo/bar.py | 0 .../with_virtualenv/subdir/foo/bar.pyi | 0 test/command_callback/r_paths/.Rprofile | 0 .../command_callback/reason_ls_paths/bsconfig.json | 0 .../with_bin_path/node_modules/.bin/remark | 0 test/command_callback/ruby_paths/dummy.rb | 0 .../ruby_paths/with_config/.rubocop.yml | 0 .../ruby_paths/with_config/.standard.yml | 0 test/command_callback/rust-rls-project/Cargo.toml | 0 .../with-bin/node_modules/.bin/sass-lint | 0 .../node_modules/sass-lint/bin/sass-lint.js | 0 test/command_callback/scala_paths/dummy.scala | 0 .../spectral_paths/node_modules/.bin/spectral | 0 test/command_callback/spectral_paths/openapi.yaml | 0 test/command_callback/stack_build_paths/stack.yaml | 0 test/command_callback/stack_ghc_paths/stack.yaml | 0 .../with-bin/node_modules/.bin/standard | 0 .../with-cmd/node_modules/standard/bin/cmd.js | 0 .../stylelint_paths/node_modules/.bin/stylelint | 0 .../swaglint_paths/docs/swagger.yaml | 0 .../swaglint_paths/node_modules/.bin/swaglint | 0 test/command_callback/swift_paths/dummy.swift | 0 .../test_alex_command_callback.vader | 14 +-- .../test_angular_command_callback.vader | 18 +-- .../test_asciidoc_textlint_command_callbacks.vader | 16 +-- .../test_bandit_command_callback.vader | 8 +- .../test_bingo_command_callback.vader | 10 +- .../test_brakeman_command_callback.vader | 14 +-- .../test_c_ccls_command_callbacks.vader | 22 ++-- .../test_c_clangd_command_callbacks.vader | 8 +- .../test_c_cppcheck_command_callbacks.vader | 18 +-- .../test_c_cquery_command_callbacks.vader | 8 +- test/command_callback/test_c_import_paths.vader | 44 ++++---- .../test_cargo_command_callbacks.vader | 10 +- .../test_checkstyle_command_callback.vader | 14 +-- .../test_cpp_ccls_command_callbacks.vader | 22 ++-- .../test_cpp_cppcheck_command_callbacks.vader | 18 +-- .../test_cpp_cquery_command_callbacks.vader | 8 +- .../test_cucumber_command_callback.vader | 4 +- .../test_dartanalyzer_command_callback.vader | 4 +- .../test_dialyxir_command_callback.vader | 8 +- .../test_dogma_command_callback.vader | 8 +- .../test_elixir_credo_command_callback.vader | 8 +- .../test_elixir_ls_command_callbacks.vader | 4 +- .../test_elixir_mix_command_callbacks.vader | 8 +- .../test_elm_ls_command_callbacks.vader | 8 +- .../test_elm_make_command_callback.vader | 34 +++--- .../test_erb_command_callback.vader | 4 +- .../test_erubi_command_callback.vader | 4 +- .../test_erubis_command_callback.vader | 4 +- .../test_eslint_command_callback.vader | 38 +++---- .../test_flake8_command_callback.vader | 32 +++--- .../test_flow_command_callback.vader | 42 +++++++ .../test_fortran_fortls_callback.vader | 4 +- .../test_gitlint_command_callback.vader | 8 +- .../test_gofmt_command_callback.vader | 2 +- .../test_golangserver_command_callback.vader | 16 +-- .../test_gopls_command_callback.vader | 8 +- .../test_gosimple_command_callback.vader | 2 +- .../test_gotype_command_callback.vader | 2 +- .../test_haml_hamllint_command_callback.vader | 14 +-- ...test_haskell_stack_build_command_callback.vader | 2 +- .../test_haskell_stack_ghc_command_callback.vader | 2 +- .../test_html_stylelint_command_callback.vader | 6 +- .../test_htmlhint_command_callback.vader | 10 +- .../test_ink_ls_command_callbacks.vader | 4 +- .../test_inko_inko_callbacks.vader | 6 +- .../test_javac_command_callback.vader | 68 ++++++------ ...test_javascript_tsserver_command_callback.vader | 8 +- .../test_julia_languageserver_callbacks.vader | 4 +- ...st_kotlin_languageserver_command_callback.vader | 15 +++ .../test_less_stylelint_command_callback.vader | 6 +- .../test_lessc_command_callback.vader | 10 +- .../test_mypy_command_callback.vader | 20 ++-- .../test_objc_ccls_command_callbacks.vader | 22 ++-- .../test_ocaml_ocamllsp_callbacks.vader | 8 +- .../test_ocaml_ols_callbacks.vader | 12 +- .../test_php_intelephense_command_callback.vader | 14 +-- .../test_php_langserver_callbacks.vader | 16 +-- .../test_phpcs_command_callback.vader | 8 +- .../test_prospector_command_callback.vader | 2 +- .../test_psalm_command_callbacks.vader | 28 +---- .../test_puglint_command_callback.vader | 36 +++--- .../test_purescript_ls_command_callbacks.vader | 12 +- .../test_pycodestyle_command_callback.vader | 2 +- .../test_pydocstyle_command_callback.vader | 2 +- .../test_pyflakes_command_callback.vader | 8 +- .../test_pylama_command_callback.vader | 20 ++-- .../test_pylint_command_callback.vader | 16 +-- .../test_pyls_command_callback.vader | 8 +- .../test_pyre_command_callback.vader | 8 +- .../test_pyright_command_callback.vader | 20 ++-- .../test_r_languageserver_callbacks.vader | 4 +- ...est_rails_best_practices_command_callback.vader | 6 +- .../test_reason_ls_command_callback.vader | 4 +- .../test_reason_ols_callbacks.vader | 12 +- .../test_remark_lint_command_callbacks.vader | 8 +- .../test_rnix_command_callback.vader | 12 ++ .../test_rst_textlint_command_callbacks.vader | 16 +-- test/command_callback/test_ruby_solargraph.vader | 16 +-- .../test_rust_analyzer_callbacks.vader | 4 +- .../command_callback/test_rust_rls_callbacks.vader | 4 +- .../test_rustc_command_callback.vader | 6 +- .../test_sass_sasslint_command_callback.vader | 8 +- test/command_callback/test_scala_metals.vader | 6 +- test/command_callback/test_scala_sbtserver.vader | 6 +- .../test_scss_sasslint_command_callback.vader | 8 +- .../test_scss_stylelint_command_callback.vader | 6 +- .../test_slimlint_command_callback.vader | 4 +- .../test_spectral_command_callback.vader | 6 +- .../test_standard_command_callback.vader | 8 +- .../test_standardts_command_callback.vader | 8 +- .../test_sugarss_stylelint_command_callback.vader | 6 +- .../test_swaglint_command_callback.vader | 6 +- ...test_swift_sourcekitlsp_command_callbacks.vader | 4 +- .../test_swift_swiftformat_command_callbacks.vader | 6 +- .../test_swiftlint_command_callback.vader | 43 ++++++++ .../test_terraform_ls_command_callback.vader | 2 +- .../test_terraform_lsp_command_callback.vader | 2 +- .../test_terraform_tflint_command_callback.vader | 4 +- .../test_tex_textlint_command_callbacks.vader | 16 +-- .../test_texlab_command_callbacks.vader | 6 +- .../test_textlint_command_callbacks.vader | 16 +-- .../test_typescript_deno_lsp.vader | 33 ++---- test/command_callback/test_vim_vimls.vader | 26 ++--- .../test_vulture_command_callback.vader | 12 +- .../test_write_good_command_callback.vader | 14 +-- test/command_callback/test_zig_zls_callbacks.vader | 4 +- test/command_callback/tex_paths/sample1.tex | 0 test/command_callback/tex_paths/sample2.tex | 0 .../with_bin_path/node_modules/.bin/textlint | 0 .../node_modules/textlint/bin/textlint.js | 0 test/command_callback/tidy_paths/.tidyrc | 0 test/command_callback/tidy_paths/test.html | 0 test/command_callback/tidy_paths/tidy | 0 test/command_callback/tidy_paths/tidy.exe | 0 test/command_callback/tsserver_paths/src/file1.ts | 0 .../tsserver_paths/src/level-1/file2.ts | 0 .../tsserver_paths/src/level-1/level-2/file3.ts | 0 .../tsserver_paths/src/level-1/tsconfig.json | 0 test/command_callback/tsserver_paths/tsconfig.json | 0 .../vim_fixtures/invalid_vim_project/test.vim | 0 .../node_modules/.bin/vim-language-server | 0 .../path_with_autoload/autoload/test.vim | 0 .../vim_fixtures/path_with_autoload/test.vim | 0 .../vim_fixtures/path_with_initvim/init.vim | 0 .../vim_fixtures/path_with_plugin/plugin/test.vim | 0 .../vim_fixtures/path_with_plugin/test.vim | 0 .../vim_fixtures/path_with_vimrc/.vimrc | 0 .../node_modules/write-good/bin/write-good.js | 0 .../node_modules/.bin/write-good | 0 test/command_callback/zig-zls-project/build.zig | 0 test/compile_database_perf/test.sh | 29 ----- test/csslint-test-files/other-app/testfile.css | 0 test/csslint-test-files/some-app/.csslintrc | 0 .../some-app/subdir/testfile.css | 0 test/cucumber_fixtures/features/cuke.feature | 0 .../features/step_definitions/base_steps.rb | 0 test/d_files/test.d | 0 test/dart_files/testfile.dart | 0 test/dumb_named_pipe_server.py | 42 ------- test/dumb_tcp_client.py | 33 ------ test/dumb_tcp_server.py | 40 ------- test/elixir-test-files/testfile.ex | 0 test/elm-test-files/newapp-notests/elm.json | 0 .../newapp-notests/node_modules/.bin/elm | 0 .../newapp-notests/tests/TestMain.elm | 0 test/elm-test-files/newapp/elm.json | 0 test/elm-test-files/newapp/node_modules/.bin/elm | 0 .../newapp/node_modules/.bin/elm-test | 0 test/elm-test-files/newapp/src/Main.elm | 0 test/elm-test-files/newapp/tests/TestSuite.elm | 0 test/elm-test-files/node_modules/.bin/elm-format | 0 test/elm-test-files/oldapp/elm-package.json | 0 test/elm-test-files/oldapp/node_modules/.bin/elm | 0 .../oldapp/node_modules/.bin/elm-test | 0 test/elm-test-files/oldapp/src/Main.elm | 0 test/elm-test-files/oldapp/tests/TestSuite.elm | 0 test/elm-test-files/src/subdir/testfile.elm | 0 .../app/template.hbs | 0 test/ember-template-lint-test-files/package.json | 0 .../app-with-eslint-d/node_modules/.bin/eslint_d | 0 test/eslint-test-files/node_modules/.bin/eslint | 0 .../eslint-test-files/other-app/subdir/testfile.js | 0 test/eslint-test-files/package.json | 0 test/eslint-test-files/react-app/.eslintrc.js | 0 .../react-app/node_modules/eslint/bin/eslint.js | 0 .../react-app/node_modules/standard/bin/cmd.js | 0 .../node_modules/stylelint/bin/stylelint.js | 0 .../react-app/node_modules/xo/cli.js | 0 .../react-app/subdir-with-config/.eslintrc | 0 .../subdir-with-package-json/node_modules/.gitkeep | 0 .../subdir-with-package-json/package.json | 0 .../react-app/subdir/testfile.css | 0 .../eslint-test-files/react-app/subdir/testfile.js | 0 .../eslint-test-files/react-app/subdir/testfile.ts | 0 test/fish_files/testfile.fish | 0 .../app-with-eslint-d/node_modules/.bin/eslint_d | 0 .../eslint-test-files/node_modules/.bin/eslint | 0 .../eslint-test-files/other-app/subdir/testfile.js | 0 .../eslint-test-files/react-app/.eslintrc.js | 0 .../react-app/node_modules/eslint/bin/eslint.js | 0 .../react-app/node_modules/standard/bin/cmd.js | 0 .../node_modules/stylelint/bin/stylelint.js | 0 .../react-app/subdir/testfile.css | 0 .../eslint-test-files/react-app/subdir/testfile.js | 0 test/fixers/long-line-project/setup.cfg | 2 - test/fixers/test_astyle_fixer_callback.vader | 4 +- test/fixers/test_autoimport_fixer_callback.vader | 8 +- test/fixers/test_autopep8_fixer_callback.vader | 8 +- test/fixers/test_bibclean_fixer_callback.vader | 4 +- test/fixers/test_black_fixer_callback.vader | 14 +-- .../test_break_up_long_lines_python_fixer.vader | 2 +- test/fixers/test_buildifier_fixer_callback.vader | 8 +- test/fixers/test_clangformat_fixer_callback.vader | 8 +- test/fixers/test_clangtidy_fixer_callback.vader | 4 +- test/fixers/test_dartfmt_fixer_callback.vader | 4 +- test/fixers/test_dfmt_fixer_callback.vader | 4 +- test/fixers/test_elm_format_fixer_callback.vader | 16 +-- test/fixers/test_eslint_fixer_callback.vader | 76 ++++++------- test/fixers/test_fecs_fixer_callback.vader | 2 +- test/fixers/test_fish_indent_fixer_callback.vader | 4 +- test/fixers/test_fixjson_fixer_callback.vader | 2 +- test/fixers/test_gnatpp_fixer_callback.vader | 4 +- test/fixers/test_gofmt_fixer_callback.vader | 6 +- test/fixers/test_goimports_fixer_callback.vader | 2 +- test/fixers/test_gomod_fixer_callback.vader | 4 +- test/fixers/test_importjs_fixer_callback.vader | 2 +- test/fixers/test_isort_fixer_callback.vader | 10 +- test/fixers/test_ktlint_fixer_callback.vader | 4 +- test/fixers/test_latexindent_fixer_callback.vader | 4 +- test/fixers/test_luafmt_fixer_callback.vader | 4 +- test/fixers/test_mix_format_fixer_callback.vader | 4 +- test/fixers/test_ocamlformat_fixer_callback.vader | 4 +- test/fixers/test_ocp_indent_fixer_callback.vader | 4 +- test/fixers/test_php_cs_fixer.vader | 12 +- test/fixers/test_phpcbf_fixer_callback.vader | 36 +++--- .../test_prettier_eslint_fixer.callback.vader | 10 +- test/fixers/test_prettier_fixer_callback.vader | 46 ++++---- test/fixers/test_prettier_standard_callback.vader | 2 +- test/fixers/test_puppetlint_fixer_callback.vader | 2 +- test/fixers/test_refmt_fixer_callback.vader | 4 +- ...est_reorder_python_imports_fixer_callback.vader | 8 +- test/fixers/test_rubocop_fixer_callback.vader | 14 +-- test/fixers/test_rufo_fixer_callback.vader | 4 +- test/fixers/test_rustfmt_fixer_callback.vader | 30 +---- test/fixers/test_scalafmt_fixer_callback.vader | 8 +- test/fixers/test_sorbet_fixer_callback.vader | 4 +- test/fixers/test_standard_fixer_callback.vader | 4 +- test/fixers/test_standardrb_fixer_callback.vader | 10 +- test/fixers/test_stylelint_fixer_callback.vader | 8 +- test/fixers/test_swiftformat_fixer_callback.vader | 4 +- test/fixers/test_textlint_fixer_callback.vader | 4 +- test/fixers/test_tidy_fixer_callback.vader | 4 +- test/fixers/test_tslint_fixer_callback.vader | 4 +- test/fixers/test_uncrustify_fixer_callback.vader | 4 +- test/fixers/test_xo_fixer_callback.vader | 12 +- test/fixers/test_xots_fixer_callback.vader | 12 +- test/fixers/test_yamlfix_fixer_callback.vader | 8 +- test/fixers/test_yapf_fixer_callback.vader | 10 +- test/flow/a/.flowconfig | 0 test/flow/a/sub/dummy | 0 test/flow/b/sub/dummy | 0 test/go_files/go.mod | 1 - test/go_files/testfile.go | 0 test/go_files/testfile2.go | 0 .../build-gradle-project/build.gradle | 0 .../build-gradle-project/src/main/kotlin/dummy.kt | 0 test/gradle-test-files/gradle | 0 .../non-gradle-project/src/main/kotlin/dummy.kt | 0 .../settings-gradle-project/settings.gradle | 0 .../src/main/kotlin/dummy.kt | 0 .../unwrapped-project/build.gradle | 0 .../unwrapped-project/settings.gradle | 0 .../unwrapped-project/src/main/kotlin/dummy.kt | 0 .../gradle-test-files/wrapped-project/build.gradle | 0 test/gradle-test-files/wrapped-project/gradlew | 0 .../wrapped-project/settings.gradle | 0 .../wrapped-project/src/main/kotlin/dummy.kt | 0 .../haml-lint-and-rubocop/.haml-lint.yml | 0 .../haml-lint-and-rubocop/.rubocop.yml | 0 .../haml-lint-and-rubocop/subdir/file.haml | 0 .../haml-lint-yml/.haml-lint.yml | 0 .../haml-lint-yml/subdir/file.haml | 0 test/hamllint-test-files/rubocop-yml/.rubocop.yml | 0 .../rubocop-yml/subdir/file.haml | 0 test/handler/test_brakeman_handler.vader | 2 +- test/handler/test_lacheck_handler.vader | 2 +- .../test_rails_best_practices_handler.vader | 2 +- test/handler/test_terraform_handler.vader | 2 +- test/javascript_files/test.js | 0 test/json_files/testfile.json | 1 - .../app-without-jsonlint/src/app.json | 0 .../app/node_modules/.bin/jsonlint | 0 test/jsonlint-test-files/app/src/app.json | 0 .../node_modules/jsonlint/lib/cli.js | 0 test/kotlin_files/testfile.kt | 0 test/lua_files/testfile.lua | 0 test/markdown_files/testfile.md | 0 .../maven-java-project/module1/mvnw | 0 .../maven-java-project/module1/mvnw.cmd | 0 .../maven-java-project/module1/pom.xml | 1 - .../module1/src/main/java/dummy1.java | 0 .../maven-java-project/module2/pom.xml | 1 - .../module2/src/main/java/dummy2.java | 0 test/maven-test-files/maven-kotlin-project/pom.xml | 1 - .../maven-kotlin-project/src/main/kotlin/dummy.kt | 1 - test/maven-test-files/mvn | 0 .../non-maven-project/src/main/java/dummy.java | 0 test/nim-test-files/with-git/src/source.nim | 0 test/nix/test.nix | 0 test/nix/test_rnix_lsp.vader | 14 --- test/ocaml-test-files/testfile.ml | 0 .../project-with-phpcs/foo/test.php | 0 .../project-with-phpcs/vendor/bin/phpcs | 0 .../project-without-phpcs/foo/test.php | 0 test/prettier-test-files/testfile | 0 test/prettier-test-files/testfile.css | 0 test/prettier-test-files/testfile.js | 0 test/prettier-test-files/testfile.json | 0 test/prettier-test-files/testfile.scss | 0 test/prettier-test-files/testfile.ts | 0 test/prettier-test-files/with_config/.prettierrc | 0 test/prettier-test-files/with_config/testfile.js | 0 .../with_prettierignore/.prettierignore | 0 .../with_prettierignore/src/testfile.js | 0 .../lib/puppet/types/exampletype.rb | 0 .../new-style-module/metadata.json | 0 .../new-style-module/template/template.epp | 0 .../old-style-module/manifests/init.pp | 0 .../old-style-module/templates/template.epp | 0 .../python-package-project/.flake8 | 0 .../python-package-project/package-name/module.py | 0 test/python_fixtures/pipenv/Pipfile.lock | 0 test/reasonml_files/testfile.re | 0 test/ruby_fixtures/not_a_rails_app/file.rb | 0 test/ruby_fixtures/valid_rails_app/app/dummy.rb | 0 .../valid_rails_app/app/models/thing.rb | 0 .../app/views/my_great_view.html.erb | 0 test/ruby_fixtures/valid_rails_app/config/dummy.rb | 0 test/ruby_fixtures/valid_rails_app/db/dummy.rb | 0 test/ruby_fixtures/valid_ruby_app1/Rakefile | 0 test/ruby_fixtures/valid_ruby_app1/lib/file.rb | 0 test/ruby_fixtures/valid_ruby_app2/Gemfile | 0 test/ruby_fixtures/valid_ruby_app2/lib/file.rb | 0 test/ruby_fixtures/valid_ruby_app3/.solargraph.yml | 0 test/ruby_fixtures/valid_ruby_app3/lib/file.rb | 0 test/rust_files/testfile.rs | 0 test/scala_fixtures/invalid_sbt_project/Main.scala | 0 test/scala_fixtures/valid_sbt_project/Main.scala | 0 test/scala_fixtures/valid_sbt_project/build.sbt | 0 test/script/dumb_named_pipe_server.py | 42 +++++++ test/script/dumb_tcp_client.py | 33 ++++++ test/script/dumb_tcp_server.py | 40 +++++++ test/slimlint-test-files/.rubocop.yml | 0 test/slimlint-test-files/subdir/file.slim | 0 test/smlnj/cm/foo.sml | 0 test/smlnj/cm/path/to/bar.sml | 0 test/smlnj/cm/sources.cm | 0 test/smlnj/file/qux.sml | 0 .../src/folder/dummy.swift | 0 .../swift-package-project/Package.swift | 0 .../swift-package-project/src/folder/dummy.swift | 0 .../Pods/SwiftLint/swiftlint | 0 .../ios/Pods/SwiftLint/swiftlint | 0 .../cocoapods/Pods/SwiftLint/swiftlint | 0 .../react-native/ios/Pods/SwiftLint/swiftlint | 0 test/terraform_files/main.tf | 0 test/test-files/.gitignore | 2 + test/test-files/ada/testfile.adb | 0 .../alex/node-modules-2/node_modules/alex/cli.js | 0 .../alex/node-modules/node_modules/.bin/alex | 0 .../@angular/language-server/bin/ngserver | 0 .../node_modules/@angular/language-service/dummy | 0 test/test-files/ant/ant-project/build.xml | 0 test/test-files/ant/bin/ant | 0 test/test-files/ant/bin/ant.exe | 0 test/test-files/bazel/BUILD | 0 test/test-files/bazel/WORKSPACE | 0 test/test-files/bazel/defs.bzl | 0 test/test-files/bib/dummy.bib | 0 .../build/bad_folder_to_test_priority | 0 .../build/compile_commands.json | 0 test/test-files/c/configure_project/Makefile | 0 test/test-files/c/configure_project/configure | 0 test/test-files/c/configure_project/include/test.h | 0 .../test-files/c/configure_project/subdir/Makefile | 0 test/test-files/c/dummy.c | 0 .../c/git_and_nested_makefiles/include/test.h | 0 .../c/git_and_nested_makefiles/src/Makefile | 0 test/test-files/c/gnumakefile_project/GNUmakefile | 0 test/test-files/c/gnumakefile_project/file.c | 0 test/test-files/c/h_file_project/Makefile | 0 test/test-files/c/h_file_project/subdir/dummy | 0 test/test-files/c/h_file_project/test.h | 0 test/test-files/c/hpp_file_project/Makefile | 0 test/test-files/c/hpp_file_project/subdir/dummy | 0 test/test-files/c/hpp_file_project/test.hpp | 0 .../c/json_project/build/compile_commands.json | 0 test/test-files/c/json_project/include/test.h | 0 test/test-files/c/json_project/subdir/dummy | 0 test/test-files/c/makefile_project/Makefile | 0 test/test-files/c/makefile_project/_astylerc | 0 test/test-files/c/makefile_project/args | 3 + test/test-files/c/makefile_project/include/test.h | 0 test/test-files/c/makefile_project/subdir/args | 1 + test/test-files/c/makefile_project/subdir/dummy | 0 test/test-files/c/makefile_project/subdir/file.c | 0 test/test-files/cargo/Cargo.toml | 0 test/test-files/cargo/workspace_paths/Cargo.toml | 0 .../cargo/workspace_paths/subpath/Cargo.toml | 0 .../unusual_build_dir_name/compile_commands.json | 0 test/test-files/ccls/with_ccls-root/.ccls-root | 0 test/test-files/ccls/with_ccls/.ccls | 0 .../compile_commands.json | 0 test/test-files/checkstyle/other_config.xml | 0 .../unusual_build_dir_name/compile_commands.json | 0 .../with_compile_commands/compile_commands.json | 0 .../clangformat/with_clangformat/.clang-format | 0 test/test-files/cpp/.astylerc | 0 test/test-files/cpp/dummy.cpp | 0 test/test-files/cppcheck/one/compile_commands.json | 0 test/test-files/cppcheck/one/two/three/file.c | 0 test/test-files/cppcheck/one/two/three/file.cpp | 0 .../with_build_dir/build/compile_commands.json | 0 test/test-files/cquery/build/compile_commands.json | 0 test/test-files/cquery/with_cquery/.cquery | 0 test/test-files/csslint/other-app/testfile.css | 0 test/test-files/csslint/some-app/.csslintrc | 0 .../csslint/some-app/subdir/testfile.css | 0 test/test-files/cucumber/features/cuke.feature | 0 .../features/step_definitions/base_steps.rb | 0 test/test-files/d/test.d | 0 test/test-files/dart/.packages | 0 test/test-files/dart/testfile.dart | 0 test/test-files/elixir/mix_project/lib/app.ex | 0 test/test-files/elixir/mix_project/mix.exs | 3 + test/test-files/elixir/testfile.ex | 0 .../elixir/umbrella_project/apps/app1/lib/app.ex | 0 .../elixir/umbrella_project/apps/app1/mix.exs | 0 .../elixir/umbrella_project/apps/app2/lib/app.ex | 0 .../elixir/umbrella_project/apps/app2/mix.exs | 0 test/test-files/elixir/umbrella_project/mix.exs | 0 test/test-files/elm/newapp-notests/elm.json | 0 .../elm/newapp-notests/node_modules/.bin/elm | 0 .../elm/newapp-notests/tests/TestMain.elm | 0 test/test-files/elm/newapp/elm.json | 0 test/test-files/elm/newapp/node_modules/.bin/elm | 0 .../elm/newapp/node_modules/.bin/elm-test | 0 test/test-files/elm/newapp/src/Main.elm | 0 test/test-files/elm/newapp/tests/TestSuite.elm | 0 test/test-files/elm/node_modules/.bin/elm-format | 0 test/test-files/elm/oldapp/elm-package.json | 0 test/test-files/elm/oldapp/node_modules/.bin/elm | 0 .../elm/oldapp/node_modules/.bin/elm-test | 0 test/test-files/elm/oldapp/src/Main.elm | 0 test/test-files/elm/oldapp/tests/TestSuite.elm | 0 test/test-files/elm/src/subdir/testfile.elm | 0 .../app-with-eslint-d/node_modules/.bin/eslint_d | 0 test/test-files/eslint/node_modules/.bin/eslint | 0 .../test-files/eslint/other-app/subdir/testfile.js | 0 test/test-files/eslint/package.json | 0 test/test-files/eslint/react-app/.eslintrc.js | 0 .../react-app/node_modules/eslint/bin/eslint.js | 0 .../react-app/node_modules/standard/bin/cmd.js | 0 .../node_modules/stylelint/bin/stylelint.js | 0 .../eslint/react-app/node_modules/xo/cli.js | 0 .../eslint/react-app/subdir-with-config/.eslintrc | 0 .../subdir-with-package-json/node_modules/.gitkeep | 0 .../subdir-with-package-json/package.json | 0 .../eslint/react-app/subdir/testfile.css | 0 .../test-files/eslint/react-app/subdir/testfile.js | 0 .../test-files/eslint/react-app/subdir/testfile.ts | 0 test/test-files/fecs/fecs | 0 test/test-files/fecs/fecs.exe | 0 test/test-files/fish/testfile.fish | 0 test/test-files/flow/a/.flowconfig | 0 test/test-files/flow/a/sub/dummy | 0 test/test-files/flow/b/sub/dummy | 0 test/test-files/fortls-project/.fortls | 2 + test/test-files/go/go.mod | 1 + test/test-files/go/go1/prj1/file.go | 0 test/test-files/go/go2/prj2/file.go | 0 test/test-files/go/testfile.go | 0 test/test-files/go/testfile2.go | 0 .../gradle/build-gradle-project/build.gradle | 0 .../build-gradle-project/src/main/kotlin/dummy.kt | 0 test/test-files/gradle/gradle | 0 .../non-gradle-project/src/main/kotlin/dummy.kt | 0 .../gradle/settings-gradle-project/settings.gradle | 0 .../src/main/kotlin/dummy.kt | 0 .../gradle/unwrapped-project/build.gradle | 0 .../gradle/unwrapped-project/settings.gradle | 0 .../unwrapped-project/src/main/kotlin/dummy.kt | 0 .../test-files/gradle/wrapped-project/build.gradle | 0 test/test-files/gradle/wrapped-project/gradlew | 0 .../gradle/wrapped-project/settings.gradle | 0 .../wrapped-project/src/main/kotlin/dummy.kt | 0 .../hamllint/haml-lint-and-rubocop/.haml-lint.yml | 0 .../hamllint/haml-lint-and-rubocop/.rubocop.yml | 0 .../haml-lint-and-rubocop/subdir/file.haml | 0 .../hamllint/haml-lint-yml/.haml-lint.yml | 0 .../hamllint/haml-lint-yml/subdir/file.haml | 0 test/test-files/hamllint/rubocop-yml/.rubocop.yml | 0 .../hamllint/rubocop-yml/subdir/file.haml | 0 test/test-files/hdl_server/foo.vhd | 0 .../with_config_file/.hdl_checker.config | 0 .../with_config_file/_hdl_checker.config | 0 .../test-files/hdl_server/with_config_file/foo.vhd | 0 test/test-files/hdl_server/with_git/files/foo.vhd | 1 + test/test-files/html_beautify/html-beautify | 0 test/test-files/html_beautify/test.html | 0 .../test-files/htmlhint/node_modules/.bin/htmlhint | 0 test/test-files/htmlhint/with_config/.htmlhintrc | 0 test/test-files/ink/story/main.ink | 0 test/test-files/inko/test.inko | 0 test/test-files/inko/tests/test/test_foo.inko | 0 .../java/no_main/src/test/java/com/something/dummy | 0 .../with_jaxb/src/main/java/com/something/dummy | 0 .../with_jaxb/src/main/jaxb/com/something/dummy | 0 .../build/gen/main/java/com/something/dummy | 0 .../build/gen2/main/java/com/something/dummy | 0 .../with_main/src/main/java/com/something/dummy | 0 .../with_main/src/test/java/com/something/dummy | 0 test/test-files/javascript/test.js | 0 test/test-files/json/testfile.json | 1 + .../jsonlint/app-without-jsonlint/src/app.json | 0 .../jsonlint/app/node_modules/.bin/jsonlint | 0 test/test-files/jsonlint/app/src/app.json | 0 .../jsonlint/node_modules/jsonlint/lib/cli.js | 0 test/test-files/julia/REQUIRE | 0 test/test-files/julia/test.jl | 0 test/test-files/kotlin/testfile.kt | 0 test/test-files/lessc/node_modules/.bin/lessc | 0 test/test-files/long-line/setup.cfg | 2 + test/test-files/lua/testfile.lua | 0 test/test-files/markdown/testfile.md | 0 .../maven/maven-java-project/module1/mvnw | 0 .../maven/maven-java-project/module1/mvnw.cmd | 0 .../maven/maven-java-project/module1/pom.xml | 1 + .../module1/src/main/java/dummy1.java | 0 .../maven/maven-java-project/module2/pom.xml | 1 + .../module2/src/main/java/dummy2.java | 0 test/test-files/maven/maven-kotlin-project/pom.xml | 1 + .../maven-kotlin-project/src/main/kotlin/dummy.kt | 1 + test/test-files/maven/mvn | 0 .../non-maven-project/src/main/java/dummy.java | 0 test/test-files/nim/with-git/src/source.nim | 0 test/test-files/ocaml/testfile.ml | 0 test/test-files/ocamllsp/dune-project | 0 test/test-files/ols/.merlin | 0 .../ols/node_modules/.bin/ocaml-language-server | 0 .../php/project-with-php-cs-fixer/test.php | 0 .../vendor/bin/php-cs-fixer | 0 .../php/project-with-phpcbf/foo/test.php | 0 .../php/project-with-phpcbf/vendor/bin/phpcbf | 0 .../php/project-without-php-cs-fixer/test.php | 0 .../php/project-without-phpcbf/foo/test.php | 0 .../php/vendor/bin/php-language-server.php | 0 test/test-files/php/with-composer/composer.json | 0 .../vendor/bin/php-language-server.php | 0 .../with-git/vendor/bin/php-language-server.php | 0 .../phpcs/project-with-phpcs/foo/test.php | 0 .../phpcs/project-with-phpcs/vendor/bin/phpcs | 0 .../phpcs/project-without-phpcs/foo/test.php | 0 test/test-files/prettier/testfile | 0 test/test-files/prettier/testfile.css | 0 test/test-files/prettier/testfile.js | 0 test/test-files/prettier/testfile.json | 0 test/test-files/prettier/testfile.scss | 0 test/test-files/prettier/testfile.ts | 0 test/test-files/prettier/with_config/.prettierrc | 0 test/test-files/prettier/with_config/testfile.js | 0 .../prettier/with_prettierignore/.prettierignore | 0 .../prettier/with_prettierignore/src/testfile.js | 0 test/test-files/psalm/vendor/bin/psalm | 0 test/test-files/puglint/node_modules/.bin/pug-lint | 0 test/test-files/puglint/package.json | 0 test/test-files/puglint/puglint_rc_dir/.pug-lintrc | 0 .../puglint/puglint_rc_js_dir/.pug-lintrc.js | 0 .../puglint/puglint_rc_json_dir/.pug-lintrc.json | 0 test/test-files/puppet/dummy.pp | 0 .../lib/puppet/types/exampletype.rb | 0 .../puppet/new-style-module/metadata.json | 0 .../puppet/new-style-module/template/template.epp | 0 .../puppet/old-style-module/manifests/init.pp | 0 .../puppet/old-style-module/templates/template.epp | 0 test/test-files/purescript/bower/Foo.purs | 0 test/test-files/purescript/bower/bower.json | 0 test/test-files/purescript/psc-package/Foo.purs | 0 .../purescript/psc-package/psc-package.json | 0 test/test-files/purescript/spago/Foo.purs | 0 test/test-files/purescript/spago/spago.dhall | 0 .../python/namespace_package_manifest/MANIFEST.in | 3 + .../namespace/foo/__init__.py | 0 .../namespace/foo/bar.py | 0 .../namespace/foo/__init__.py | 0 .../namespace_package_pytest/namespace/foo/bar.py | 0 .../python/namespace_package_pytest/pytest.ini | 2 + .../namespace/foo/__init__.py | 0 .../namespace_package_setup/namespace/foo/bar.py | 0 .../python/namespace_package_setup/setup.cfg | 2 + .../namespace/foo/__init__.py | 0 .../namespace_package_tox/namespace/foo/bar.py | 0 .../python/namespace_package_tox/tox.ini | 3 + .../python/no_virtualenv/subdir/foo/COMMIT_EDITMSG | 0 .../python/no_virtualenv/subdir/foo/__init__.py | 0 .../python/no_virtualenv/subdir/foo/bar.py | 0 test/test-files/python/pipenv/Pipfile.lock | 0 .../python/python-package-project/.flake8 | 0 .../python-package-project/package-name/module.py | 0 test/test-files/python/with_bandit/.bandit | 0 .../python/with_bandit/namespace/foo/__init__.py | 0 .../python/with_bandit/namespace/foo/bar.py | 0 .../python/with_mypy_ini_and_pytest_ini/mypy.ini | 0 .../with_mypy_ini_and_pytest_ini/tests/pytest.ini | 0 .../tests/testsubfolder/my_tests.py | 0 .../dir_with_yapf_config/.style.yapf | 0 .../python/with_virtualenv/env/Scripts/activate | 0 .../with_virtualenv/env/Scripts/autoimport.exe | 0 .../with_virtualenv/env/Scripts/autopep8.exe | 0 .../python/with_virtualenv/env/Scripts/black.exe | 0 .../python/with_virtualenv/env/Scripts/flake8.exe | 0 .../python/with_virtualenv/env/Scripts/gitlint.exe | 0 .../python/with_virtualenv/env/Scripts/isort.exe | 0 .../python/with_virtualenv/env/Scripts/mypy.exe | 0 .../with_virtualenv/env/Scripts/pyflakes.exe | 0 .../python/with_virtualenv/env/Scripts/pylama.exe | 0 .../python/with_virtualenv/env/Scripts/pylint.exe | 0 .../python/with_virtualenv/env/Scripts/pyls.exe | 0 .../python/with_virtualenv/env/Scripts/pyre.exe | 0 .../env/Scripts/reorder-python-imports.exe | 0 .../python/with_virtualenv/env/Scripts/vulture.exe | 0 .../python/with_virtualenv/env/Scripts/yamlfix.exe | 0 .../python/with_virtualenv/env/Scripts/yapf.exe | 0 .../python/with_virtualenv/env/bin/activate | 0 .../python/with_virtualenv/env/bin/autoimport | 0 .../python/with_virtualenv/env/bin/autopep8 | 0 .../python/with_virtualenv/env/bin/black | 0 .../python/with_virtualenv/env/bin/flake8 | 0 .../python/with_virtualenv/env/bin/gitlint | 0 .../python/with_virtualenv/env/bin/isort | 0 .../test-files/python/with_virtualenv/env/bin/mypy | 0 .../python/with_virtualenv/env/bin/pyflakes | 0 .../python/with_virtualenv/env/bin/pylama | 0 .../python/with_virtualenv/env/bin/pylint | 0 .../test-files/python/with_virtualenv/env/bin/pyls | 0 .../test-files/python/with_virtualenv/env/bin/pyre | 0 .../with_virtualenv/env/bin/reorder-python-imports | 0 .../python/with_virtualenv/env/bin/vulture | 0 .../python/with_virtualenv/env/bin/yamlfix | 0 .../test-files/python/with_virtualenv/env/bin/yapf | 0 .../with_virtualenv/subdir/foo/COMMIT_EDITMSG | 0 .../python/with_virtualenv/subdir/foo/__init__.py | 0 .../python/with_virtualenv/subdir/foo/bar.py | 0 .../python/with_virtualenv/subdir/foo/bar.pyi | 0 test/test-files/r/.Rprofile | 0 test/test-files/reasonml/bsconfig.json | 0 test/test-files/reasonml/testfile.re | 0 .../with_bin_path/node_modules/.bin/remark | 0 test/test-files/ruby/dummy.rb | 0 test/test-files/ruby/not_a_rails_app/file.rb | 0 test/test-files/ruby/valid_rails_app/app/dummy.rb | 0 .../ruby/valid_rails_app/app/models/thing.rb | 0 .../app/views/my_great_view.html.erb | 0 .../ruby/valid_rails_app/config/dummy.rb | 0 test/test-files/ruby/valid_rails_app/db/dummy.rb | 0 test/test-files/ruby/valid_ruby_app1/Rakefile | 0 test/test-files/ruby/valid_ruby_app1/lib/file.rb | 0 test/test-files/ruby/valid_ruby_app2/Gemfile | 0 test/test-files/ruby/valid_ruby_app2/lib/file.rb | 0 .../ruby/valid_ruby_app3/.solargraph.yml | 0 test/test-files/ruby/valid_ruby_app3/lib/file.rb | 0 test/test-files/ruby/with_config/.rubocop.yml | 0 test/test-files/ruby/with_config/.standard.yml | 0 test/test-files/rust/Cargo.toml | 0 test/test-files/rust/testfile.rs | 0 .../sasslint/with-bin/node_modules/.bin/sass-lint | 0 .../node_modules/sass-lint/bin/sass-lint.js | 0 test/test-files/scala/dummy.scala | 0 .../scala/invalid_sbt_project/Main.scala | 0 test/test-files/scala/valid_sbt_project/Main.scala | 0 test/test-files/scala/valid_sbt_project/build.sbt | 0 test/test-files/slimlint/.rubocop.yml | 0 test/test-files/slimlint/subdir/file.slim | 0 test/test-files/smlnj/cm/foo.sml | 0 test/test-files/smlnj/cm/path/to/bar.sml | 0 test/test-files/smlnj/cm/sources.cm | 0 test/test-files/smlnj/file/qux.sml | 0 .../test-files/spectral/node_modules/.bin/spectral | 0 test/test-files/spectral/openapi.yaml | 0 test/test-files/stack/stack.yaml | 0 .../standard/with-bin/node_modules/.bin/standard | 0 .../with-cmd/node_modules/standard/bin/cmd.js | 0 .../stylelint/node_modules/.bin/stylelint | 0 test/test-files/swaglint/docs/swagger.yaml | 0 .../test-files/swaglint/node_modules/.bin/swaglint | 0 test/test-files/swift/dummy.swift | 0 .../src/folder/dummy.swift | 0 .../swift/swift-package-project/Package.swift | 0 .../swift-package-project/src/folder/dummy.swift | 0 .../Pods/SwiftLint/swiftlint | 0 .../ios/Pods/SwiftLint/swiftlint | 0 .../swiftlint/cocoapods/Pods/SwiftLint/swiftlint | 0 .../react-native/ios/Pods/SwiftLint/swiftlint | 0 test/test-files/terraform/main.tf | 0 test/test-files/tex/sample1.tex | 0 test/test-files/tex/sample2.tex | 0 test/test-files/tex/testfile.tex | 0 .../with_bin_path/node_modules/.bin/textlint | 0 .../node_modules/textlint/bin/textlint.js | 0 test/test-files/tflint/foo/.tflint.hcl | 0 test/test-files/tflint/foo/bar.tf | 0 test/test-files/tidy/.tidyrc | 0 test/test-files/tidy/test.html | 0 test/test-files/tidy/tidy | 0 test/test-files/tidy/tidy.exe | 0 .../empty-file | 0 test/test-files/top/example.ini | 0 test/test-files/top/middle/bottom/dummy.txt | 0 test/test-files/tsserver/src/file1.ts | 0 test/test-files/tsserver/src/level-1/file2.ts | 0 .../tsserver/src/level-1/level-2/file3.ts | 0 test/test-files/tsserver/src/level-1/tsconfig.json | 0 test/test-files/tsserver/tsconfig.json | 0 test/test-files/typescript/test.ts | 0 test/test-files/typescript/tsconfig.json | 0 test/test-files/vim/invalid_vim_project/test.vim | 0 .../vim/node_modules/.bin/vim-language-server | 0 .../vim/path_with_autoload/autoload/test.vim | 0 test/test-files/vim/path_with_autoload/test.vim | 0 test/test-files/vim/path_with_initvim/init.vim | 0 .../vim/path_with_plugin/plugin/test.vim | 0 test/test-files/vim/path_with_plugin/test.vim | 0 test/test-files/vim/path_with_vimrc/.vimrc | 0 .../node_modules/write-good/bin/write-good.js | 0 .../node-modules/node_modules/.bin/write-good | 0 test/test-files/xo/monorepo/node_modules/xo/cli.js | 0 test/test-files/xo/monorepo/package.json | 0 test/test-files/xo/monorepo/packages/a/index.js | 0 test/test-files/xo/monorepo/packages/a/index.ts | 0 .../test-files/xo/monorepo/packages/a/package.json | 0 test/test-files/zig/build.zig | 0 .../@angular/language-server/bin/ngserver | 0 .../node_modules/@angular/language-service/dummy | 0 test/test_ant_build_classpath_command.vader | 8 +- test/test_ant_find_project_root.vader | 12 +- test/test_c_flag_parsing.vader | 122 ++++++++++----------- .../build/bad_folder_to_test_priority | 0 .../build/compile_commands.json | 0 test/test_c_projects/configure_project/Makefile | 0 test/test_c_projects/configure_project/configure | 0 .../configure_project/include/test.h | 0 .../configure_project/subdir/Makefile | 0 .../git_and_nested_makefiles/include/test.h | 0 .../git_and_nested_makefiles/src/Makefile | 0 .../gnumakefile_project/GNUmakefile | 0 test/test_c_projects/gnumakefile_project/file.c | 0 test/test_c_projects/h_file_project/Makefile | 0 test/test_c_projects/h_file_project/subdir/dummy | 0 test/test_c_projects/h_file_project/test.h | 0 test/test_c_projects/hpp_file_project/Makefile | 0 test/test_c_projects/hpp_file_project/subdir/dummy | 0 test/test_c_projects/hpp_file_project/test.hpp | 0 .../json_project/build/compile_commands.json | 0 test/test_c_projects/json_project/include/test.h | 0 test/test_c_projects/json_project/subdir/dummy | 0 test/test_c_projects/makefile_project/Makefile | 0 test/test_c_projects/makefile_project/_astylerc | 0 test/test_c_projects/makefile_project/args | 3 - .../makefile_project/include/test.h | 0 test/test_c_projects/makefile_project/subdir/args | 1 - test/test_c_projects/makefile_project/subdir/dummy | 0 .../test_c_projects/makefile_project/subdir/file.c | 0 test/test_cpp_project/.astylerc | 0 test/test_cpp_project/dummy.cpp | 0 test/test_csslint_config_detection.vader | 6 +- test/test_find_nearest_directory.vader | 4 +- test/test_flow_command.vader | 46 -------- test/test_gradle_build_classpath_command.vader | 14 +-- test/test_gradle_find_executable.vader | 10 +- test/test_gradle_find_project_root.vader | 14 +-- test/test_hdl_checker_options.vader | 14 +-- test/test_jsonlint_executable_detection.vader | 12 +- ...test_kotlin_languageserver_path_detection.vader | 25 ----- test/test_maven_build_classpath_command.vader | 14 +-- test/test_maven_find_executable.vader | 8 +- test/test_maven_find_project_root.vader | 10 +- test/test_nearest_file_search.vader | 4 +- test/test_nimlsp_project_root.vader | 2 +- test/test_puppet_path_detection.vader | 8 +- test/test_python_find_project_root.vader | 4 +- test/test_python_pipenv.vader | 10 +- test/test_resolve_local_path.vader | 4 +- test/test_sml_command.vader | 18 +-- test/test_socket_connections.vader | 12 +- test/test_swift_find_project_root.vader | 6 +- test/test_swiftlint_executable_detection.vader | 49 --------- test/tex_files/testfile.tex | 0 test/tflint-test-files/foo/.tflint.hcl | 0 test/tflint-test-files/foo/bar.tf | 0 .../empty-file | 0 test/top/example.ini | 0 test/top/middle/bottom/dummy.txt | 0 test/typescript/test.ts | 0 test/typescript/tsconfig.json | 0 test/xo-test-files/monorepo/node_modules/xo/cli.js | 0 test/xo-test-files/monorepo/package.json | 0 test/xo-test-files/monorepo/packages/a/index.js | 0 test/xo-test-files/monorepo/packages/a/index.ts | 0 .../xo-test-files/monorepo/packages/a/package.json | 0 959 files changed, 1216 insertions(+), 1316 deletions(-) delete mode 100644 test/ada_files/testfile.adb delete mode 100644 test/ant-test-files/ant-project/build.xml delete mode 100755 test/ant-test-files/bin/ant delete mode 100755 test/ant-test-files/bin/ant.exe delete mode 100644 test/command_callback/alex-node-modules-2/node_modules/alex/cli.js delete mode 100644 test/command_callback/alex-node-modules/node_modules/.bin/alex delete mode 100644 test/command_callback/bazel_paths/BUILD delete mode 100644 test/command_callback/bazel_paths/WORKSPACE delete mode 100644 test/command_callback/bazel_paths/defs.bzl delete mode 100644 test/command_callback/bib_paths/dummy.bib delete mode 100644 test/command_callback/c_paths/dummy.c delete mode 100644 test/command_callback/cargo_paths/Cargo.toml delete mode 100644 test/command_callback/cargo_workspace_paths/Cargo.toml delete mode 100644 test/command_callback/cargo_workspace_paths/subpath/Cargo.toml delete mode 100644 test/command_callback/ccls_paths/with_build_dir/unusual_build_dir_name/compile_commands.json delete mode 100644 test/command_callback/ccls_paths/with_ccls-root/.ccls-root delete mode 100644 test/command_callback/ccls_paths/with_ccls/.ccls delete mode 100644 test/command_callback/ccls_paths/with_compile_commands_json/compile_commands.json delete mode 100644 test/command_callback/checkstyle_paths/other_config.xml delete mode 100644 test/command_callback/clangd_paths/with_build_dir/unusual_build_dir_name/compile_commands.json delete mode 100644 test/command_callback/clangd_paths/with_compile_commands/compile_commands.json delete mode 100644 test/command_callback/clangformat_paths/with_clangformat/.clang-format delete mode 100644 test/command_callback/cppcheck_paths/one/compile_commands.json delete mode 100644 test/command_callback/cppcheck_paths/one/two/three/file.c delete mode 100644 test/command_callback/cppcheck_paths/one/two/three/file.cpp delete mode 100644 test/command_callback/cppcheck_paths/with_build_dir/build/compile_commands.json delete mode 100644 test/command_callback/cquery_paths/build/compile_commands.json delete mode 100644 test/command_callback/cquery_paths/with_cquery/.cquery delete mode 100644 test/command_callback/dart_paths/.packages delete mode 100644 test/command_callback/elixir_paths/mix_project/lib/app.ex delete mode 100644 test/command_callback/elixir_paths/mix_project/mix.exs delete mode 100644 test/command_callback/elixir_paths/umbrella_project/apps/app1/lib/app.ex delete mode 100644 test/command_callback/elixir_paths/umbrella_project/apps/app1/mix.exs delete mode 100644 test/command_callback/elixir_paths/umbrella_project/apps/app2/lib/app.ex delete mode 100644 test/command_callback/elixir_paths/umbrella_project/apps/app2/mix.exs delete mode 100644 test/command_callback/elixir_paths/umbrella_project/mix.exs delete mode 100755 test/command_callback/fecs_paths/fecs delete mode 100755 test/command_callback/fecs_paths/fecs.exe delete mode 100644 test/command_callback/fortran-fortls-project/.fortls delete mode 100644 test/command_callback/go_paths/go1/prj1/file.go delete mode 100644 test/command_callback/go_paths/go2/prj2/file.go delete mode 100644 test/command_callback/hdl_server/foo.vhd delete mode 100644 test/command_callback/hdl_server/with_config_file/.hdl_checker.config delete mode 100644 test/command_callback/hdl_server/with_config_file/_hdl_checker.config delete mode 100644 test/command_callback/hdl_server/with_config_file/foo.vhd delete mode 100644 test/command_callback/hdl_server/with_git/files/foo.vhd delete mode 100755 test/command_callback/html_beautify_paths/html-beautify delete mode 100644 test/command_callback/html_beautify_paths/test.html delete mode 100755 test/command_callback/htmlhint_paths/node_modules/.bin/htmlhint delete mode 100644 test/command_callback/htmlhint_paths/with_config/.htmlhintrc delete mode 100644 test/command_callback/ink_paths/story/main.ink delete mode 100644 test/command_callback/inko_paths/test.inko delete mode 100644 test/command_callback/inko_paths/tests/test/test_foo.inko delete mode 100644 test/command_callback/java_paths/build/gen/main/java/com/something/dummy delete mode 100644 test/command_callback/java_paths/build/gen2/main/java/com/something/dummy delete mode 100644 test/command_callback/java_paths/src/main/java/com/something/dummy delete mode 100644 test/command_callback/java_paths/src/test/java/com/something/dummy delete mode 100644 test/command_callback/java_paths_no_main/src/test/java/com/something/dummy delete mode 100644 test/command_callback/java_paths_with_jaxb/src/main/java/com/something/dummy delete mode 100644 test/command_callback/java_paths_with_jaxb/src/main/jaxb/com/something/dummy delete mode 100644 test/command_callback/julia-languageserver-project/REQUIRE delete mode 100644 test/command_callback/julia-languageserver-project/test.jl delete mode 100755 test/command_callback/lessc_paths/node_modules/.bin/lessc delete mode 100644 test/command_callback/ocamllsp_paths/dune-project delete mode 100644 test/command_callback/ols_paths/.merlin delete mode 100644 test/command_callback/ols_paths/node_modules/.bin/ocaml-language-server delete mode 100644 test/command_callback/php-intelephense-project/with-composer/composer.json delete mode 100755 test/command_callback/php-langserver-project/vendor/bin/php-language-server.php delete mode 100644 test/command_callback/php-langserver-project/with-composer/composer.json delete mode 100755 test/command_callback/php-langserver-project/with-composer/vendor/bin/php-language-server.php delete mode 100755 test/command_callback/php-langserver-project/with-git/vendor/bin/php-language-server.php delete mode 100644 test/command_callback/php_paths/project-with-php-cs-fixer/test.php delete mode 100644 test/command_callback/php_paths/project-with-php-cs-fixer/vendor/bin/php-cs-fixer delete mode 100644 test/command_callback/php_paths/project-with-phpcbf/foo/test.php delete mode 100644 test/command_callback/php_paths/project-with-phpcbf/vendor/bin/phpcbf delete mode 100644 test/command_callback/php_paths/project-without-php-cs-fixer/test.php delete mode 100644 test/command_callback/php_paths/project-without-phpcbf/foo/test.php delete mode 100755 test/command_callback/psalm-project/vendor/bin/psalm delete mode 100644 test/command_callback/puglint_project/node_modules/.bin/pug-lint delete mode 100644 test/command_callback/puglint_project/package.json delete mode 100644 test/command_callback/puglint_project/puglint_rc_dir/.pug-lintrc delete mode 100644 test/command_callback/puglint_project/puglint_rc_js_dir/.pug-lintrc.js delete mode 100644 test/command_callback/puglint_project/puglint_rc_json_dir/.pug-lintrc.json delete mode 100644 test/command_callback/puppet_paths/dummy.pp delete mode 100644 test/command_callback/purescript_paths/bower/Foo.purs delete mode 100644 test/command_callback/purescript_paths/bower/bower.json delete mode 100644 test/command_callback/purescript_paths/psc-package/Foo.purs delete mode 100644 test/command_callback/purescript_paths/psc-package/psc-package.json delete mode 100644 test/command_callback/purescript_paths/spago/Foo.purs delete mode 100644 test/command_callback/purescript_paths/spago/spago.dhall delete mode 100644 test/command_callback/python_paths/namespace_package_manifest/MANIFEST.in delete mode 100644 test/command_callback/python_paths/namespace_package_manifest/namespace/foo/__init__.py delete mode 100644 test/command_callback/python_paths/namespace_package_manifest/namespace/foo/bar.py delete mode 100644 test/command_callback/python_paths/namespace_package_pytest/namespace/foo/__init__.py delete mode 100644 test/command_callback/python_paths/namespace_package_pytest/namespace/foo/bar.py delete mode 100644 test/command_callback/python_paths/namespace_package_pytest/pytest.ini delete mode 100644 test/command_callback/python_paths/namespace_package_setup/namespace/foo/__init__.py delete mode 100644 test/command_callback/python_paths/namespace_package_setup/namespace/foo/bar.py delete mode 100644 test/command_callback/python_paths/namespace_package_setup/setup.cfg delete mode 100644 test/command_callback/python_paths/namespace_package_tox/namespace/foo/__init__.py delete mode 100644 test/command_callback/python_paths/namespace_package_tox/namespace/foo/bar.py delete mode 100644 test/command_callback/python_paths/namespace_package_tox/tox.ini delete mode 100644 test/command_callback/python_paths/no_virtualenv/subdir/foo/COMMIT_EDITMSG delete mode 100644 test/command_callback/python_paths/no_virtualenv/subdir/foo/__init__.py delete mode 100644 test/command_callback/python_paths/no_virtualenv/subdir/foo/bar.py delete mode 100644 test/command_callback/python_paths/with_bandit/.bandit delete mode 100644 test/command_callback/python_paths/with_bandit/namespace/foo/__init__.py delete mode 100644 test/command_callback/python_paths/with_bandit/namespace/foo/bar.py delete mode 100644 test/command_callback/python_paths/with_mypy_ini_and_pytest_ini/mypy.ini delete mode 100644 test/command_callback/python_paths/with_mypy_ini_and_pytest_ini/tests/pytest.ini delete mode 100644 test/command_callback/python_paths/with_mypy_ini_and_pytest_ini/tests/testsubfolder/my_tests.py delete mode 100644 test/command_callback/python_paths/with_virtualenv/dir_with_yapf_config/.style.yapf delete mode 100644 test/command_callback/python_paths/with_virtualenv/env/Scripts/activate delete mode 100755 test/command_callback/python_paths/with_virtualenv/env/Scripts/autoimport.exe delete mode 100755 test/command_callback/python_paths/with_virtualenv/env/Scripts/autopep8.exe delete mode 100755 test/command_callback/python_paths/with_virtualenv/env/Scripts/black.exe delete mode 100755 test/command_callback/python_paths/with_virtualenv/env/Scripts/flake8.exe delete mode 100755 test/command_callback/python_paths/with_virtualenv/env/Scripts/gitlint.exe delete mode 100755 test/command_callback/python_paths/with_virtualenv/env/Scripts/isort.exe delete mode 100755 test/command_callback/python_paths/with_virtualenv/env/Scripts/mypy.exe delete mode 100755 test/command_callback/python_paths/with_virtualenv/env/Scripts/pyflakes.exe delete mode 100755 test/command_callback/python_paths/with_virtualenv/env/Scripts/pylama.exe delete mode 100755 test/command_callback/python_paths/with_virtualenv/env/Scripts/pylint.exe delete mode 100755 test/command_callback/python_paths/with_virtualenv/env/Scripts/pyls.exe delete mode 100755 test/command_callback/python_paths/with_virtualenv/env/Scripts/pyre.exe delete mode 100755 test/command_callback/python_paths/with_virtualenv/env/Scripts/reorder-python-imports.exe delete mode 100755 test/command_callback/python_paths/with_virtualenv/env/Scripts/vulture.exe delete mode 100644 test/command_callback/python_paths/with_virtualenv/env/Scripts/yamlfix.exe delete mode 100755 test/command_callback/python_paths/with_virtualenv/env/Scripts/yapf.exe delete mode 100644 test/command_callback/python_paths/with_virtualenv/env/bin/activate delete mode 100755 test/command_callback/python_paths/with_virtualenv/env/bin/autoimport delete mode 100755 test/command_callback/python_paths/with_virtualenv/env/bin/autopep8 delete mode 100755 test/command_callback/python_paths/with_virtualenv/env/bin/black delete mode 100755 test/command_callback/python_paths/with_virtualenv/env/bin/flake8 delete mode 100755 test/command_callback/python_paths/with_virtualenv/env/bin/gitlint delete mode 100755 test/command_callback/python_paths/with_virtualenv/env/bin/isort delete mode 100755 test/command_callback/python_paths/with_virtualenv/env/bin/mypy delete mode 100755 test/command_callback/python_paths/with_virtualenv/env/bin/pyflakes delete mode 100755 test/command_callback/python_paths/with_virtualenv/env/bin/pylama delete mode 100755 test/command_callback/python_paths/with_virtualenv/env/bin/pylint delete mode 100755 test/command_callback/python_paths/with_virtualenv/env/bin/pyls delete mode 100755 test/command_callback/python_paths/with_virtualenv/env/bin/pyre delete mode 100755 test/command_callback/python_paths/with_virtualenv/env/bin/reorder-python-imports delete mode 100755 test/command_callback/python_paths/with_virtualenv/env/bin/vulture delete mode 100755 test/command_callback/python_paths/with_virtualenv/env/bin/yamlfix delete mode 100755 test/command_callback/python_paths/with_virtualenv/env/bin/yapf delete mode 100644 test/command_callback/python_paths/with_virtualenv/subdir/foo/COMMIT_EDITMSG delete mode 100644 test/command_callback/python_paths/with_virtualenv/subdir/foo/__init__.py delete mode 100644 test/command_callback/python_paths/with_virtualenv/subdir/foo/bar.py delete mode 100644 test/command_callback/python_paths/with_virtualenv/subdir/foo/bar.pyi delete mode 100644 test/command_callback/r_paths/.Rprofile delete mode 100644 test/command_callback/reason_ls_paths/bsconfig.json delete mode 100755 test/command_callback/remark_lint_paths/with_bin_path/node_modules/.bin/remark delete mode 100644 test/command_callback/ruby_paths/dummy.rb delete mode 100644 test/command_callback/ruby_paths/with_config/.rubocop.yml delete mode 100644 test/command_callback/ruby_paths/with_config/.standard.yml delete mode 100644 test/command_callback/rust-rls-project/Cargo.toml delete mode 100755 test/command_callback/sasslint-test-files/with-bin/node_modules/.bin/sass-lint delete mode 100755 test/command_callback/sasslint-test-files/with-source/node_modules/sass-lint/bin/sass-lint.js delete mode 100644 test/command_callback/scala_paths/dummy.scala delete mode 100644 test/command_callback/spectral_paths/node_modules/.bin/spectral delete mode 100644 test/command_callback/spectral_paths/openapi.yaml delete mode 100644 test/command_callback/stack_build_paths/stack.yaml delete mode 100644 test/command_callback/stack_ghc_paths/stack.yaml delete mode 100755 test/command_callback/standard-test-files/with-bin/node_modules/.bin/standard delete mode 100755 test/command_callback/standard-test-files/with-cmd/node_modules/standard/bin/cmd.js delete mode 100755 test/command_callback/stylelint_paths/node_modules/.bin/stylelint delete mode 100644 test/command_callback/swaglint_paths/docs/swagger.yaml delete mode 100644 test/command_callback/swaglint_paths/node_modules/.bin/swaglint delete mode 100644 test/command_callback/swift_paths/dummy.swift create mode 100644 test/command_callback/test_flow_command_callback.vader create mode 100644 test/command_callback/test_rnix_command_callback.vader create mode 100644 test/command_callback/test_swiftlint_command_callback.vader delete mode 100644 test/command_callback/tex_paths/sample1.tex delete mode 100644 test/command_callback/tex_paths/sample2.tex delete mode 100755 test/command_callback/textlint_paths/with_bin_path/node_modules/.bin/textlint delete mode 100755 test/command_callback/textlint_paths/with_textlint_bin_path/node_modules/textlint/bin/textlint.js delete mode 100644 test/command_callback/tidy_paths/.tidyrc delete mode 100644 test/command_callback/tidy_paths/test.html delete mode 100755 test/command_callback/tidy_paths/tidy delete mode 100755 test/command_callback/tidy_paths/tidy.exe delete mode 100644 test/command_callback/tsserver_paths/src/file1.ts delete mode 100644 test/command_callback/tsserver_paths/src/level-1/file2.ts delete mode 100644 test/command_callback/tsserver_paths/src/level-1/level-2/file3.ts delete mode 100644 test/command_callback/tsserver_paths/src/level-1/tsconfig.json delete mode 100644 test/command_callback/tsserver_paths/tsconfig.json delete mode 100644 test/command_callback/vim_fixtures/invalid_vim_project/test.vim delete mode 100644 test/command_callback/vim_fixtures/node_modules/.bin/vim-language-server delete mode 100644 test/command_callback/vim_fixtures/path_with_autoload/autoload/test.vim delete mode 100644 test/command_callback/vim_fixtures/path_with_autoload/test.vim delete mode 100644 test/command_callback/vim_fixtures/path_with_initvim/init.vim delete mode 100644 test/command_callback/vim_fixtures/path_with_plugin/plugin/test.vim delete mode 100644 test/command_callback/vim_fixtures/path_with_plugin/test.vim delete mode 100644 test/command_callback/vim_fixtures/path_with_vimrc/.vimrc delete mode 100644 test/command_callback/write-good-node-modules-2/node_modules/write-good/bin/write-good.js delete mode 100644 test/command_callback/write-good-node-modules/node_modules/.bin/write-good delete mode 100644 test/command_callback/zig-zls-project/build.zig delete mode 100755 test/compile_database_perf/test.sh delete mode 100644 test/csslint-test-files/other-app/testfile.css delete mode 100644 test/csslint-test-files/some-app/.csslintrc delete mode 100644 test/csslint-test-files/some-app/subdir/testfile.css delete mode 100644 test/cucumber_fixtures/features/cuke.feature delete mode 100644 test/cucumber_fixtures/features/step_definitions/base_steps.rb delete mode 100644 test/d_files/test.d delete mode 100644 test/dart_files/testfile.dart delete mode 100644 test/dumb_named_pipe_server.py delete mode 100644 test/dumb_tcp_client.py delete mode 100644 test/dumb_tcp_server.py delete mode 100644 test/elixir-test-files/testfile.ex delete mode 100644 test/elm-test-files/newapp-notests/elm.json delete mode 100644 test/elm-test-files/newapp-notests/node_modules/.bin/elm delete mode 100644 test/elm-test-files/newapp-notests/tests/TestMain.elm delete mode 100644 test/elm-test-files/newapp/elm.json delete mode 100644 test/elm-test-files/newapp/node_modules/.bin/elm delete mode 100644 test/elm-test-files/newapp/node_modules/.bin/elm-test delete mode 100644 test/elm-test-files/newapp/src/Main.elm delete mode 100644 test/elm-test-files/newapp/tests/TestSuite.elm delete mode 100644 test/elm-test-files/node_modules/.bin/elm-format delete mode 100644 test/elm-test-files/oldapp/elm-package.json delete mode 100644 test/elm-test-files/oldapp/node_modules/.bin/elm delete mode 100644 test/elm-test-files/oldapp/node_modules/.bin/elm-test delete mode 100644 test/elm-test-files/oldapp/src/Main.elm delete mode 100644 test/elm-test-files/oldapp/tests/TestSuite.elm delete mode 100644 test/elm-test-files/src/subdir/testfile.elm delete mode 100644 test/ember-template-lint-test-files/app/template.hbs delete mode 100644 test/ember-template-lint-test-files/package.json delete mode 100644 test/eslint-test-files/app-with-eslint-d/node_modules/.bin/eslint_d delete mode 100644 test/eslint-test-files/node_modules/.bin/eslint delete mode 100644 test/eslint-test-files/other-app/subdir/testfile.js delete mode 100644 test/eslint-test-files/package.json delete mode 100644 test/eslint-test-files/react-app/.eslintrc.js delete mode 100644 test/eslint-test-files/react-app/node_modules/eslint/bin/eslint.js delete mode 100644 test/eslint-test-files/react-app/node_modules/standard/bin/cmd.js delete mode 100644 test/eslint-test-files/react-app/node_modules/stylelint/bin/stylelint.js delete mode 100644 test/eslint-test-files/react-app/node_modules/xo/cli.js delete mode 100644 test/eslint-test-files/react-app/subdir-with-config/.eslintrc delete mode 100644 test/eslint-test-files/react-app/subdir-with-package-json/node_modules/.gitkeep delete mode 100644 test/eslint-test-files/react-app/subdir-with-package-json/package.json delete mode 100644 test/eslint-test-files/react-app/subdir/testfile.css delete mode 100644 test/eslint-test-files/react-app/subdir/testfile.js delete mode 100644 test/eslint-test-files/react-app/subdir/testfile.ts delete mode 100644 test/fish_files/testfile.fish delete mode 100644 test/fixers/eslint-test-files/app-with-eslint-d/node_modules/.bin/eslint_d delete mode 100644 test/fixers/eslint-test-files/node_modules/.bin/eslint delete mode 100644 test/fixers/eslint-test-files/other-app/subdir/testfile.js delete mode 100644 test/fixers/eslint-test-files/react-app/.eslintrc.js delete mode 100644 test/fixers/eslint-test-files/react-app/node_modules/eslint/bin/eslint.js delete mode 100644 test/fixers/eslint-test-files/react-app/node_modules/standard/bin/cmd.js delete mode 100644 test/fixers/eslint-test-files/react-app/node_modules/stylelint/bin/stylelint.js delete mode 100644 test/fixers/eslint-test-files/react-app/subdir/testfile.css delete mode 100644 test/fixers/eslint-test-files/react-app/subdir/testfile.js delete mode 100644 test/fixers/long-line-project/setup.cfg delete mode 100644 test/flow/a/.flowconfig delete mode 100644 test/flow/a/sub/dummy delete mode 100644 test/flow/b/sub/dummy delete mode 100644 test/go_files/go.mod delete mode 100644 test/go_files/testfile.go delete mode 100644 test/go_files/testfile2.go delete mode 100644 test/gradle-test-files/build-gradle-project/build.gradle delete mode 100644 test/gradle-test-files/build-gradle-project/src/main/kotlin/dummy.kt delete mode 100755 test/gradle-test-files/gradle delete mode 100644 test/gradle-test-files/non-gradle-project/src/main/kotlin/dummy.kt delete mode 100644 test/gradle-test-files/settings-gradle-project/settings.gradle delete mode 100644 test/gradle-test-files/settings-gradle-project/src/main/kotlin/dummy.kt delete mode 100644 test/gradle-test-files/unwrapped-project/build.gradle delete mode 100644 test/gradle-test-files/unwrapped-project/settings.gradle delete mode 100644 test/gradle-test-files/unwrapped-project/src/main/kotlin/dummy.kt delete mode 100644 test/gradle-test-files/wrapped-project/build.gradle delete mode 100644 test/gradle-test-files/wrapped-project/gradlew delete mode 100644 test/gradle-test-files/wrapped-project/settings.gradle delete mode 100644 test/gradle-test-files/wrapped-project/src/main/kotlin/dummy.kt delete mode 100644 test/hamllint-test-files/haml-lint-and-rubocop/.haml-lint.yml delete mode 100644 test/hamllint-test-files/haml-lint-and-rubocop/.rubocop.yml delete mode 100644 test/hamllint-test-files/haml-lint-and-rubocop/subdir/file.haml delete mode 100644 test/hamllint-test-files/haml-lint-yml/.haml-lint.yml delete mode 100644 test/hamllint-test-files/haml-lint-yml/subdir/file.haml delete mode 100644 test/hamllint-test-files/rubocop-yml/.rubocop.yml delete mode 100644 test/hamllint-test-files/rubocop-yml/subdir/file.haml delete mode 100644 test/javascript_files/test.js delete mode 100644 test/json_files/testfile.json delete mode 100644 test/jsonlint-test-files/app-without-jsonlint/src/app.json delete mode 100644 test/jsonlint-test-files/app/node_modules/.bin/jsonlint delete mode 100644 test/jsonlint-test-files/app/src/app.json delete mode 100644 test/jsonlint-test-files/node_modules/jsonlint/lib/cli.js delete mode 100644 test/kotlin_files/testfile.kt delete mode 100644 test/lua_files/testfile.lua delete mode 100644 test/markdown_files/testfile.md delete mode 100755 test/maven-test-files/maven-java-project/module1/mvnw delete mode 100755 test/maven-test-files/maven-java-project/module1/mvnw.cmd delete mode 100644 test/maven-test-files/maven-java-project/module1/pom.xml delete mode 100644 test/maven-test-files/maven-java-project/module1/src/main/java/dummy1.java delete mode 100644 test/maven-test-files/maven-java-project/module2/pom.xml delete mode 100644 test/maven-test-files/maven-java-project/module2/src/main/java/dummy2.java delete mode 100644 test/maven-test-files/maven-kotlin-project/pom.xml delete mode 100644 test/maven-test-files/maven-kotlin-project/src/main/kotlin/dummy.kt delete mode 100755 test/maven-test-files/mvn delete mode 100644 test/maven-test-files/non-maven-project/src/main/java/dummy.java delete mode 100644 test/nim-test-files/with-git/src/source.nim delete mode 100644 test/nix/test.nix delete mode 100644 test/nix/test_rnix_lsp.vader delete mode 100644 test/ocaml-test-files/testfile.ml delete mode 100644 test/phpcs-test-files/project-with-phpcs/foo/test.php delete mode 100644 test/phpcs-test-files/project-with-phpcs/vendor/bin/phpcs delete mode 100644 test/phpcs-test-files/project-without-phpcs/foo/test.php delete mode 100644 test/prettier-test-files/testfile delete mode 100644 test/prettier-test-files/testfile.css delete mode 100644 test/prettier-test-files/testfile.js delete mode 100644 test/prettier-test-files/testfile.json delete mode 100644 test/prettier-test-files/testfile.scss delete mode 100644 test/prettier-test-files/testfile.ts delete mode 100644 test/prettier-test-files/with_config/.prettierrc delete mode 100644 test/prettier-test-files/with_config/testfile.js delete mode 100644 test/prettier-test-files/with_prettierignore/.prettierignore delete mode 100644 test/prettier-test-files/with_prettierignore/src/testfile.js delete mode 100644 test/puppet-test-files/new-style-module/lib/puppet/types/exampletype.rb delete mode 100644 test/puppet-test-files/new-style-module/metadata.json delete mode 100644 test/puppet-test-files/new-style-module/template/template.epp delete mode 100644 test/puppet-test-files/old-style-module/manifests/init.pp delete mode 100644 test/puppet-test-files/old-style-module/templates/template.epp delete mode 100644 test/python-test-files/python-package-project/.flake8 delete mode 100644 test/python-test-files/python-package-project/package-name/module.py delete mode 100644 test/python_fixtures/pipenv/Pipfile.lock delete mode 100644 test/reasonml_files/testfile.re delete mode 100644 test/ruby_fixtures/not_a_rails_app/file.rb delete mode 100644 test/ruby_fixtures/valid_rails_app/app/dummy.rb delete mode 100644 test/ruby_fixtures/valid_rails_app/app/models/thing.rb delete mode 100644 test/ruby_fixtures/valid_rails_app/app/views/my_great_view.html.erb delete mode 100644 test/ruby_fixtures/valid_rails_app/config/dummy.rb delete mode 100644 test/ruby_fixtures/valid_rails_app/db/dummy.rb delete mode 100644 test/ruby_fixtures/valid_ruby_app1/Rakefile delete mode 100644 test/ruby_fixtures/valid_ruby_app1/lib/file.rb delete mode 100644 test/ruby_fixtures/valid_ruby_app2/Gemfile delete mode 100644 test/ruby_fixtures/valid_ruby_app2/lib/file.rb delete mode 100644 test/ruby_fixtures/valid_ruby_app3/.solargraph.yml delete mode 100644 test/ruby_fixtures/valid_ruby_app3/lib/file.rb delete mode 100644 test/rust_files/testfile.rs delete mode 100644 test/scala_fixtures/invalid_sbt_project/Main.scala delete mode 100644 test/scala_fixtures/valid_sbt_project/Main.scala delete mode 100644 test/scala_fixtures/valid_sbt_project/build.sbt create mode 100644 test/script/dumb_named_pipe_server.py create mode 100644 test/script/dumb_tcp_client.py create mode 100644 test/script/dumb_tcp_server.py delete mode 100644 test/slimlint-test-files/.rubocop.yml delete mode 100644 test/slimlint-test-files/subdir/file.slim delete mode 100644 test/smlnj/cm/foo.sml delete mode 100644 test/smlnj/cm/path/to/bar.sml delete mode 100644 test/smlnj/cm/sources.cm delete mode 100644 test/smlnj/file/qux.sml delete mode 100644 test/swift-test-files/non-swift-package-project/src/folder/dummy.swift delete mode 100644 test/swift-test-files/swift-package-project/Package.swift delete mode 100644 test/swift-test-files/swift-package-project/src/folder/dummy.swift delete mode 100644 test/swiftlint-test-files/cocoapods-and-react-native/Pods/SwiftLint/swiftlint delete mode 100644 test/swiftlint-test-files/cocoapods-and-react-native/ios/Pods/SwiftLint/swiftlint delete mode 100644 test/swiftlint-test-files/cocoapods/Pods/SwiftLint/swiftlint delete mode 100644 test/swiftlint-test-files/react-native/ios/Pods/SwiftLint/swiftlint delete mode 100644 test/terraform_files/main.tf create mode 100644 test/test-files/.gitignore create mode 100644 test/test-files/ada/testfile.adb create mode 100644 test/test-files/alex/node-modules-2/node_modules/alex/cli.js create mode 100644 test/test-files/alex/node-modules/node_modules/.bin/alex create mode 100644 test/test-files/angular/node_modules/@angular/language-server/bin/ngserver create mode 100644 test/test-files/angular/node_modules/@angular/language-service/dummy create mode 100644 test/test-files/ant/ant-project/build.xml create mode 100755 test/test-files/ant/bin/ant create mode 100755 test/test-files/ant/bin/ant.exe create mode 100644 test/test-files/bazel/BUILD create mode 100644 test/test-files/bazel/WORKSPACE create mode 100644 test/test-files/bazel/defs.bzl create mode 100644 test/test-files/bib/dummy.bib create mode 100644 test/test-files/c/build_compile_commands_project/build/bad_folder_to_test_priority create mode 100644 test/test-files/c/build_compile_commands_project/build/compile_commands.json create mode 100644 test/test-files/c/configure_project/Makefile create mode 100644 test/test-files/c/configure_project/configure create mode 100644 test/test-files/c/configure_project/include/test.h create mode 100644 test/test-files/c/configure_project/subdir/Makefile create mode 100644 test/test-files/c/dummy.c create mode 100644 test/test-files/c/git_and_nested_makefiles/include/test.h create mode 100644 test/test-files/c/git_and_nested_makefiles/src/Makefile create mode 100644 test/test-files/c/gnumakefile_project/GNUmakefile create mode 100644 test/test-files/c/gnumakefile_project/file.c create mode 100644 test/test-files/c/h_file_project/Makefile create mode 100644 test/test-files/c/h_file_project/subdir/dummy create mode 100644 test/test-files/c/h_file_project/test.h create mode 100644 test/test-files/c/hpp_file_project/Makefile create mode 100644 test/test-files/c/hpp_file_project/subdir/dummy create mode 100644 test/test-files/c/hpp_file_project/test.hpp create mode 100644 test/test-files/c/json_project/build/compile_commands.json create mode 100644 test/test-files/c/json_project/include/test.h create mode 100644 test/test-files/c/json_project/subdir/dummy create mode 100644 test/test-files/c/makefile_project/Makefile create mode 100644 test/test-files/c/makefile_project/_astylerc create mode 100644 test/test-files/c/makefile_project/args create mode 100644 test/test-files/c/makefile_project/include/test.h create mode 100644 test/test-files/c/makefile_project/subdir/args create mode 100644 test/test-files/c/makefile_project/subdir/dummy create mode 100644 test/test-files/c/makefile_project/subdir/file.c create mode 100644 test/test-files/cargo/Cargo.toml create mode 100644 test/test-files/cargo/workspace_paths/Cargo.toml create mode 100644 test/test-files/cargo/workspace_paths/subpath/Cargo.toml create mode 100644 test/test-files/ccls/with_build_dir/unusual_build_dir_name/compile_commands.json create mode 100644 test/test-files/ccls/with_ccls-root/.ccls-root create mode 100644 test/test-files/ccls/with_ccls/.ccls create mode 100644 test/test-files/ccls/with_compile_commands_json/compile_commands.json create mode 100644 test/test-files/checkstyle/other_config.xml create mode 100644 test/test-files/clangd/with_build_dir/unusual_build_dir_name/compile_commands.json create mode 100644 test/test-files/clangd/with_compile_commands/compile_commands.json create mode 100644 test/test-files/clangformat/with_clangformat/.clang-format create mode 100644 test/test-files/cpp/.astylerc create mode 100644 test/test-files/cpp/dummy.cpp create mode 100644 test/test-files/cppcheck/one/compile_commands.json create mode 100644 test/test-files/cppcheck/one/two/three/file.c create mode 100644 test/test-files/cppcheck/one/two/three/file.cpp create mode 100644 test/test-files/cppcheck/with_build_dir/build/compile_commands.json create mode 100644 test/test-files/cquery/build/compile_commands.json create mode 100644 test/test-files/cquery/with_cquery/.cquery create mode 100644 test/test-files/csslint/other-app/testfile.css create mode 100644 test/test-files/csslint/some-app/.csslintrc create mode 100644 test/test-files/csslint/some-app/subdir/testfile.css create mode 100644 test/test-files/cucumber/features/cuke.feature create mode 100644 test/test-files/cucumber/features/step_definitions/base_steps.rb create mode 100644 test/test-files/d/test.d create mode 100644 test/test-files/dart/.packages create mode 100644 test/test-files/dart/testfile.dart create mode 100644 test/test-files/elixir/mix_project/lib/app.ex create mode 100644 test/test-files/elixir/mix_project/mix.exs create mode 100644 test/test-files/elixir/testfile.ex create mode 100644 test/test-files/elixir/umbrella_project/apps/app1/lib/app.ex create mode 100644 test/test-files/elixir/umbrella_project/apps/app1/mix.exs create mode 100644 test/test-files/elixir/umbrella_project/apps/app2/lib/app.ex create mode 100644 test/test-files/elixir/umbrella_project/apps/app2/mix.exs create mode 100644 test/test-files/elixir/umbrella_project/mix.exs create mode 100644 test/test-files/elm/newapp-notests/elm.json create mode 100644 test/test-files/elm/newapp-notests/node_modules/.bin/elm create mode 100644 test/test-files/elm/newapp-notests/tests/TestMain.elm create mode 100644 test/test-files/elm/newapp/elm.json create mode 100644 test/test-files/elm/newapp/node_modules/.bin/elm create mode 100644 test/test-files/elm/newapp/node_modules/.bin/elm-test create mode 100644 test/test-files/elm/newapp/src/Main.elm create mode 100644 test/test-files/elm/newapp/tests/TestSuite.elm create mode 100644 test/test-files/elm/node_modules/.bin/elm-format create mode 100644 test/test-files/elm/oldapp/elm-package.json create mode 100644 test/test-files/elm/oldapp/node_modules/.bin/elm create mode 100644 test/test-files/elm/oldapp/node_modules/.bin/elm-test create mode 100644 test/test-files/elm/oldapp/src/Main.elm create mode 100644 test/test-files/elm/oldapp/tests/TestSuite.elm create mode 100644 test/test-files/elm/src/subdir/testfile.elm create mode 100644 test/test-files/eslint/app-with-eslint-d/node_modules/.bin/eslint_d create mode 100644 test/test-files/eslint/node_modules/.bin/eslint create mode 100644 test/test-files/eslint/other-app/subdir/testfile.js create mode 100644 test/test-files/eslint/package.json create mode 100644 test/test-files/eslint/react-app/.eslintrc.js create mode 100644 test/test-files/eslint/react-app/node_modules/eslint/bin/eslint.js create mode 100644 test/test-files/eslint/react-app/node_modules/standard/bin/cmd.js create mode 100644 test/test-files/eslint/react-app/node_modules/stylelint/bin/stylelint.js create mode 100644 test/test-files/eslint/react-app/node_modules/xo/cli.js create mode 100644 test/test-files/eslint/react-app/subdir-with-config/.eslintrc create mode 100644 test/test-files/eslint/react-app/subdir-with-package-json/node_modules/.gitkeep create mode 100644 test/test-files/eslint/react-app/subdir-with-package-json/package.json create mode 100644 test/test-files/eslint/react-app/subdir/testfile.css create mode 100644 test/test-files/eslint/react-app/subdir/testfile.js create mode 100644 test/test-files/eslint/react-app/subdir/testfile.ts create mode 100755 test/test-files/fecs/fecs create mode 100755 test/test-files/fecs/fecs.exe create mode 100644 test/test-files/fish/testfile.fish create mode 100644 test/test-files/flow/a/.flowconfig create mode 100644 test/test-files/flow/a/sub/dummy create mode 100644 test/test-files/flow/b/sub/dummy create mode 100644 test/test-files/fortls-project/.fortls create mode 100644 test/test-files/go/go.mod create mode 100644 test/test-files/go/go1/prj1/file.go create mode 100644 test/test-files/go/go2/prj2/file.go create mode 100644 test/test-files/go/testfile.go create mode 100644 test/test-files/go/testfile2.go create mode 100644 test/test-files/gradle/build-gradle-project/build.gradle create mode 100644 test/test-files/gradle/build-gradle-project/src/main/kotlin/dummy.kt create mode 100755 test/test-files/gradle/gradle create mode 100644 test/test-files/gradle/non-gradle-project/src/main/kotlin/dummy.kt create mode 100644 test/test-files/gradle/settings-gradle-project/settings.gradle create mode 100644 test/test-files/gradle/settings-gradle-project/src/main/kotlin/dummy.kt create mode 100644 test/test-files/gradle/unwrapped-project/build.gradle create mode 100644 test/test-files/gradle/unwrapped-project/settings.gradle create mode 100644 test/test-files/gradle/unwrapped-project/src/main/kotlin/dummy.kt create mode 100644 test/test-files/gradle/wrapped-project/build.gradle create mode 100644 test/test-files/gradle/wrapped-project/gradlew create mode 100644 test/test-files/gradle/wrapped-project/settings.gradle create mode 100644 test/test-files/gradle/wrapped-project/src/main/kotlin/dummy.kt create mode 100644 test/test-files/hamllint/haml-lint-and-rubocop/.haml-lint.yml create mode 100644 test/test-files/hamllint/haml-lint-and-rubocop/.rubocop.yml create mode 100644 test/test-files/hamllint/haml-lint-and-rubocop/subdir/file.haml create mode 100644 test/test-files/hamllint/haml-lint-yml/.haml-lint.yml create mode 100644 test/test-files/hamllint/haml-lint-yml/subdir/file.haml create mode 100644 test/test-files/hamllint/rubocop-yml/.rubocop.yml create mode 100644 test/test-files/hamllint/rubocop-yml/subdir/file.haml create mode 100644 test/test-files/hdl_server/foo.vhd create mode 100644 test/test-files/hdl_server/with_config_file/.hdl_checker.config create mode 100644 test/test-files/hdl_server/with_config_file/_hdl_checker.config create mode 100644 test/test-files/hdl_server/with_config_file/foo.vhd create mode 100644 test/test-files/hdl_server/with_git/files/foo.vhd create mode 100755 test/test-files/html_beautify/html-beautify create mode 100644 test/test-files/html_beautify/test.html create mode 100755 test/test-files/htmlhint/node_modules/.bin/htmlhint create mode 100644 test/test-files/htmlhint/with_config/.htmlhintrc create mode 100644 test/test-files/ink/story/main.ink create mode 100644 test/test-files/inko/test.inko create mode 100644 test/test-files/inko/tests/test/test_foo.inko create mode 100644 test/test-files/java/no_main/src/test/java/com/something/dummy create mode 100644 test/test-files/java/with_jaxb/src/main/java/com/something/dummy create mode 100644 test/test-files/java/with_jaxb/src/main/jaxb/com/something/dummy create mode 100644 test/test-files/java/with_main/build/gen/main/java/com/something/dummy create mode 100644 test/test-files/java/with_main/build/gen2/main/java/com/something/dummy create mode 100644 test/test-files/java/with_main/src/main/java/com/something/dummy create mode 100644 test/test-files/java/with_main/src/test/java/com/something/dummy create mode 100644 test/test-files/javascript/test.js create mode 100644 test/test-files/json/testfile.json create mode 100644 test/test-files/jsonlint/app-without-jsonlint/src/app.json create mode 100644 test/test-files/jsonlint/app/node_modules/.bin/jsonlint create mode 100644 test/test-files/jsonlint/app/src/app.json create mode 100644 test/test-files/jsonlint/node_modules/jsonlint/lib/cli.js create mode 100644 test/test-files/julia/REQUIRE create mode 100644 test/test-files/julia/test.jl create mode 100644 test/test-files/kotlin/testfile.kt create mode 100755 test/test-files/lessc/node_modules/.bin/lessc create mode 100644 test/test-files/long-line/setup.cfg create mode 100644 test/test-files/lua/testfile.lua create mode 100644 test/test-files/markdown/testfile.md create mode 100755 test/test-files/maven/maven-java-project/module1/mvnw create mode 100755 test/test-files/maven/maven-java-project/module1/mvnw.cmd create mode 100644 test/test-files/maven/maven-java-project/module1/pom.xml create mode 100644 test/test-files/maven/maven-java-project/module1/src/main/java/dummy1.java create mode 100644 test/test-files/maven/maven-java-project/module2/pom.xml create mode 100644 test/test-files/maven/maven-java-project/module2/src/main/java/dummy2.java create mode 100644 test/test-files/maven/maven-kotlin-project/pom.xml create mode 100644 test/test-files/maven/maven-kotlin-project/src/main/kotlin/dummy.kt create mode 100755 test/test-files/maven/mvn create mode 100644 test/test-files/maven/non-maven-project/src/main/java/dummy.java create mode 100644 test/test-files/nim/with-git/src/source.nim create mode 100644 test/test-files/ocaml/testfile.ml create mode 100644 test/test-files/ocamllsp/dune-project create mode 100644 test/test-files/ols/.merlin create mode 100644 test/test-files/ols/node_modules/.bin/ocaml-language-server create mode 100644 test/test-files/php/project-with-php-cs-fixer/test.php create mode 100644 test/test-files/php/project-with-php-cs-fixer/vendor/bin/php-cs-fixer create mode 100644 test/test-files/php/project-with-phpcbf/foo/test.php create mode 100644 test/test-files/php/project-with-phpcbf/vendor/bin/phpcbf create mode 100644 test/test-files/php/project-without-php-cs-fixer/test.php create mode 100644 test/test-files/php/project-without-phpcbf/foo/test.php create mode 100755 test/test-files/php/vendor/bin/php-language-server.php create mode 100644 test/test-files/php/with-composer/composer.json create mode 100755 test/test-files/php/with-composer/vendor/bin/php-language-server.php create mode 100755 test/test-files/php/with-git/vendor/bin/php-language-server.php create mode 100644 test/test-files/phpcs/project-with-phpcs/foo/test.php create mode 100644 test/test-files/phpcs/project-with-phpcs/vendor/bin/phpcs create mode 100644 test/test-files/phpcs/project-without-phpcs/foo/test.php create mode 100644 test/test-files/prettier/testfile create mode 100644 test/test-files/prettier/testfile.css create mode 100644 test/test-files/prettier/testfile.js create mode 100644 test/test-files/prettier/testfile.json create mode 100644 test/test-files/prettier/testfile.scss create mode 100644 test/test-files/prettier/testfile.ts create mode 100644 test/test-files/prettier/with_config/.prettierrc create mode 100644 test/test-files/prettier/with_config/testfile.js create mode 100644 test/test-files/prettier/with_prettierignore/.prettierignore create mode 100644 test/test-files/prettier/with_prettierignore/src/testfile.js create mode 100755 test/test-files/psalm/vendor/bin/psalm create mode 100644 test/test-files/puglint/node_modules/.bin/pug-lint create mode 100644 test/test-files/puglint/package.json create mode 100644 test/test-files/puglint/puglint_rc_dir/.pug-lintrc create mode 100644 test/test-files/puglint/puglint_rc_js_dir/.pug-lintrc.js create mode 100644 test/test-files/puglint/puglint_rc_json_dir/.pug-lintrc.json create mode 100644 test/test-files/puppet/dummy.pp create mode 100644 test/test-files/puppet/new-style-module/lib/puppet/types/exampletype.rb create mode 100644 test/test-files/puppet/new-style-module/metadata.json create mode 100644 test/test-files/puppet/new-style-module/template/template.epp create mode 100644 test/test-files/puppet/old-style-module/manifests/init.pp create mode 100644 test/test-files/puppet/old-style-module/templates/template.epp create mode 100644 test/test-files/purescript/bower/Foo.purs create mode 100644 test/test-files/purescript/bower/bower.json create mode 100644 test/test-files/purescript/psc-package/Foo.purs create mode 100644 test/test-files/purescript/psc-package/psc-package.json create mode 100644 test/test-files/purescript/spago/Foo.purs create mode 100644 test/test-files/purescript/spago/spago.dhall create mode 100644 test/test-files/python/namespace_package_manifest/MANIFEST.in create mode 100644 test/test-files/python/namespace_package_manifest/namespace/foo/__init__.py create mode 100644 test/test-files/python/namespace_package_manifest/namespace/foo/bar.py create mode 100644 test/test-files/python/namespace_package_pytest/namespace/foo/__init__.py create mode 100644 test/test-files/python/namespace_package_pytest/namespace/foo/bar.py create mode 100644 test/test-files/python/namespace_package_pytest/pytest.ini create mode 100644 test/test-files/python/namespace_package_setup/namespace/foo/__init__.py create mode 100644 test/test-files/python/namespace_package_setup/namespace/foo/bar.py create mode 100644 test/test-files/python/namespace_package_setup/setup.cfg create mode 100644 test/test-files/python/namespace_package_tox/namespace/foo/__init__.py create mode 100644 test/test-files/python/namespace_package_tox/namespace/foo/bar.py create mode 100644 test/test-files/python/namespace_package_tox/tox.ini create mode 100644 test/test-files/python/no_virtualenv/subdir/foo/COMMIT_EDITMSG create mode 100644 test/test-files/python/no_virtualenv/subdir/foo/__init__.py create mode 100644 test/test-files/python/no_virtualenv/subdir/foo/bar.py create mode 100644 test/test-files/python/pipenv/Pipfile.lock create mode 100644 test/test-files/python/python-package-project/.flake8 create mode 100644 test/test-files/python/python-package-project/package-name/module.py create mode 100644 test/test-files/python/with_bandit/.bandit create mode 100644 test/test-files/python/with_bandit/namespace/foo/__init__.py create mode 100644 test/test-files/python/with_bandit/namespace/foo/bar.py create mode 100644 test/test-files/python/with_mypy_ini_and_pytest_ini/mypy.ini create mode 100644 test/test-files/python/with_mypy_ini_and_pytest_ini/tests/pytest.ini create mode 100644 test/test-files/python/with_mypy_ini_and_pytest_ini/tests/testsubfolder/my_tests.py create mode 100644 test/test-files/python/with_virtualenv/dir_with_yapf_config/.style.yapf create mode 100644 test/test-files/python/with_virtualenv/env/Scripts/activate create mode 100755 test/test-files/python/with_virtualenv/env/Scripts/autoimport.exe create mode 100755 test/test-files/python/with_virtualenv/env/Scripts/autopep8.exe create mode 100755 test/test-files/python/with_virtualenv/env/Scripts/black.exe create mode 100755 test/test-files/python/with_virtualenv/env/Scripts/flake8.exe create mode 100755 test/test-files/python/with_virtualenv/env/Scripts/gitlint.exe create mode 100755 test/test-files/python/with_virtualenv/env/Scripts/isort.exe create mode 100755 test/test-files/python/with_virtualenv/env/Scripts/mypy.exe create mode 100755 test/test-files/python/with_virtualenv/env/Scripts/pyflakes.exe create mode 100755 test/test-files/python/with_virtualenv/env/Scripts/pylama.exe create mode 100755 test/test-files/python/with_virtualenv/env/Scripts/pylint.exe create mode 100755 test/test-files/python/with_virtualenv/env/Scripts/pyls.exe create mode 100755 test/test-files/python/with_virtualenv/env/Scripts/pyre.exe create mode 100755 test/test-files/python/with_virtualenv/env/Scripts/reorder-python-imports.exe create mode 100755 test/test-files/python/with_virtualenv/env/Scripts/vulture.exe create mode 100644 test/test-files/python/with_virtualenv/env/Scripts/yamlfix.exe create mode 100755 test/test-files/python/with_virtualenv/env/Scripts/yapf.exe create mode 100644 test/test-files/python/with_virtualenv/env/bin/activate create mode 100755 test/test-files/python/with_virtualenv/env/bin/autoimport create mode 100755 test/test-files/python/with_virtualenv/env/bin/autopep8 create mode 100755 test/test-files/python/with_virtualenv/env/bin/black create mode 100755 test/test-files/python/with_virtualenv/env/bin/flake8 create mode 100755 test/test-files/python/with_virtualenv/env/bin/gitlint create mode 100755 test/test-files/python/with_virtualenv/env/bin/isort create mode 100755 test/test-files/python/with_virtualenv/env/bin/mypy create mode 100755 test/test-files/python/with_virtualenv/env/bin/pyflakes create mode 100755 test/test-files/python/with_virtualenv/env/bin/pylama create mode 100755 test/test-files/python/with_virtualenv/env/bin/pylint create mode 100755 test/test-files/python/with_virtualenv/env/bin/pyls create mode 100755 test/test-files/python/with_virtualenv/env/bin/pyre create mode 100755 test/test-files/python/with_virtualenv/env/bin/reorder-python-imports create mode 100755 test/test-files/python/with_virtualenv/env/bin/vulture create mode 100755 test/test-files/python/with_virtualenv/env/bin/yamlfix create mode 100755 test/test-files/python/with_virtualenv/env/bin/yapf create mode 100644 test/test-files/python/with_virtualenv/subdir/foo/COMMIT_EDITMSG create mode 100644 test/test-files/python/with_virtualenv/subdir/foo/__init__.py create mode 100644 test/test-files/python/with_virtualenv/subdir/foo/bar.py create mode 100644 test/test-files/python/with_virtualenv/subdir/foo/bar.pyi create mode 100644 test/test-files/r/.Rprofile create mode 100644 test/test-files/reasonml/bsconfig.json create mode 100644 test/test-files/reasonml/testfile.re create mode 100755 test/test-files/remark_lint/with_bin_path/node_modules/.bin/remark create mode 100644 test/test-files/ruby/dummy.rb create mode 100644 test/test-files/ruby/not_a_rails_app/file.rb create mode 100644 test/test-files/ruby/valid_rails_app/app/dummy.rb create mode 100644 test/test-files/ruby/valid_rails_app/app/models/thing.rb create mode 100644 test/test-files/ruby/valid_rails_app/app/views/my_great_view.html.erb create mode 100644 test/test-files/ruby/valid_rails_app/config/dummy.rb create mode 100644 test/test-files/ruby/valid_rails_app/db/dummy.rb create mode 100644 test/test-files/ruby/valid_ruby_app1/Rakefile create mode 100644 test/test-files/ruby/valid_ruby_app1/lib/file.rb create mode 100644 test/test-files/ruby/valid_ruby_app2/Gemfile create mode 100644 test/test-files/ruby/valid_ruby_app2/lib/file.rb create mode 100644 test/test-files/ruby/valid_ruby_app3/.solargraph.yml create mode 100644 test/test-files/ruby/valid_ruby_app3/lib/file.rb create mode 100644 test/test-files/ruby/with_config/.rubocop.yml create mode 100644 test/test-files/ruby/with_config/.standard.yml create mode 100644 test/test-files/rust/Cargo.toml create mode 100644 test/test-files/rust/testfile.rs create mode 100755 test/test-files/sasslint/with-bin/node_modules/.bin/sass-lint create mode 100755 test/test-files/sasslint/with-source/node_modules/sass-lint/bin/sass-lint.js create mode 100644 test/test-files/scala/dummy.scala create mode 100644 test/test-files/scala/invalid_sbt_project/Main.scala create mode 100644 test/test-files/scala/valid_sbt_project/Main.scala create mode 100644 test/test-files/scala/valid_sbt_project/build.sbt create mode 100644 test/test-files/slimlint/.rubocop.yml create mode 100644 test/test-files/slimlint/subdir/file.slim create mode 100644 test/test-files/smlnj/cm/foo.sml create mode 100644 test/test-files/smlnj/cm/path/to/bar.sml create mode 100644 test/test-files/smlnj/cm/sources.cm create mode 100644 test/test-files/smlnj/file/qux.sml create mode 100644 test/test-files/spectral/node_modules/.bin/spectral create mode 100644 test/test-files/spectral/openapi.yaml create mode 100644 test/test-files/stack/stack.yaml create mode 100755 test/test-files/standard/with-bin/node_modules/.bin/standard create mode 100755 test/test-files/standard/with-cmd/node_modules/standard/bin/cmd.js create mode 100755 test/test-files/stylelint/node_modules/.bin/stylelint create mode 100644 test/test-files/swaglint/docs/swagger.yaml create mode 100644 test/test-files/swaglint/node_modules/.bin/swaglint create mode 100644 test/test-files/swift/dummy.swift create mode 100644 test/test-files/swift/non-swift-package-project/src/folder/dummy.swift create mode 100644 test/test-files/swift/swift-package-project/Package.swift create mode 100644 test/test-files/swift/swift-package-project/src/folder/dummy.swift create mode 100644 test/test-files/swiftlint/cocoapods-and-react-native/Pods/SwiftLint/swiftlint create mode 100644 test/test-files/swiftlint/cocoapods-and-react-native/ios/Pods/SwiftLint/swiftlint create mode 100644 test/test-files/swiftlint/cocoapods/Pods/SwiftLint/swiftlint create mode 100644 test/test-files/swiftlint/react-native/ios/Pods/SwiftLint/swiftlint create mode 100644 test/test-files/terraform/main.tf create mode 100644 test/test-files/tex/sample1.tex create mode 100644 test/test-files/tex/sample2.tex create mode 100644 test/test-files/tex/testfile.tex create mode 100755 test/test-files/textlint/with_bin_path/node_modules/.bin/textlint create mode 100755 test/test-files/textlint/with_textlint_bin_path/node_modules/textlint/bin/textlint.js create mode 100644 test/test-files/tflint/foo/.tflint.hcl create mode 100644 test/test-files/tflint/foo/bar.tf create mode 100644 test/test-files/tidy/.tidyrc create mode 100644 test/test-files/tidy/test.html create mode 100755 test/test-files/tidy/tidy create mode 100755 test/test-files/tidy/tidy.exe create mode 100644 test/test-files/top/ale-special-directory-name-dont-use-this-please/empty-file create mode 100644 test/test-files/top/example.ini create mode 100644 test/test-files/top/middle/bottom/dummy.txt create mode 100644 test/test-files/tsserver/src/file1.ts create mode 100644 test/test-files/tsserver/src/level-1/file2.ts create mode 100644 test/test-files/tsserver/src/level-1/level-2/file3.ts create mode 100644 test/test-files/tsserver/src/level-1/tsconfig.json create mode 100644 test/test-files/tsserver/tsconfig.json create mode 100644 test/test-files/typescript/test.ts create mode 100644 test/test-files/typescript/tsconfig.json create mode 100644 test/test-files/vim/invalid_vim_project/test.vim create mode 100644 test/test-files/vim/node_modules/.bin/vim-language-server create mode 100644 test/test-files/vim/path_with_autoload/autoload/test.vim create mode 100644 test/test-files/vim/path_with_autoload/test.vim create mode 100644 test/test-files/vim/path_with_initvim/init.vim create mode 100644 test/test-files/vim/path_with_plugin/plugin/test.vim create mode 100644 test/test-files/vim/path_with_plugin/test.vim create mode 100644 test/test-files/vim/path_with_vimrc/.vimrc create mode 100644 test/test-files/write-good/node-modules-2/node_modules/write-good/bin/write-good.js create mode 100644 test/test-files/write-good/node-modules/node_modules/.bin/write-good create mode 100644 test/test-files/xo/monorepo/node_modules/xo/cli.js create mode 100644 test/test-files/xo/monorepo/package.json create mode 100644 test/test-files/xo/monorepo/packages/a/index.js create mode 100644 test/test-files/xo/monorepo/packages/a/index.ts create mode 100644 test/test-files/xo/monorepo/packages/a/package.json create mode 100644 test/test-files/zig/build.zig delete mode 100644 test/test-projects/angular/node_modules/@angular/language-server/bin/ngserver delete mode 100644 test/test-projects/angular/node_modules/@angular/language-service/dummy delete mode 100644 test/test_c_projects/build_compile_commands_project/build/bad_folder_to_test_priority delete mode 100644 test/test_c_projects/build_compile_commands_project/build/compile_commands.json delete mode 100644 test/test_c_projects/configure_project/Makefile delete mode 100644 test/test_c_projects/configure_project/configure delete mode 100644 test/test_c_projects/configure_project/include/test.h delete mode 100644 test/test_c_projects/configure_project/subdir/Makefile delete mode 100644 test/test_c_projects/git_and_nested_makefiles/include/test.h delete mode 100644 test/test_c_projects/git_and_nested_makefiles/src/Makefile delete mode 100644 test/test_c_projects/gnumakefile_project/GNUmakefile delete mode 100644 test/test_c_projects/gnumakefile_project/file.c delete mode 100644 test/test_c_projects/h_file_project/Makefile delete mode 100644 test/test_c_projects/h_file_project/subdir/dummy delete mode 100644 test/test_c_projects/h_file_project/test.h delete mode 100644 test/test_c_projects/hpp_file_project/Makefile delete mode 100644 test/test_c_projects/hpp_file_project/subdir/dummy delete mode 100644 test/test_c_projects/hpp_file_project/test.hpp delete mode 100644 test/test_c_projects/json_project/build/compile_commands.json delete mode 100644 test/test_c_projects/json_project/include/test.h delete mode 100644 test/test_c_projects/json_project/subdir/dummy delete mode 100644 test/test_c_projects/makefile_project/Makefile delete mode 100644 test/test_c_projects/makefile_project/_astylerc delete mode 100644 test/test_c_projects/makefile_project/args delete mode 100644 test/test_c_projects/makefile_project/include/test.h delete mode 100644 test/test_c_projects/makefile_project/subdir/args delete mode 100644 test/test_c_projects/makefile_project/subdir/dummy delete mode 100644 test/test_c_projects/makefile_project/subdir/file.c delete mode 100644 test/test_cpp_project/.astylerc delete mode 100644 test/test_cpp_project/dummy.cpp delete mode 100644 test/test_flow_command.vader delete mode 100644 test/test_kotlin_languageserver_path_detection.vader delete mode 100644 test/test_swiftlint_executable_detection.vader delete mode 100644 test/tex_files/testfile.tex delete mode 100644 test/tflint-test-files/foo/.tflint.hcl delete mode 100644 test/tflint-test-files/foo/bar.tf delete mode 100644 test/top/ale-special-directory-name-dont-use-this-please/empty-file delete mode 100644 test/top/example.ini delete mode 100644 test/top/middle/bottom/dummy.txt delete mode 100644 test/typescript/test.ts delete mode 100644 test/typescript/tsconfig.json delete mode 100644 test/xo-test-files/monorepo/node_modules/xo/cli.js delete mode 100644 test/xo-test-files/monorepo/package.json delete mode 100644 test/xo-test-files/monorepo/packages/a/index.js delete mode 100644 test/xo-test-files/monorepo/packages/a/index.ts delete mode 100644 test/xo-test-files/monorepo/packages/a/package.json (limited to 'test') diff --git a/test/ada_files/testfile.adb b/test/ada_files/testfile.adb deleted file mode 100644 index e69de29b..00000000 diff --git a/test/ant-test-files/ant-project/build.xml b/test/ant-test-files/ant-project/build.xml deleted file mode 100644 index e69de29b..00000000 diff --git a/test/ant-test-files/bin/ant b/test/ant-test-files/bin/ant deleted file mode 100755 index e69de29b..00000000 diff --git a/test/ant-test-files/bin/ant.exe b/test/ant-test-files/bin/ant.exe deleted file mode 100755 index e69de29b..00000000 diff --git a/test/command_callback/alex-node-modules-2/node_modules/alex/cli.js b/test/command_callback/alex-node-modules-2/node_modules/alex/cli.js deleted file mode 100644 index e69de29b..00000000 diff --git a/test/command_callback/alex-node-modules/node_modules/.bin/alex b/test/command_callback/alex-node-modules/node_modules/.bin/alex deleted file mode 100644 index e69de29b..00000000 diff --git a/test/command_callback/bazel_paths/BUILD b/test/command_callback/bazel_paths/BUILD deleted file mode 100644 index e69de29b..00000000 diff --git a/test/command_callback/bazel_paths/WORKSPACE b/test/command_callback/bazel_paths/WORKSPACE deleted file mode 100644 index e69de29b..00000000 diff --git a/test/command_callback/bazel_paths/defs.bzl b/test/command_callback/bazel_paths/defs.bzl deleted file mode 100644 index e69de29b..00000000 diff --git a/test/command_callback/bib_paths/dummy.bib b/test/command_callback/bib_paths/dummy.bib deleted file mode 100644 index e69de29b..00000000 diff --git a/test/command_callback/c_paths/dummy.c b/test/command_callback/c_paths/dummy.c deleted file mode 100644 index e69de29b..00000000 diff --git a/test/command_callback/cargo_paths/Cargo.toml b/test/command_callback/cargo_paths/Cargo.toml deleted file mode 100644 index e69de29b..00000000 diff --git a/test/command_callback/cargo_workspace_paths/Cargo.toml b/test/command_callback/cargo_workspace_paths/Cargo.toml deleted file mode 100644 index e69de29b..00000000 diff --git a/test/command_callback/cargo_workspace_paths/subpath/Cargo.toml b/test/command_callback/cargo_workspace_paths/subpath/Cargo.toml deleted file mode 100644 index e69de29b..00000000 diff --git a/test/command_callback/ccls_paths/with_build_dir/unusual_build_dir_name/compile_commands.json b/test/command_callback/ccls_paths/with_build_dir/unusual_build_dir_name/compile_commands.json deleted file mode 100644 index e69de29b..00000000 diff --git a/test/command_callback/ccls_paths/with_ccls-root/.ccls-root b/test/command_callback/ccls_paths/with_ccls-root/.ccls-root deleted file mode 100644 index e69de29b..00000000 diff --git a/test/command_callback/ccls_paths/with_ccls/.ccls b/test/command_callback/ccls_paths/with_ccls/.ccls deleted file mode 100644 index e69de29b..00000000 diff --git a/test/command_callback/ccls_paths/with_compile_commands_json/compile_commands.json b/test/command_callback/ccls_paths/with_compile_commands_json/compile_commands.json deleted file mode 100644 index e69de29b..00000000 diff --git a/test/command_callback/checkstyle_paths/other_config.xml b/test/command_callback/checkstyle_paths/other_config.xml deleted file mode 100644 index e69de29b..00000000 diff --git a/test/command_callback/clangd_paths/with_build_dir/unusual_build_dir_name/compile_commands.json b/test/command_callback/clangd_paths/with_build_dir/unusual_build_dir_name/compile_commands.json deleted file mode 100644 index e69de29b..00000000 diff --git a/test/command_callback/clangd_paths/with_compile_commands/compile_commands.json b/test/command_callback/clangd_paths/with_compile_commands/compile_commands.json deleted file mode 100644 index e69de29b..00000000 diff --git a/test/command_callback/clangformat_paths/with_clangformat/.clang-format b/test/command_callback/clangformat_paths/with_clangformat/.clang-format deleted file mode 100644 index e69de29b..00000000 diff --git a/test/command_callback/cppcheck_paths/one/compile_commands.json b/test/command_callback/cppcheck_paths/one/compile_commands.json deleted file mode 100644 index e69de29b..00000000 diff --git a/test/command_callback/cppcheck_paths/one/two/three/file.c b/test/command_callback/cppcheck_paths/one/two/three/file.c deleted file mode 100644 index e69de29b..00000000 diff --git a/test/command_callback/cppcheck_paths/one/two/three/file.cpp b/test/command_callback/cppcheck_paths/one/two/three/file.cpp deleted file mode 100644 index e69de29b..00000000 diff --git a/test/command_callback/cppcheck_paths/with_build_dir/build/compile_commands.json b/test/command_callback/cppcheck_paths/with_build_dir/build/compile_commands.json deleted file mode 100644 index e69de29b..00000000 diff --git a/test/command_callback/cquery_paths/build/compile_commands.json b/test/command_callback/cquery_paths/build/compile_commands.json deleted file mode 100644 index e69de29b..00000000 diff --git a/test/command_callback/cquery_paths/with_cquery/.cquery b/test/command_callback/cquery_paths/with_cquery/.cquery deleted file mode 100644 index e69de29b..00000000 diff --git a/test/command_callback/dart_paths/.packages b/test/command_callback/dart_paths/.packages deleted file mode 100644 index e69de29b..00000000 diff --git a/test/command_callback/elixir_paths/mix_project/lib/app.ex b/test/command_callback/elixir_paths/mix_project/lib/app.ex deleted file mode 100644 index e69de29b..00000000 diff --git a/test/command_callback/elixir_paths/mix_project/mix.exs b/test/command_callback/elixir_paths/mix_project/mix.exs deleted file mode 100644 index 419685ae..00000000 --- a/test/command_callback/elixir_paths/mix_project/mix.exs +++ /dev/null @@ -1,3 +0,0 @@ -defmodule Test.MixProject do - # fake mix project file -end diff --git a/test/command_callback/elixir_paths/umbrella_project/apps/app1/lib/app.ex b/test/command_callback/elixir_paths/umbrella_project/apps/app1/lib/app.ex deleted file mode 100644 index e69de29b..00000000 diff --git a/test/command_callback/elixir_paths/umbrella_project/apps/app1/mix.exs b/test/command_callback/elixir_paths/umbrella_project/apps/app1/mix.exs deleted file mode 100644 index e69de29b..00000000 diff --git a/test/command_callback/elixir_paths/umbrella_project/apps/app2/lib/app.ex b/test/command_callback/elixir_paths/umbrella_project/apps/app2/lib/app.ex deleted file mode 100644 index e69de29b..00000000 diff --git a/test/command_callback/elixir_paths/umbrella_project/apps/app2/mix.exs b/test/command_callback/elixir_paths/umbrella_project/apps/app2/mix.exs deleted file mode 100644 index e69de29b..00000000 diff --git a/test/command_callback/elixir_paths/umbrella_project/mix.exs b/test/command_callback/elixir_paths/umbrella_project/mix.exs deleted file mode 100644 index e69de29b..00000000 diff --git a/test/command_callback/fecs_paths/fecs b/test/command_callback/fecs_paths/fecs deleted file mode 100755 index e69de29b..00000000 diff --git a/test/command_callback/fecs_paths/fecs.exe b/test/command_callback/fecs_paths/fecs.exe deleted file mode 100755 index e69de29b..00000000 diff --git a/test/command_callback/fortran-fortls-project/.fortls b/test/command_callback/fortran-fortls-project/.fortls deleted file mode 100644 index 2c63c085..00000000 --- a/test/command_callback/fortran-fortls-project/.fortls +++ /dev/null @@ -1,2 +0,0 @@ -{ -} diff --git a/test/command_callback/go_paths/go1/prj1/file.go b/test/command_callback/go_paths/go1/prj1/file.go deleted file mode 100644 index e69de29b..00000000 diff --git a/test/command_callback/go_paths/go2/prj2/file.go b/test/command_callback/go_paths/go2/prj2/file.go deleted file mode 100644 index e69de29b..00000000 diff --git a/test/command_callback/hdl_server/foo.vhd b/test/command_callback/hdl_server/foo.vhd deleted file mode 100644 index e69de29b..00000000 diff --git a/test/command_callback/hdl_server/with_config_file/.hdl_checker.config b/test/command_callback/hdl_server/with_config_file/.hdl_checker.config deleted file mode 100644 index e69de29b..00000000 diff --git a/test/command_callback/hdl_server/with_config_file/_hdl_checker.config b/test/command_callback/hdl_server/with_config_file/_hdl_checker.config deleted file mode 100644 index e69de29b..00000000 diff --git a/test/command_callback/hdl_server/with_config_file/foo.vhd b/test/command_callback/hdl_server/with_config_file/foo.vhd deleted file mode 100644 index e69de29b..00000000 diff --git a/test/command_callback/hdl_server/with_git/files/foo.vhd b/test/command_callback/hdl_server/with_git/files/foo.vhd deleted file mode 100644 index 8b137891..00000000 --- a/test/command_callback/hdl_server/with_git/files/foo.vhd +++ /dev/null @@ -1 +0,0 @@ - diff --git a/test/command_callback/html_beautify_paths/html-beautify b/test/command_callback/html_beautify_paths/html-beautify deleted file mode 100755 index e69de29b..00000000 diff --git a/test/command_callback/html_beautify_paths/test.html b/test/command_callback/html_beautify_paths/test.html deleted file mode 100644 index e69de29b..00000000 diff --git a/test/command_callback/htmlhint_paths/node_modules/.bin/htmlhint b/test/command_callback/htmlhint_paths/node_modules/.bin/htmlhint deleted file mode 100755 index e69de29b..00000000 diff --git a/test/command_callback/htmlhint_paths/with_config/.htmlhintrc b/test/command_callback/htmlhint_paths/with_config/.htmlhintrc deleted file mode 100644 index e69de29b..00000000 diff --git a/test/command_callback/ink_paths/story/main.ink b/test/command_callback/ink_paths/story/main.ink deleted file mode 100644 index e69de29b..00000000 diff --git a/test/command_callback/inko_paths/test.inko b/test/command_callback/inko_paths/test.inko deleted file mode 100644 index e69de29b..00000000 diff --git a/test/command_callback/inko_paths/tests/test/test_foo.inko b/test/command_callback/inko_paths/tests/test/test_foo.inko deleted file mode 100644 index e69de29b..00000000 diff --git a/test/command_callback/java_paths/build/gen/main/java/com/something/dummy b/test/command_callback/java_paths/build/gen/main/java/com/something/dummy deleted file mode 100644 index e69de29b..00000000 diff --git a/test/command_callback/java_paths/build/gen2/main/java/com/something/dummy b/test/command_callback/java_paths/build/gen2/main/java/com/something/dummy deleted file mode 100644 index e69de29b..00000000 diff --git a/test/command_callback/java_paths/src/main/java/com/something/dummy b/test/command_callback/java_paths/src/main/java/com/something/dummy deleted file mode 100644 index e69de29b..00000000 diff --git a/test/command_callback/java_paths/src/test/java/com/something/dummy b/test/command_callback/java_paths/src/test/java/com/something/dummy deleted file mode 100644 index e69de29b..00000000 diff --git a/test/command_callback/java_paths_no_main/src/test/java/com/something/dummy b/test/command_callback/java_paths_no_main/src/test/java/com/something/dummy deleted file mode 100644 index e69de29b..00000000 diff --git a/test/command_callback/java_paths_with_jaxb/src/main/java/com/something/dummy b/test/command_callback/java_paths_with_jaxb/src/main/java/com/something/dummy deleted file mode 100644 index e69de29b..00000000 diff --git a/test/command_callback/java_paths_with_jaxb/src/main/jaxb/com/something/dummy b/test/command_callback/java_paths_with_jaxb/src/main/jaxb/com/something/dummy deleted file mode 100644 index e69de29b..00000000 diff --git a/test/command_callback/julia-languageserver-project/REQUIRE b/test/command_callback/julia-languageserver-project/REQUIRE deleted file mode 100644 index e69de29b..00000000 diff --git a/test/command_callback/julia-languageserver-project/test.jl b/test/command_callback/julia-languageserver-project/test.jl deleted file mode 100644 index e69de29b..00000000 diff --git a/test/command_callback/lessc_paths/node_modules/.bin/lessc b/test/command_callback/lessc_paths/node_modules/.bin/lessc deleted file mode 100755 index e69de29b..00000000 diff --git a/test/command_callback/ocamllsp_paths/dune-project b/test/command_callback/ocamllsp_paths/dune-project deleted file mode 100644 index e69de29b..00000000 diff --git a/test/command_callback/ols_paths/.merlin b/test/command_callback/ols_paths/.merlin deleted file mode 100644 index e69de29b..00000000 diff --git a/test/command_callback/ols_paths/node_modules/.bin/ocaml-language-server b/test/command_callback/ols_paths/node_modules/.bin/ocaml-language-server deleted file mode 100644 index e69de29b..00000000 diff --git a/test/command_callback/php-intelephense-project/with-composer/composer.json b/test/command_callback/php-intelephense-project/with-composer/composer.json deleted file mode 100644 index e69de29b..00000000 diff --git a/test/command_callback/php-langserver-project/vendor/bin/php-language-server.php b/test/command_callback/php-langserver-project/vendor/bin/php-language-server.php deleted file mode 100755 index e69de29b..00000000 diff --git a/test/command_callback/php-langserver-project/with-composer/composer.json b/test/command_callback/php-langserver-project/with-composer/composer.json deleted file mode 100644 index e69de29b..00000000 diff --git a/test/command_callback/php-langserver-project/with-composer/vendor/bin/php-language-server.php b/test/command_callback/php-langserver-project/with-composer/vendor/bin/php-language-server.php deleted file mode 100755 index e69de29b..00000000 diff --git a/test/command_callback/php-langserver-project/with-git/vendor/bin/php-language-server.php b/test/command_callback/php-langserver-project/with-git/vendor/bin/php-language-server.php deleted file mode 100755 index e69de29b..00000000 diff --git a/test/command_callback/php_paths/project-with-php-cs-fixer/test.php b/test/command_callback/php_paths/project-with-php-cs-fixer/test.php deleted file mode 100644 index e69de29b..00000000 diff --git a/test/command_callback/php_paths/project-with-php-cs-fixer/vendor/bin/php-cs-fixer b/test/command_callback/php_paths/project-with-php-cs-fixer/vendor/bin/php-cs-fixer deleted file mode 100644 index e69de29b..00000000 diff --git a/test/command_callback/php_paths/project-with-phpcbf/foo/test.php b/test/command_callback/php_paths/project-with-phpcbf/foo/test.php deleted file mode 100644 index e69de29b..00000000 diff --git a/test/command_callback/php_paths/project-with-phpcbf/vendor/bin/phpcbf b/test/command_callback/php_paths/project-with-phpcbf/vendor/bin/phpcbf deleted file mode 100644 index e69de29b..00000000 diff --git a/test/command_callback/php_paths/project-without-php-cs-fixer/test.php b/test/command_callback/php_paths/project-without-php-cs-fixer/test.php deleted file mode 100644 index e69de29b..00000000 diff --git a/test/command_callback/php_paths/project-without-phpcbf/foo/test.php b/test/command_callback/php_paths/project-without-phpcbf/foo/test.php deleted file mode 100644 index e69de29b..00000000 diff --git a/test/command_callback/psalm-project/vendor/bin/psalm b/test/command_callback/psalm-project/vendor/bin/psalm deleted file mode 100755 index e69de29b..00000000 diff --git a/test/command_callback/puglint_project/node_modules/.bin/pug-lint b/test/command_callback/puglint_project/node_modules/.bin/pug-lint deleted file mode 100644 index e69de29b..00000000 diff --git a/test/command_callback/puglint_project/package.json b/test/command_callback/puglint_project/package.json deleted file mode 100644 index e69de29b..00000000 diff --git a/test/command_callback/puglint_project/puglint_rc_dir/.pug-lintrc b/test/command_callback/puglint_project/puglint_rc_dir/.pug-lintrc deleted file mode 100644 index e69de29b..00000000 diff --git a/test/command_callback/puglint_project/puglint_rc_js_dir/.pug-lintrc.js b/test/command_callback/puglint_project/puglint_rc_js_dir/.pug-lintrc.js deleted file mode 100644 index e69de29b..00000000 diff --git a/test/command_callback/puglint_project/puglint_rc_json_dir/.pug-lintrc.json b/test/command_callback/puglint_project/puglint_rc_json_dir/.pug-lintrc.json deleted file mode 100644 index e69de29b..00000000 diff --git a/test/command_callback/puppet_paths/dummy.pp b/test/command_callback/puppet_paths/dummy.pp deleted file mode 100644 index e69de29b..00000000 diff --git a/test/command_callback/purescript_paths/bower/Foo.purs b/test/command_callback/purescript_paths/bower/Foo.purs deleted file mode 100644 index e69de29b..00000000 diff --git a/test/command_callback/purescript_paths/bower/bower.json b/test/command_callback/purescript_paths/bower/bower.json deleted file mode 100644 index e69de29b..00000000 diff --git a/test/command_callback/purescript_paths/psc-package/Foo.purs b/test/command_callback/purescript_paths/psc-package/Foo.purs deleted file mode 100644 index e69de29b..00000000 diff --git a/test/command_callback/purescript_paths/psc-package/psc-package.json b/test/command_callback/purescript_paths/psc-package/psc-package.json deleted file mode 100644 index e69de29b..00000000 diff --git a/test/command_callback/purescript_paths/spago/Foo.purs b/test/command_callback/purescript_paths/spago/Foo.purs deleted file mode 100644 index e69de29b..00000000 diff --git a/test/command_callback/purescript_paths/spago/spago.dhall b/test/command_callback/purescript_paths/spago/spago.dhall deleted file mode 100644 index e69de29b..00000000 diff --git a/test/command_callback/python_paths/namespace_package_manifest/MANIFEST.in b/test/command_callback/python_paths/namespace_package_manifest/MANIFEST.in deleted file mode 100644 index 4617b0eb..00000000 --- a/test/command_callback/python_paths/namespace_package_manifest/MANIFEST.in +++ /dev/null @@ -1,3 +0,0 @@ -include README.md -include *.ini *.cfg *.txt -include requirements/*.txt diff --git a/test/command_callback/python_paths/namespace_package_manifest/namespace/foo/__init__.py b/test/command_callback/python_paths/namespace_package_manifest/namespace/foo/__init__.py deleted file mode 100644 index e69de29b..00000000 diff --git a/test/command_callback/python_paths/namespace_package_manifest/namespace/foo/bar.py b/test/command_callback/python_paths/namespace_package_manifest/namespace/foo/bar.py deleted file mode 100644 index e69de29b..00000000 diff --git a/test/command_callback/python_paths/namespace_package_pytest/namespace/foo/__init__.py b/test/command_callback/python_paths/namespace_package_pytest/namespace/foo/__init__.py deleted file mode 100644 index e69de29b..00000000 diff --git a/test/command_callback/python_paths/namespace_package_pytest/namespace/foo/bar.py b/test/command_callback/python_paths/namespace_package_pytest/namespace/foo/bar.py deleted file mode 100644 index e69de29b..00000000 diff --git a/test/command_callback/python_paths/namespace_package_pytest/pytest.ini b/test/command_callback/python_paths/namespace_package_pytest/pytest.ini deleted file mode 100644 index 1433c6c6..00000000 --- a/test/command_callback/python_paths/namespace_package_pytest/pytest.ini +++ /dev/null @@ -1,2 +0,0 @@ -[pytest] -DJANGO_SETTINGS_MODULE=foo.settings diff --git a/test/command_callback/python_paths/namespace_package_setup/namespace/foo/__init__.py b/test/command_callback/python_paths/namespace_package_setup/namespace/foo/__init__.py deleted file mode 100644 index e69de29b..00000000 diff --git a/test/command_callback/python_paths/namespace_package_setup/namespace/foo/bar.py b/test/command_callback/python_paths/namespace_package_setup/namespace/foo/bar.py deleted file mode 100644 index e69de29b..00000000 diff --git a/test/command_callback/python_paths/namespace_package_setup/setup.cfg b/test/command_callback/python_paths/namespace_package_setup/setup.cfg deleted file mode 100644 index 791f075d..00000000 --- a/test/command_callback/python_paths/namespace_package_setup/setup.cfg +++ /dev/null @@ -1,2 +0,0 @@ -[flake8] -max-line-length = 119 diff --git a/test/command_callback/python_paths/namespace_package_tox/namespace/foo/__init__.py b/test/command_callback/python_paths/namespace_package_tox/namespace/foo/__init__.py deleted file mode 100644 index e69de29b..00000000 diff --git a/test/command_callback/python_paths/namespace_package_tox/namespace/foo/bar.py b/test/command_callback/python_paths/namespace_package_tox/namespace/foo/bar.py deleted file mode 100644 index e69de29b..00000000 diff --git a/test/command_callback/python_paths/namespace_package_tox/tox.ini b/test/command_callback/python_paths/namespace_package_tox/tox.ini deleted file mode 100644 index edd8788c..00000000 --- a/test/command_callback/python_paths/namespace_package_tox/tox.ini +++ /dev/null @@ -1,3 +0,0 @@ -[tox] -envlist = - py352 diff --git a/test/command_callback/python_paths/no_virtualenv/subdir/foo/COMMIT_EDITMSG b/test/command_callback/python_paths/no_virtualenv/subdir/foo/COMMIT_EDITMSG deleted file mode 100644 index e69de29b..00000000 diff --git a/test/command_callback/python_paths/no_virtualenv/subdir/foo/__init__.py b/test/command_callback/python_paths/no_virtualenv/subdir/foo/__init__.py deleted file mode 100644 index e69de29b..00000000 diff --git a/test/command_callback/python_paths/no_virtualenv/subdir/foo/bar.py b/test/command_callback/python_paths/no_virtualenv/subdir/foo/bar.py deleted file mode 100644 index e69de29b..00000000 diff --git a/test/command_callback/python_paths/with_bandit/.bandit b/test/command_callback/python_paths/with_bandit/.bandit deleted file mode 100644 index e69de29b..00000000 diff --git a/test/command_callback/python_paths/with_bandit/namespace/foo/__init__.py b/test/command_callback/python_paths/with_bandit/namespace/foo/__init__.py deleted file mode 100644 index e69de29b..00000000 diff --git a/test/command_callback/python_paths/with_bandit/namespace/foo/bar.py b/test/command_callback/python_paths/with_bandit/namespace/foo/bar.py deleted file mode 100644 index e69de29b..00000000 diff --git a/test/command_callback/python_paths/with_mypy_ini_and_pytest_ini/mypy.ini b/test/command_callback/python_paths/with_mypy_ini_and_pytest_ini/mypy.ini deleted file mode 100644 index e69de29b..00000000 diff --git a/test/command_callback/python_paths/with_mypy_ini_and_pytest_ini/tests/pytest.ini b/test/command_callback/python_paths/with_mypy_ini_and_pytest_ini/tests/pytest.ini deleted file mode 100644 index e69de29b..00000000 diff --git a/test/command_callback/python_paths/with_mypy_ini_and_pytest_ini/tests/testsubfolder/my_tests.py b/test/command_callback/python_paths/with_mypy_ini_and_pytest_ini/tests/testsubfolder/my_tests.py deleted file mode 100644 index e69de29b..00000000 diff --git a/test/command_callback/python_paths/with_virtualenv/dir_with_yapf_config/.style.yapf b/test/command_callback/python_paths/with_virtualenv/dir_with_yapf_config/.style.yapf deleted file mode 100644 index e69de29b..00000000 diff --git a/test/command_callback/python_paths/with_virtualenv/env/Scripts/activate b/test/command_callback/python_paths/with_virtualenv/env/Scripts/activate deleted file mode 100644 index e69de29b..00000000 diff --git a/test/command_callback/python_paths/with_virtualenv/env/Scripts/autoimport.exe b/test/command_callback/python_paths/with_virtualenv/env/Scripts/autoimport.exe deleted file mode 100755 index e69de29b..00000000 diff --git a/test/command_callback/python_paths/with_virtualenv/env/Scripts/autopep8.exe b/test/command_callback/python_paths/with_virtualenv/env/Scripts/autopep8.exe deleted file mode 100755 index e69de29b..00000000 diff --git a/test/command_callback/python_paths/with_virtualenv/env/Scripts/black.exe b/test/command_callback/python_paths/with_virtualenv/env/Scripts/black.exe deleted file mode 100755 index e69de29b..00000000 diff --git a/test/command_callback/python_paths/with_virtualenv/env/Scripts/flake8.exe b/test/command_callback/python_paths/with_virtualenv/env/Scripts/flake8.exe deleted file mode 100755 index e69de29b..00000000 diff --git a/test/command_callback/python_paths/with_virtualenv/env/Scripts/gitlint.exe b/test/command_callback/python_paths/with_virtualenv/env/Scripts/gitlint.exe deleted file mode 100755 index e69de29b..00000000 diff --git a/test/command_callback/python_paths/with_virtualenv/env/Scripts/isort.exe b/test/command_callback/python_paths/with_virtualenv/env/Scripts/isort.exe deleted file mode 100755 index e69de29b..00000000 diff --git a/test/command_callback/python_paths/with_virtualenv/env/Scripts/mypy.exe b/test/command_callback/python_paths/with_virtualenv/env/Scripts/mypy.exe deleted file mode 100755 index e69de29b..00000000 diff --git a/test/command_callback/python_paths/with_virtualenv/env/Scripts/pyflakes.exe b/test/command_callback/python_paths/with_virtualenv/env/Scripts/pyflakes.exe deleted file mode 100755 index e69de29b..00000000 diff --git a/test/command_callback/python_paths/with_virtualenv/env/Scripts/pylama.exe b/test/command_callback/python_paths/with_virtualenv/env/Scripts/pylama.exe deleted file mode 100755 index e69de29b..00000000 diff --git a/test/command_callback/python_paths/with_virtualenv/env/Scripts/pylint.exe b/test/command_callback/python_paths/with_virtualenv/env/Scripts/pylint.exe deleted file mode 100755 index e69de29b..00000000 diff --git a/test/command_callback/python_paths/with_virtualenv/env/Scripts/pyls.exe b/test/command_callback/python_paths/with_virtualenv/env/Scripts/pyls.exe deleted file mode 100755 index e69de29b..00000000 diff --git a/test/command_callback/python_paths/with_virtualenv/env/Scripts/pyre.exe b/test/command_callback/python_paths/with_virtualenv/env/Scripts/pyre.exe deleted file mode 100755 index e69de29b..00000000 diff --git a/test/command_callback/python_paths/with_virtualenv/env/Scripts/reorder-python-imports.exe b/test/command_callback/python_paths/with_virtualenv/env/Scripts/reorder-python-imports.exe deleted file mode 100755 index e69de29b..00000000 diff --git a/test/command_callback/python_paths/with_virtualenv/env/Scripts/vulture.exe b/test/command_callback/python_paths/with_virtualenv/env/Scripts/vulture.exe deleted file mode 100755 index e69de29b..00000000 diff --git a/test/command_callback/python_paths/with_virtualenv/env/Scripts/yamlfix.exe b/test/command_callback/python_paths/with_virtualenv/env/Scripts/yamlfix.exe deleted file mode 100644 index e69de29b..00000000 diff --git a/test/command_callback/python_paths/with_virtualenv/env/Scripts/yapf.exe b/test/command_callback/python_paths/with_virtualenv/env/Scripts/yapf.exe deleted file mode 100755 index e69de29b..00000000 diff --git a/test/command_callback/python_paths/with_virtualenv/env/bin/activate b/test/command_callback/python_paths/with_virtualenv/env/bin/activate deleted file mode 100644 index e69de29b..00000000 diff --git a/test/command_callback/python_paths/with_virtualenv/env/bin/autoimport b/test/command_callback/python_paths/with_virtualenv/env/bin/autoimport deleted file mode 100755 index e69de29b..00000000 diff --git a/test/command_callback/python_paths/with_virtualenv/env/bin/autopep8 b/test/command_callback/python_paths/with_virtualenv/env/bin/autopep8 deleted file mode 100755 index e69de29b..00000000 diff --git a/test/command_callback/python_paths/with_virtualenv/env/bin/black b/test/command_callback/python_paths/with_virtualenv/env/bin/black deleted file mode 100755 index e69de29b..00000000 diff --git a/test/command_callback/python_paths/with_virtualenv/env/bin/flake8 b/test/command_callback/python_paths/with_virtualenv/env/bin/flake8 deleted file mode 100755 index e69de29b..00000000 diff --git a/test/command_callback/python_paths/with_virtualenv/env/bin/gitlint b/test/command_callback/python_paths/with_virtualenv/env/bin/gitlint deleted file mode 100755 index e69de29b..00000000 diff --git a/test/command_callback/python_paths/with_virtualenv/env/bin/isort b/test/command_callback/python_paths/with_virtualenv/env/bin/isort deleted file mode 100755 index e69de29b..00000000 diff --git a/test/command_callback/python_paths/with_virtualenv/env/bin/mypy b/test/command_callback/python_paths/with_virtualenv/env/bin/mypy deleted file mode 100755 index e69de29b..00000000 diff --git a/test/command_callback/python_paths/with_virtualenv/env/bin/pyflakes b/test/command_callback/python_paths/with_virtualenv/env/bin/pyflakes deleted file mode 100755 index e69de29b..00000000 diff --git a/test/command_callback/python_paths/with_virtualenv/env/bin/pylama b/test/command_callback/python_paths/with_virtualenv/env/bin/pylama deleted file mode 100755 index e69de29b..00000000 diff --git a/test/command_callback/python_paths/with_virtualenv/env/bin/pylint b/test/command_callback/python_paths/with_virtualenv/env/bin/pylint deleted file mode 100755 index e69de29b..00000000 diff --git a/test/command_callback/python_paths/with_virtualenv/env/bin/pyls b/test/command_callback/python_paths/with_virtualenv/env/bin/pyls deleted file mode 100755 index e69de29b..00000000 diff --git a/test/command_callback/python_paths/with_virtualenv/env/bin/pyre b/test/command_callback/python_paths/with_virtualenv/env/bin/pyre deleted file mode 100755 index e69de29b..00000000 diff --git a/test/command_callback/python_paths/with_virtualenv/env/bin/reorder-python-imports b/test/command_callback/python_paths/with_virtualenv/env/bin/reorder-python-imports deleted file mode 100755 index e69de29b..00000000 diff --git a/test/command_callback/python_paths/with_virtualenv/env/bin/vulture b/test/command_callback/python_paths/with_virtualenv/env/bin/vulture deleted file mode 100755 index e69de29b..00000000 diff --git a/test/command_callback/python_paths/with_virtualenv/env/bin/yamlfix b/test/command_callback/python_paths/with_virtualenv/env/bin/yamlfix deleted file mode 100755 index e69de29b..00000000 diff --git a/test/command_callback/python_paths/with_virtualenv/env/bin/yapf b/test/command_callback/python_paths/with_virtualenv/env/bin/yapf deleted file mode 100755 index e69de29b..00000000 diff --git a/test/command_callback/python_paths/with_virtualenv/subdir/foo/COMMIT_EDITMSG b/test/command_callback/python_paths/with_virtualenv/subdir/foo/COMMIT_EDITMSG deleted file mode 100644 index e69de29b..00000000 diff --git a/test/command_callback/python_paths/with_virtualenv/subdir/foo/__init__.py b/test/command_callback/python_paths/with_virtualenv/subdir/foo/__init__.py deleted file mode 100644 index e69de29b..00000000 diff --git a/test/command_callback/python_paths/with_virtualenv/subdir/foo/bar.py b/test/command_callback/python_paths/with_virtualenv/subdir/foo/bar.py deleted file mode 100644 index e69de29b..00000000 diff --git a/test/command_callback/python_paths/with_virtualenv/subdir/foo/bar.pyi b/test/command_callback/python_paths/with_virtualenv/subdir/foo/bar.pyi deleted file mode 100644 index e69de29b..00000000 diff --git a/test/command_callback/r_paths/.Rprofile b/test/command_callback/r_paths/.Rprofile deleted file mode 100644 index e69de29b..00000000 diff --git a/test/command_callback/reason_ls_paths/bsconfig.json b/test/command_callback/reason_ls_paths/bsconfig.json deleted file mode 100644 index e69de29b..00000000 diff --git a/test/command_callback/remark_lint_paths/with_bin_path/node_modules/.bin/remark b/test/command_callback/remark_lint_paths/with_bin_path/node_modules/.bin/remark deleted file mode 100755 index e69de29b..00000000 diff --git a/test/command_callback/ruby_paths/dummy.rb b/test/command_callback/ruby_paths/dummy.rb deleted file mode 100644 index e69de29b..00000000 diff --git a/test/command_callback/ruby_paths/with_config/.rubocop.yml b/test/command_callback/ruby_paths/with_config/.rubocop.yml deleted file mode 100644 index e69de29b..00000000 diff --git a/test/command_callback/ruby_paths/with_config/.standard.yml b/test/command_callback/ruby_paths/with_config/.standard.yml deleted file mode 100644 index e69de29b..00000000 diff --git a/test/command_callback/rust-rls-project/Cargo.toml b/test/command_callback/rust-rls-project/Cargo.toml deleted file mode 100644 index e69de29b..00000000 diff --git a/test/command_callback/sasslint-test-files/with-bin/node_modules/.bin/sass-lint b/test/command_callback/sasslint-test-files/with-bin/node_modules/.bin/sass-lint deleted file mode 100755 index e69de29b..00000000 diff --git a/test/command_callback/sasslint-test-files/with-source/node_modules/sass-lint/bin/sass-lint.js b/test/command_callback/sasslint-test-files/with-source/node_modules/sass-lint/bin/sass-lint.js deleted file mode 100755 index e69de29b..00000000 diff --git a/test/command_callback/scala_paths/dummy.scala b/test/command_callback/scala_paths/dummy.scala deleted file mode 100644 index e69de29b..00000000 diff --git a/test/command_callback/spectral_paths/node_modules/.bin/spectral b/test/command_callback/spectral_paths/node_modules/.bin/spectral deleted file mode 100644 index e69de29b..00000000 diff --git a/test/command_callback/spectral_paths/openapi.yaml b/test/command_callback/spectral_paths/openapi.yaml deleted file mode 100644 index e69de29b..00000000 diff --git a/test/command_callback/stack_build_paths/stack.yaml b/test/command_callback/stack_build_paths/stack.yaml deleted file mode 100644 index e69de29b..00000000 diff --git a/test/command_callback/stack_ghc_paths/stack.yaml b/test/command_callback/stack_ghc_paths/stack.yaml deleted file mode 100644 index e69de29b..00000000 diff --git a/test/command_callback/standard-test-files/with-bin/node_modules/.bin/standard b/test/command_callback/standard-test-files/with-bin/node_modules/.bin/standard deleted file mode 100755 index e69de29b..00000000 diff --git a/test/command_callback/standard-test-files/with-cmd/node_modules/standard/bin/cmd.js b/test/command_callback/standard-test-files/with-cmd/node_modules/standard/bin/cmd.js deleted file mode 100755 index e69de29b..00000000 diff --git a/test/command_callback/stylelint_paths/node_modules/.bin/stylelint b/test/command_callback/stylelint_paths/node_modules/.bin/stylelint deleted file mode 100755 index e69de29b..00000000 diff --git a/test/command_callback/swaglint_paths/docs/swagger.yaml b/test/command_callback/swaglint_paths/docs/swagger.yaml deleted file mode 100644 index e69de29b..00000000 diff --git a/test/command_callback/swaglint_paths/node_modules/.bin/swaglint b/test/command_callback/swaglint_paths/node_modules/.bin/swaglint deleted file mode 100644 index e69de29b..00000000 diff --git a/test/command_callback/swift_paths/dummy.swift b/test/command_callback/swift_paths/dummy.swift deleted file mode 100644 index e69de29b..00000000 diff --git a/test/command_callback/test_alex_command_callback.vader b/test/command_callback/test_alex_command_callback.vader index 98769e0b..20e20301 100644 --- a/test/command_callback/test_alex_command_callback.vader +++ b/test/command_callback/test_alex_command_callback.vader @@ -10,22 +10,22 @@ Execute(The global executable should be used when the local one cannot be found) \ ale#Escape('alex') . ' %s --text', Execute(Should use the node_modules/.bin executable, if available): - call ale#test#SetFilename('alex-node-modules/test_file.tex') + call ale#test#SetFilename('../test-files/alex/node-modules/test_file.tex') - AssertLinter ale#path#Simplify(g:dir . '/alex-node-modules/node_modules/.bin/alex'), - \ ale#Escape(ale#path#Simplify(g:dir . '/alex-node-modules/node_modules/.bin/alex')) + AssertLinter ale#path#Simplify(g:dir . '/../test-files/alex/node-modules/node_modules/.bin/alex'), + \ ale#Escape(ale#path#Simplify(g:dir . '/../test-files/alex/node-modules/node_modules/.bin/alex')) \ . ' %s --text', Execute(Should use the node_modules/alex executable, if available): - call ale#test#SetFilename('alex-node-modules-2/test_file.tex') + call ale#test#SetFilename('../test-files/alex/node-modules-2/test_file.tex') - AssertLinter ale#path#Simplify(g:dir . '/alex-node-modules-2/node_modules/alex/cli.js'), + AssertLinter ale#path#Simplify(g:dir . '/../test-files/alex/node-modules-2/node_modules/alex/cli.js'), \ (has('win32') ? 'node.exe ' : '') - \ . ale#Escape(ale#path#Simplify(g:dir . '/alex-node-modules-2/node_modules/alex/cli.js')) + \ . ale#Escape(ale#path#Simplify(g:dir . '/../test-files/alex/node-modules-2/node_modules/alex/cli.js')) \ . ' %s --text', Execute(Should let users configure a global executable and override local paths): - call ale#test#SetFilename('write-good-node-modules-2/test_file.tex') + call ale#test#SetFilename('../test-files/write-good/node-modules-2/test_file.tex') let g:ale_alex_executable = '/path/to/custom/alex' let g:ale_alex_use_global = 1 diff --git a/test/command_callback/test_angular_command_callback.vader b/test/command_callback/test_angular_command_callback.vader index c5de3d87..fe0749a1 100644 --- a/test/command_callback/test_angular_command_callback.vader +++ b/test/command_callback/test_angular_command_callback.vader @@ -13,15 +13,15 @@ Execute(The Angular LSP connection shouldn't be created outside of Angular proje AssertLinterNotExecuted Execute(The default command for Angular should be correct): - call ale#test#SetFilename('../test-projects/angular/test.html') + call ale#test#SetFilename('../test-files/angular/test.html') let g:paths = { - \ 'ngserver': ale#test#GetFilename('../test-projects/angular/node_modules/@angular/language-server/bin/ngserver'), - \ 'service': ale#test#GetFilename('../test-projects/angular/node_modules/@angular/language-service'), - \ 'typescript': ale#test#GetFilename('../test-projects/angular/node_modules/typescript'), + \ 'ngserver': ale#test#GetFilename('../test-files/angular/node_modules/@angular/language-server/bin/ngserver'), + \ 'service': ale#test#GetFilename('../test-files/angular/node_modules/@angular/language-service'), + \ 'typescript': ale#test#GetFilename('../test-files/angular/node_modules/typescript'), \} AssertLSPLanguage 'html' - AssertLSPProject ale#test#GetFilename('../test-projects/angular') + AssertLSPProject ale#test#GetFilename('../test-files/angular') AssertLinter g:paths.ngserver, ale#Escape(g:paths.ngserver) \ . ' --ngProbeLocations ' . ale#Escape(g:paths.service) \ . ' --tsProbeLocations ' . ale#Escape(g:paths.typescript) @@ -30,14 +30,14 @@ Execute(The default command for Angular should be correct): Execute(It should be possible to use the global ngserver): let b:ale_html_angular_use_global = 1 - call ale#test#SetFilename('../test-projects/angular/test.html') + call ale#test#SetFilename('../test-files/angular/test.html') let g:paths = { - \ 'service': ale#test#GetFilename('../test-projects/angular/node_modules/@angular/language-service'), - \ 'typescript': ale#test#GetFilename('../test-projects/angular/node_modules/typescript'), + \ 'service': ale#test#GetFilename('../test-files/angular/node_modules/@angular/language-service'), + \ 'typescript': ale#test#GetFilename('../test-files/angular/node_modules/typescript'), \} AssertLSPLanguage 'html' - AssertLSPProject ale#test#GetFilename('../test-projects/angular') + AssertLSPProject ale#test#GetFilename('../test-files/angular') AssertLinter 'ngserver', ale#Escape('ngserver') \ . ' --ngProbeLocations ' . ale#Escape(g:paths.service) \ . ' --tsProbeLocations ' . ale#Escape(g:paths.typescript) diff --git a/test/command_callback/test_asciidoc_textlint_command_callbacks.vader b/test/command_callback/test_asciidoc_textlint_command_callbacks.vader index 623833b2..a79a0ae3 100644 --- a/test/command_callback/test_asciidoc_textlint_command_callbacks.vader +++ b/test/command_callback/test_asciidoc_textlint_command_callbacks.vader @@ -42,24 +42,24 @@ Execute(The options should be configurable): \ ale#Escape('textlint') . ' --something -f json --stdin --stdin-filename %s' Execute(The local executable from .bin should be used if available): - call ale#test#SetFilename('textlint_paths/with_bin_path/foo.txt') + call ale#test#SetFilename('../test-files/textlint/with_bin_path/foo.txt') AssertLinter - \ ale#path#Simplify(g:dir . '/textlint_paths/with_bin_path/node_modules/.bin/textlint'), - \ ale#Escape(ale#path#Simplify(g:dir . '/textlint_paths/with_bin_path/node_modules/.bin/textlint')) + \ ale#path#Simplify(g:dir . '/../test-files/textlint/with_bin_path/node_modules/.bin/textlint'), + \ ale#Escape(ale#path#Simplify(g:dir . '/../test-files/textlint/with_bin_path/node_modules/.bin/textlint')) \ . ' -f json --stdin --stdin-filename %s' Execute(The local executable from textlint/bin should be used if available): - call ale#test#SetFilename('textlint_paths/with_textlint_bin_path/foo.txt') + call ale#test#SetFilename('../test-files/textlint/with_textlint_bin_path/foo.txt') if has('win32') AssertLinter - \ ale#path#Simplify(g:dir . '/textlint_paths/with_textlint_bin_path/node_modules/textlint/bin/textlint.js'), - \ ale#Escape('node.exe') . ' ' . ale#Escape(ale#path#Simplify(g:dir . '/textlint_paths/with_textlint_bin_path/node_modules/textlint/bin/textlint.js')) + \ ale#path#Simplify(g:dir . '/../test-files/textlint/with_textlint_bin_path/node_modules/textlint/bin/textlint.js'), + \ ale#Escape('node.exe') . ' ' . ale#Escape(ale#path#Simplify(g:dir . '/../test-files/textlint/with_textlint_bin_path/node_modules/textlint/bin/textlint.js')) \ . ' -f json --stdin --stdin-filename %s' else AssertLinter - \ ale#path#Simplify(g:dir . '/textlint_paths/with_textlint_bin_path/node_modules/textlint/bin/textlint.js'), - \ ale#Escape(ale#path#Simplify(g:dir . '/textlint_paths/with_textlint_bin_path/node_modules/textlint/bin/textlint.js')) + \ ale#path#Simplify(g:dir . '/../test-files/textlint/with_textlint_bin_path/node_modules/textlint/bin/textlint.js'), + \ ale#Escape(ale#path#Simplify(g:dir . '/../test-files/textlint/with_textlint_bin_path/node_modules/textlint/bin/textlint.js')) \ . ' -f json --stdin --stdin-filename %s' endif diff --git a/test/command_callback/test_bandit_command_callback.vader b/test/command_callback/test_bandit_command_callback.vader index 274ce901..3d3a60a3 100644 --- a/test/command_callback/test_bandit_command_callback.vader +++ b/test/command_callback/test_bandit_command_callback.vader @@ -40,7 +40,7 @@ Execute(Setting executable to 'pipenv' appends 'run bandit'): Execute(Pipenv is detected when python_bandit_auto_pipenv is set): let g:ale_python_bandit_auto_pipenv = 1 - call ale#test#SetFilename('/testplugin/test/python_fixtures/pipenv/whatever.py') + call ale#test#SetFilename('../test-files/python/pipenv/whatever.py') AssertLinter 'pipenv', \ ale#Escape('pipenv') @@ -49,10 +49,10 @@ Execute(Pipenv is detected when python_bandit_auto_pipenv is set): \ . ' -' Execute(The bandit command callback should add .bandit by default): - silent execute 'file ' . fnameescape(g:dir . '/python_paths/with_bandit/namespace/foo/bar.py') + silent execute 'file ' . fnameescape(g:dir . '/../test-files/python/with_bandit/namespace/foo/bar.py') let b:config_path = ale#path#Simplify( - \ g:dir . '/python_paths/with_bandit/.bandit' + \ g:dir . '/../test-files/python/with_bandit/.bandit' \) AssertLinter 'bandit', @@ -62,7 +62,7 @@ Execute(The bandit command callback should add .bandit by default): \ . ' -' Execute(The bandit command callback should support not using .bandit): - silent execute 'file ' . fnameescape(g:dir . '/python_paths/with_bandit/subdir/foo/bar.py') + silent execute 'file ' . fnameescape(g:dir . '/../test-files/python/with_bandit/subdir/foo/bar.py') let g:ale_python_bandit_use_config = 0 AssertLinter 'bandit', diff --git a/test/command_callback/test_bingo_command_callback.vader b/test/command_callback/test_bingo_command_callback.vader index 5544effa..d8328414 100644 --- a/test/command_callback/test_bingo_command_callback.vader +++ b/test/command_callback/test_bingo_command_callback.vader @@ -25,7 +25,7 @@ Execute(should configure bingo callback executable): AssertLinter 'boo', ale#Escape('boo') Execute(should set bingo options): - call ale#test#SetFilename('go_paths/go1/prj1/file.go') + call ale#test#SetFilename('../test-files/go/go1/prj1/file.go') " let b:ale_completion_enabled = 1 let b:ale_go_bingo_options = '' @@ -38,7 +38,7 @@ Execute(should set bingo options): \ ale#Escape('bingo') . ' --mode stdio --trace' Execute(should support Go environment variables): - call ale#test#SetFilename('go_paths/go1/prj1/file.go') + call ale#test#SetFilename('../test-files/go/go1/prj1/file.go') let b:ale_go_go111module = 'on' AssertLinter 'bingo', @@ -46,9 +46,9 @@ Execute(should support Go environment variables): Execute(Should return directory for 'go.mod' if found in parent directory): - call ale#test#SetFilename('../go_files/test.go') + call ale#test#SetFilename('../test-files/go/test.go') - AssertLSPProject ale#path#Simplify(g:dir . '/../go_files') + AssertLSPProject ale#path#Simplify(g:dir . '/../test-files/go') Execute(Should return nearest directory with '.git' if found in parent directory): call ale#test#SetFilename('test.go') @@ -57,7 +57,7 @@ Execute(Should return nearest directory with '.git' if found in parent directory AssertLSPProject g:dir Execute(Should ignore 'go.mod' and return '.git' dir if modules off): - call ale#test#SetFilename('../go_files/test.go') + call ale#test#SetFilename('../test-files/go/test.go') let b:ale_go_go111module = 'off' let b:parent_dir = ale#path#Simplify(g:dir . '/..') diff --git a/test/command_callback/test_brakeman_command_callback.vader b/test/command_callback/test_brakeman_command_callback.vader index 15dbbe1c..d3bf1920 100644 --- a/test/command_callback/test_brakeman_command_callback.vader +++ b/test/command_callback/test_brakeman_command_callback.vader @@ -5,28 +5,28 @@ After: call ale#assert#TearDownLinterTest() Execute(The brakeman command callback should detect absence of a valid Rails app): - call ale#test#SetFilename('../ruby_fixtures/not_a_rails_app/test.rb') + call ale#test#SetFilename('../test-files/ruby/not_a_rails_app/test.rb') AssertLinter 'brakeman', '' Execute(The brakeman command callback should find a valid Rails app root): - call ale#test#SetFilename('../ruby_fixtures/valid_rails_app/db/test.rb') + call ale#test#SetFilename('../test-files/ruby/valid_rails_app/db/test.rb') AssertLinter 'brakeman', ale#Escape('brakeman') \ . ' -f json -q -p ' - \ . ale#Escape(ale#path#Simplify(g:dir . '/../ruby_fixtures/valid_rails_app')) + \ . ale#Escape(ale#path#Simplify(g:dir . '/../test-files/ruby/valid_rails_app')) Execute(The brakeman command callback should include configured options): - call ale#test#SetFilename('../ruby_fixtures/valid_rails_app/db/test.rb') + call ale#test#SetFilename('../test-files/ruby/valid_rails_app/db/test.rb') let g:ale_ruby_brakeman_options = '--combobulate' AssertLinter 'brakeman', ale#Escape('brakeman') \ . ' -f json -q --combobulate -p ' - \ . ale#Escape(ale#path#Simplify(g:dir . '/../ruby_fixtures/valid_rails_app')) + \ . ale#Escape(ale#path#Simplify(g:dir . '/../test-files/ruby/valid_rails_app')) Execute(Setting bundle appends 'exec brakeman'): - call ale#test#SetFilename('../ruby_fixtures/valid_rails_app/db/test.rb') + call ale#test#SetFilename('../test-files/ruby/valid_rails_app/db/test.rb') let g:ale_ruby_brakeman_executable = 'bundle' let g:ale_ruby_brakeman_options = '--combobulate' @@ -34,4 +34,4 @@ Execute(Setting bundle appends 'exec brakeman'): AssertLinter 'bundle', ale#Escape('bundle') \ . ' exec brakeman' \ . ' -f json -q --combobulate -p ' - \ . ale#Escape(ale#path#Simplify(g:dir . '/../ruby_fixtures/valid_rails_app')) + \ . ale#Escape(ale#path#Simplify(g:dir . '/../test-files/ruby/valid_rails_app')) diff --git a/test/command_callback/test_c_ccls_command_callbacks.vader b/test/command_callback/test_c_ccls_command_callbacks.vader index 04643d02..a4f575c6 100644 --- a/test/command_callback/test_c_ccls_command_callbacks.vader +++ b/test/command_callback/test_c_ccls_command_callbacks.vader @@ -16,27 +16,27 @@ Execute(The project root should be detected correctly using compile_commands.jso AssertLSPProject '' - call ale#test#SetFilename('ccls_paths/with_compile_commands_json/dummy.c') + call ale#test#SetFilename('../test-files/ccls/with_compile_commands_json/dummy.c') - AssertLSPProject ale#path#Simplify(g:dir . '/ccls_paths/with_compile_commands_json') + AssertLSPProject ale#path#Simplify(g:dir . '/../test-files/ccls/with_compile_commands_json') Execute(The project root should be detected correctly using .ccls file): call ale#test#SetFilename(tempname() . '/dummy.c') AssertLSPProject '' - call ale#test#SetFilename('ccls_paths/with_ccls/dummy.c') + call ale#test#SetFilename('../test-files/ccls/with_ccls/dummy.c') - AssertLSPProject ale#path#Simplify(g:dir . '/ccls_paths/with_ccls') + AssertLSPProject ale#path#Simplify(g:dir . '/../test-files/ccls/with_ccls') Execute(The project root should be detected correctly using .ccls-root file): call ale#test#SetFilename(tempname() . '/dummy.c') AssertLSPProject '' - call ale#test#SetFilename('ccls_paths/with_ccls-root/dummy.c') + call ale#test#SetFilename('../test-files/ccls/with_ccls-root/dummy.c') - AssertLSPProject ale#path#Simplify(g:dir . '/ccls_paths/with_ccls-root') + AssertLSPProject ale#path#Simplify(g:dir . '/../test-files/ccls/with_ccls-root') Execute(The executable should be configurable): AssertLinter 'ccls', ale#Escape('ccls') @@ -53,17 +53,17 @@ Execute(The initialization options should be configurable): AssertLSPOptions { 'cacheDirectory': '/tmp/ccls' } Execute(The compile command database should be detected correctly): - call ale#test#SetFilename('ccls_paths/with_ccls/dummy.c') + call ale#test#SetFilename('../test-files/ccls/with_ccls/dummy.c') AssertLSPOptions {} - call ale#test#SetFilename('ccls_paths/with_compile_commands_json/dummy.c') + call ale#test#SetFilename('../test-files/ccls/with_compile_commands_json/dummy.c') AssertLSPOptions { 'compilationDatabaseDirectory': - \ ale#path#Simplify(g:dir . '/ccls_paths/with_compile_commands_json') } + \ ale#path#Simplify(g:dir . '/../test-files/ccls/with_compile_commands_json') } - call ale#test#SetFilename('ccls_paths/with_build_dir/dummy.c') + call ale#test#SetFilename('../test-files/ccls/with_build_dir/dummy.c') let b:ale_c_build_dir_names = ['unusual_build_dir_name'] AssertLSPOptions { 'compilationDatabaseDirectory': - \ ale#path#Simplify(g:dir . '/ccls_paths/with_build_dir/unusual_build_dir_name') } + \ ale#path#Simplify(g:dir . '/../test-files/ccls/with_build_dir/unusual_build_dir_name') } diff --git a/test/command_callback/test_c_clangd_command_callbacks.vader b/test/command_callback/test_c_clangd_command_callbacks.vader index 753dc9a8..438bc80e 100644 --- a/test/command_callback/test_c_clangd_command_callbacks.vader +++ b/test/command_callback/test_c_clangd_command_callbacks.vader @@ -23,9 +23,9 @@ Execute(The project root should be detected correctly): AssertLSPProject '' - call ale#test#SetFilename('clangd_paths/with_compile_commands/dummy.c') + call ale#test#SetFilename('../test-files/clangd/with_compile_commands/dummy.c') - AssertLSPProject ale#path#Simplify(g:dir . '/clangd_paths/with_compile_commands') + AssertLSPProject ale#path#Simplify(g:dir . '/../test-files/clangd/with_compile_commands') Execute(The executable should be configurable): let g:ale_c_clangd_executable = 'foobar' @@ -38,7 +38,7 @@ Execute(The options should be configurable): AssertLinter 'clangd', ale#Escape('clangd') . ' ' . b:ale_c_clangd_options Execute(The compile command database should be detected correctly): - call ale#test#SetFilename('clangd_paths/with_build_dir/dummy_src/dummy.c') + call ale#test#SetFilename('../test-files/clangd/with_build_dir/dummy_src/dummy.c') let b:ale_c_clangd_options = '' let b:ale_c_build_dir = '' @@ -47,5 +47,5 @@ Execute(The compile command database should be detected correctly): AssertLinter 'clangd', ale#Escape('clangd') \ . ' -compile-commands-dir=' - \ . ale#Escape(ale#path#Simplify(g:dir . '/clangd_paths/with_build_dir/unusual_build_dir_name')) + \ . ale#Escape(ale#path#Simplify(g:dir . '/../test-files/clangd/with_build_dir/unusual_build_dir_name')) diff --git a/test/command_callback/test_c_cppcheck_command_callbacks.vader b/test/command_callback/test_c_cppcheck_command_callbacks.vader index d9b9c62c..40685dab 100644 --- a/test/command_callback/test_c_cppcheck_command_callbacks.vader +++ b/test/command_callback/test_c_cppcheck_command_callbacks.vader @@ -21,9 +21,9 @@ Execute(The executable should be configurable): AssertLinter 'foobar', ale#Escape('foobar') . b:command_tail Execute(cppcheck for C should detect compile_commands.json files): - call ale#test#SetFilename('cppcheck_paths/one/foo.c') + call ale#test#SetFilename('../test-files/cppcheck/one/foo.c') - AssertLinterCwd ale#path#Simplify(g:dir . '/cppcheck_paths/one') + AssertLinterCwd ale#path#Simplify(g:dir . '/../test-files/cppcheck/one') AssertLinter 'cppcheck', ale#Escape('cppcheck') \ . ' -q --language=c' \ . ' --template=' . ale#Escape('{file}:{line}:{column}: {severity}:{inconclusive:inconclusive:} {message} [{id}]\\n{code}') @@ -31,9 +31,9 @@ Execute(cppcheck for C should detect compile_commands.json files): \ . ' --enable=style %t' Execute(cppcheck for C should detect compile_commands.json files in build directories): - call ale#test#SetFilename('cppcheck_paths/with_build_dir/foo.cpp') + call ale#test#SetFilename('../test-files/cppcheck/with_build_dir/foo.cpp') - AssertLinterCwd ale#path#Simplify(g:dir . '/cppcheck_paths/with_build_dir') + AssertLinterCwd ale#path#Simplify(g:dir . '/../test-files/cppcheck/with_build_dir') AssertLinter 'cppcheck', ale#Escape('cppcheck') \ . ' -q --language=c' \ . ' --template=' . ale#Escape('{file}:{line}:{column}: {severity}:{inconclusive:inconclusive:} {message} [{id}]\\n{code}') @@ -41,26 +41,26 @@ Execute(cppcheck for C should detect compile_commands.json files in build direct \ . ' --enable=style %t' Execute(cppcheck for C should include file dir if compile_commands.json file is not found): - call ale#test#SetFilename('cppcheck_paths/foo.cpp') + call ale#test#SetFilename('../test-files/cppcheck/foo.cpp') AssertLinter 'cppcheck', \ ale#Escape('cppcheck') \ . ' -q --language=c' \ . ' --template=' . ale#Escape('{file}:{line}:{column}: {severity}:{inconclusive:inconclusive:} {message} [{id}]\\n{code}') \ . ' --enable=style' - \ . ' -I' . ale#Escape(ale#path#Simplify(g:dir . '/cppcheck_paths')) + \ . ' -I' . ale#Escape(ale#path#Simplify(g:dir . '/../test-files/cppcheck')) \ . ' %t' Execute(cppcheck for C should ignore compile_commands.json file if buffer is modified): - call ale#test#SetFilename('cppcheck_paths/one/foo.c') + call ale#test#SetFilename('../test-files/cppcheck/one/foo.c') set buftype= set modified - AssertLinterCwd ale#path#Simplify(g:dir . '/cppcheck_paths/one') + AssertLinterCwd ale#path#Simplify(g:dir . '/../test-files/cppcheck/one') AssertLinter 'cppcheck', ale#Escape('cppcheck') \ . ' -q --language=c' \ . ' --template=' . ale#Escape('{file}:{line}:{column}: {severity}:{inconclusive:inconclusive:} {message} [{id}]\\n{code}') \ . ' --enable=style' - \ . ' -I' . ale#Escape(ale#path#Simplify(g:dir . '/cppcheck_paths/one')) + \ . ' -I' . ale#Escape(ale#path#Simplify(g:dir . '/../test-files/cppcheck/one')) \ . ' %t' diff --git a/test/command_callback/test_c_cquery_command_callbacks.vader b/test/command_callback/test_c_cquery_command_callbacks.vader index 01356bdf..bca0dbbc 100644 --- a/test/command_callback/test_c_cquery_command_callbacks.vader +++ b/test/command_callback/test_c_cquery_command_callbacks.vader @@ -9,18 +9,18 @@ Execute(The project root should be detected correctly using compile_commands.jso AssertLSPProject '' - call ale#test#SetFilename('cquery_paths/dummy.c') + call ale#test#SetFilename('../test-files/cquery/dummy.c') - AssertLSPProject ale#path#Simplify(g:dir . '/cquery_paths') + AssertLSPProject ale#path#Simplify(g:dir . '/../test-files/cquery') Execute(The project root should be detected correctly using .cquery file): call ale#test#SetFilename(tempname() . '/dummy.c') AssertLSPProject '' - call ale#test#SetFilename('cquery_paths/with_cquery/dummy.c') + call ale#test#SetFilename('../test-files/cquery/with_cquery/dummy.c') - AssertLSPProject ale#path#Simplify(g:dir . '/cquery_paths/with_cquery') + AssertLSPProject ale#path#Simplify(g:dir . '/../test-files/cquery/with_cquery') Execute(The executable should be configurable): AssertLinter 'cquery', ale#Escape('cquery') diff --git a/test/command_callback/test_c_import_paths.vader b/test/command_callback/test_c_import_paths.vader index 3c2bd79b..19e39915 100644 --- a/test/command_callback/test_c_import_paths.vader +++ b/test/command_callback/test_c_import_paths.vader @@ -37,126 +37,126 @@ After: Execute(The C cc linter should include 'include' directories for projects with a Makefile): call ale#assert#SetUpLinterTest('c', 'cc') - call ale#test#SetFilename('../test_c_projects/makefile_project/subdir/file.c') + call ale#test#SetFilename('../test-files/c/makefile_project/subdir/file.c') let g:ale_c_cc_options = '' AssertLinter 'gcc', \ ale#Escape('gcc') \ . ' -S -x c -o ' . (has('win32') ? 'nul': '/dev/null') \ . ' -iquote %s:h' - \ . ' -I' . ale#Escape(ale#path#Simplify(g:dir . '/../test_c_projects/makefile_project/include')) + \ . ' -I' . ale#Escape(ale#path#Simplify(g:dir . '/../test-files/c/makefile_project/include')) \ . ' -' Execute(The C cc linter should include 'include' directories for projects with a configure file): call ale#assert#SetUpLinterTest('c', 'cc') - call ale#test#SetFilename('../test_c_projects/configure_project/subdir/file.c') + call ale#test#SetFilename('../test-files/c/configure_project/subdir/file.c') let g:ale_c_cc_options = '' AssertLinter 'gcc', \ ale#Escape('gcc') \ . ' -S -x c -o ' . (has('win32') ? 'nul': '/dev/null') \ . ' -iquote %s:h' - \ . ' -I' . ale#Escape(ale#path#Simplify(g:dir . '/../test_c_projects/configure_project/include')) + \ . ' -I' . ale#Escape(ale#path#Simplify(g:dir . '/../test-files/c/configure_project/include')) \ . ' -' Execute(The C cc linter should include root directories for projects with .h files in them): call ale#assert#SetUpLinterTest('c', 'cc') - call ale#test#SetFilename('../test_c_projects/h_file_project/subdir/file.c') + call ale#test#SetFilename('../test-files/c/h_file_project/subdir/file.c') let g:ale_c_cc_options = '' AssertLinter 'gcc', \ ale#Escape('gcc') \ . ' -S -x c -o ' . (has('win32') ? 'nul': '/dev/null') \ . ' -iquote %s:h' - \ . ' -I' . ale#Escape(ale#path#Simplify(g:dir . '/../test_c_projects/h_file_project')) + \ . ' -I' . ale#Escape(ale#path#Simplify(g:dir . '/../test-files/c/h_file_project')) \ . ' -' Execute(The C cc linter should include root directories for projects with .hpp files in them): call ale#assert#SetUpLinterTest('c', 'cc') - call ale#test#SetFilename('../test_c_projects/hpp_file_project/subdir/file.c') + call ale#test#SetFilename('../test-files/c/hpp_file_project/subdir/file.c') let g:ale_c_cc_options = '' AssertLinter 'gcc', \ ale#Escape('gcc') \ . ' -S -x c -o ' . (has('win32') ? 'nul': '/dev/null') \ . ' -iquote %s:h' - \ . ' -I' . ale#Escape(ale#path#Simplify(g:dir . '/../test_c_projects/hpp_file_project')) + \ . ' -I' . ale#Escape(ale#path#Simplify(g:dir . '/../test-files/c/hpp_file_project')) \ . ' -' Execute(The C ClangTidy handler should include 'include' directories for projects with a Makefile): call ale#assert#SetUpLinterTest('c', 'clangtidy') - call ale#test#SetFilename('../test_c_projects/makefile_project/subdir/file.cpp') + call ale#test#SetFilename('../test-files/c/makefile_project/subdir/file.cpp') let g:ale_c_clangtidy_options = '' AssertLinter 'clang-tidy', \ ale#Escape('clang-tidy') \ . ' %s ' - \ . '-- -I' . ale#Escape(ale#path#Simplify(g:dir . '/../test_c_projects/makefile_project/include')) + \ . '-- -I' . ale#Escape(ale#path#Simplify(g:dir . '/../test-files/c/makefile_project/include')) Execute(The C++ cc linter should include 'include' directories for projects with a Makefile): call ale#assert#SetUpLinterTest('cpp', 'cc') - call ale#test#SetFilename('../test_c_projects/makefile_project/subdir/file.cpp') + call ale#test#SetFilename('../test-files/c/makefile_project/subdir/file.cpp') let g:ale_cpp_cc_options = '' AssertLinter 'gcc', \ ale#Escape('gcc') \ . ' -S -x c++ -o ' . (has('win32') ? 'nul': '/dev/null') \ . ' -iquote %s:h' - \ . ' -I' . ale#Escape(ale#path#Simplify(g:dir . '/../test_c_projects/makefile_project/include')) + \ . ' -I' . ale#Escape(ale#path#Simplify(g:dir . '/../test-files/c/makefile_project/include')) \ . ' -' Execute(The C++ cc linter should include 'include' directories for projects with a configure file): call ale#assert#SetUpLinterTest('cpp', 'cc') - call ale#test#SetFilename('../test_c_projects/configure_project/subdir/file.cpp') + call ale#test#SetFilename('../test-files/c/configure_project/subdir/file.cpp') let g:ale_cpp_cc_options = '' AssertLinter 'gcc', \ ale#Escape('gcc') \ . ' -S -x c++ -o ' . (has('win32') ? 'nul': '/dev/null') \ . ' -iquote %s:h' - \ . ' -I' . ale#Escape(ale#path#Simplify(g:dir . '/../test_c_projects/configure_project/include')) + \ . ' -I' . ale#Escape(ale#path#Simplify(g:dir . '/../test-files/c/configure_project/include')) \ . ' -' Execute(The C++ cc linter should include root directories for projects with .h files in them): call ale#assert#SetUpLinterTest('cpp', 'cc') - call ale#test#SetFilename('../test_c_projects/h_file_project/subdir/file.cpp') + call ale#test#SetFilename('../test-files/c/h_file_project/subdir/file.cpp') let g:ale_cpp_cc_options = '' AssertLinter 'gcc', \ ale#Escape('gcc') \ . ' -S -x c++ -o ' . (has('win32') ? 'nul': '/dev/null') \ . ' -iquote %s:h' - \ . ' -I' . ale#Escape(ale#path#Simplify(g:dir . '/../test_c_projects/h_file_project')) + \ . ' -I' . ale#Escape(ale#path#Simplify(g:dir . '/../test-files/c/h_file_project')) \ . ' -' Execute(The C++ cc linter should include root directories for projects with .hpp files in them): call ale#assert#SetUpLinterTest('cpp', 'cc') - call ale#test#SetFilename('../test_c_projects/hpp_file_project/subdir/file.cpp') + call ale#test#SetFilename('../test-files/c/hpp_file_project/subdir/file.cpp') let g:ale_cpp_cc_options = '' AssertLinter 'gcc', \ ale#Escape('gcc') \ . ' -S -x c++ -o ' . (has('win32') ? 'nul': '/dev/null') \ . ' -iquote %s:h' - \ . ' -I' . ale#Escape(ale#path#Simplify(g:dir . '/../test_c_projects/hpp_file_project')) + \ . ' -I' . ale#Escape(ale#path#Simplify(g:dir . '/../test-files/c/hpp_file_project')) \ . ' -' Execute(The C++ ClangTidy handler should include json folders for projects with suitable build directory in them): call ale#assert#SetUpLinterTest('cpp', 'clangtidy') - call ale#test#SetFilename('../test_c_projects/json_project/subdir/file.cpp') + call ale#test#SetFilename('../test-files/c/json_project/subdir/file.cpp') AssertLinter 'clang-tidy', \ ale#Escape('clang-tidy') \ . ' %s ' - \ . '-p ' . ale#Escape(ale#path#Simplify(g:dir . '/../test_c_projects/json_project/build')) + \ . '-p ' . ale#Escape(ale#path#Simplify(g:dir . '/../test-files/c/json_project/build')) Execute(The C++ ClangTidy handler should include 'include' directories for projects with a Makefile): call ale#assert#SetUpLinterTest('cpp', 'clangtidy') - call ale#test#SetFilename('../test_c_projects/makefile_project/subdir/file.cpp') + call ale#test#SetFilename('../test-files/c/makefile_project/subdir/file.cpp') let g:ale_cpp_clangtidy_options = '' AssertLinter 'clang-tidy', \ ale#Escape('clang-tidy') \ . ' %s ' - \ . '-- -I' . ale#Escape(ale#path#Simplify(g:dir . '/../test_c_projects/makefile_project/include')) + \ . '-- -I' . ale#Escape(ale#path#Simplify(g:dir . '/../test-files/c/makefile_project/include')) diff --git a/test/command_callback/test_cargo_command_callbacks.vader b/test/command_callback/test_cargo_command_callbacks.vader index ee942c28..25dd0253 100644 --- a/test/command_callback/test_cargo_command_callbacks.vader +++ b/test/command_callback/test_cargo_command_callbacks.vader @@ -1,8 +1,8 @@ Before: call ale#assert#SetUpLinterTest('rust', 'cargo') - call ale#test#SetFilename('cargo_paths/test.rs') + call ale#test#SetFilename('../test-files/cargo/test.rs') - let g:cd = 'cd ' . ale#Escape(ale#path#Simplify(g:dir . '/cargo_paths')) . ' && ' + let g:cd = 'cd ' . ale#Escape(ale#path#Simplify(g:dir . '/../test-files/cargo')) . ' && ' let g:suffix = ' --frozen --message-format=json -q' let g:ale_rust_cargo_avoid_whole_workspace = 0 @@ -120,9 +120,9 @@ Execute(--all-features should be used when g:ale_rust_cargo_default_feature_beha Execute(Cargo should run from the crate directory when set to avoid the workspace): let g:ale_rust_cargo_avoid_whole_workspace = 1 - call ale#test#SetFilename('cargo_workspace_paths/subpath/test.rs') + call ale#test#SetFilename('../test-files/cargo/workspace_paths/subpath/test.rs') - AssertLinterCwd ale#path#Simplify(g:dir . '/cargo_workspace_paths/subpath') + AssertLinterCwd ale#path#Simplify(g:dir . '/../test-files/cargo/workspace_paths/subpath') call ale#semver#ResetVersionCache() AssertLinter 'cargo', [ \ ale#Escape('cargo') . ' --version', @@ -131,7 +131,7 @@ Execute(Cargo should run from the crate directory when set to avoid the workspac Execute(Cargo should not run from the crate directory when not set to avoid the workspace): let g:ale_rust_cargo_avoid_whole_workspace = 0 - call ale#test#SetFilename('cargo_workspace_paths/subpath/test.rs') + call ale#test#SetFilename('../test-files/cargo/workspace_paths/subpath/test.rs') AssertLinterCwd '' call ale#semver#ResetVersionCache() diff --git a/test/command_callback/test_checkstyle_command_callback.vader b/test/command_callback/test_checkstyle_command_callback.vader index 5824df87..8197e6b5 100644 --- a/test/command_callback/test_checkstyle_command_callback.vader +++ b/test/command_callback/test_checkstyle_command_callback.vader @@ -29,11 +29,11 @@ Execute(Custom options should be supported): \ . ' %s' Execute(configuration files set in _config should be supported): - let b:ale_java_checkstyle_config = ale#path#Simplify(g:dir . '/checkstyle_paths/other_config.xml') + let b:ale_java_checkstyle_config = ale#path#Simplify(g:dir . '/../test-files/checkstyle/other_config.xml') AssertLinter 'checkstyle', \ ale#Escape('checkstyle') - \ . ' -c ' . ale#Escape(ale#path#Simplify(g:dir . '/checkstyle_paths/other_config.xml')) + \ . ' -c ' . ale#Escape(ale#path#Simplify(g:dir . '/../test-files/checkstyle/other_config.xml')) \ . ' %s' Execute(configuration files set in _options should be preferred over _config): @@ -47,7 +47,7 @@ Execute(configuration files set in _options should be preferred over _config): AssertLinter 'checkstyle', ale#Escape('checkstyle') . ' -x -c /bar.xml %s' Execute(google_checks.xml should be used by default): - call ale#test#SetFilename('checkstyle_paths/test.java') + call ale#test#SetFilename('../test-files/checkstyle/test.java') AssertLinter 'checkstyle', \ ale#Escape('checkstyle') @@ -55,18 +55,18 @@ Execute(google_checks.xml should be used by default): \ . ' %s' Execute(Other relative paths should be supported): - let b:ale_java_checkstyle_config = 'checkstyle_paths/other_config.xml' + let b:ale_java_checkstyle_config = '../test-files/checkstyle/other_config.xml' AssertLinter 'checkstyle', \ ale#Escape('checkstyle') - \ . ' -c ' . ale#Escape(ale#path#Simplify(g:dir . '/checkstyle_paths/other_config.xml')) + \ . ' -c ' . ale#Escape(ale#path#Simplify(g:dir . '/../test-files/checkstyle/other_config.xml')) \ . ' %s' - call ale#test#SetFilename('checkstyle_paths/test.java') + call ale#test#SetFilename('../test-files/checkstyle/test.java') let b:ale_java_checkstyle_config = 'other_config.xml' AssertLinter 'checkstyle', \ ale#Escape('checkstyle') - \ . ' -c ' . ale#Escape(ale#path#Simplify(g:dir . '/checkstyle_paths/other_config.xml')) + \ . ' -c ' . ale#Escape(ale#path#Simplify(g:dir . '/../test-files/checkstyle/other_config.xml')) \ . ' %s' diff --git a/test/command_callback/test_cpp_ccls_command_callbacks.vader b/test/command_callback/test_cpp_ccls_command_callbacks.vader index f603ac07..12aa30e3 100644 --- a/test/command_callback/test_cpp_ccls_command_callbacks.vader +++ b/test/command_callback/test_cpp_ccls_command_callbacks.vader @@ -16,27 +16,27 @@ Execute(The project root should be detected correctly using compile_commands.jso AssertLSPProject '' - call ale#test#SetFilename('ccls_paths/with_compile_commands_json/dummy.cpp') + call ale#test#SetFilename('../test-files/ccls/with_compile_commands_json/dummy.cpp') - AssertLSPProject ale#path#Simplify(g:dir . '/ccls_paths/with_compile_commands_json') + AssertLSPProject ale#path#Simplify(g:dir . '/../test-files/ccls/with_compile_commands_json') Execute(The project root should be detected correctly using .ccls file): call ale#test#SetFilename(tempname() . '/dummy.cpp') AssertLSPProject '' - call ale#test#SetFilename('ccls_paths/with_ccls/dummy.cpp') + call ale#test#SetFilename('../test-files/ccls/with_ccls/dummy.cpp') - AssertLSPProject ale#path#Simplify(g:dir . '/ccls_paths/with_ccls') + AssertLSPProject ale#path#Simplify(g:dir . '/../test-files/ccls/with_ccls') Execute(The project root should be detected correctly using .ccls-root file): call ale#test#SetFilename(tempname() . '/dummy.cpp') AssertLSPProject '' - call ale#test#SetFilename('ccls_paths/with_ccls-root/dummy.cpp') + call ale#test#SetFilename('../test-files/ccls/with_ccls-root/dummy.cpp') - AssertLSPProject ale#path#Simplify(g:dir . '/ccls_paths/with_ccls-root') + AssertLSPProject ale#path#Simplify(g:dir . '/../test-files/ccls/with_ccls-root') Execute(The executable should be configurable): AssertLinter 'ccls', ale#Escape('ccls') @@ -53,17 +53,17 @@ Execute(The initialization options should be configurable): AssertLSPOptions { 'cacheDirectory': '/tmp/ccls' } Execute(The compile command database should be detected correctly): - call ale#test#SetFilename('ccls_paths/with_ccls/dummy.c') + call ale#test#SetFilename('../test-files/ccls/with_ccls/dummy.c') AssertLSPOptions {} - call ale#test#SetFilename('ccls_paths/with_compile_commands_json/dummy.c') + call ale#test#SetFilename('../test-files/ccls/with_compile_commands_json/dummy.c') AssertLSPOptions { 'compilationDatabaseDirectory': - \ ale#path#Simplify(g:dir . '/ccls_paths/with_compile_commands_json') } + \ ale#path#Simplify(g:dir . '/../test-files/ccls/with_compile_commands_json') } - call ale#test#SetFilename('ccls_paths/with_build_dir/dummy.c') + call ale#test#SetFilename('../test-files/ccls/with_build_dir/dummy.c') let b:ale_c_build_dir_names = ['unusual_build_dir_name'] AssertLSPOptions { 'compilationDatabaseDirectory': - \ ale#path#Simplify(g:dir . '/ccls_paths/with_build_dir/unusual_build_dir_name') } + \ ale#path#Simplify(g:dir . '/../test-files/ccls/with_build_dir/unusual_build_dir_name') } diff --git a/test/command_callback/test_cpp_cppcheck_command_callbacks.vader b/test/command_callback/test_cpp_cppcheck_command_callbacks.vader index 01e4f776..62195803 100644 --- a/test/command_callback/test_cpp_cppcheck_command_callbacks.vader +++ b/test/command_callback/test_cpp_cppcheck_command_callbacks.vader @@ -21,9 +21,9 @@ Execute(The executable should be configurable): AssertLinter 'foobar', ale#Escape('foobar') . b:command_tail Execute(cppcheck for C++ should detect compile_commands.json files): - call ale#test#SetFilename('cppcheck_paths/one/foo.cpp') + call ale#test#SetFilename('../test-files/cppcheck/one/foo.cpp') - AssertLinterCwd ale#path#Simplify(g:dir . '/cppcheck_paths/one') + AssertLinterCwd ale#path#Simplify(g:dir . '/../test-files/cppcheck/one') AssertLinter 'cppcheck', ale#Escape('cppcheck') \ . ' -q --language=c++' \ . ' --template=' . ale#Escape('{file}:{line}:{column}: {severity}:{inconclusive:inconclusive:} {message} [{id}]\\n{code}') @@ -31,9 +31,9 @@ Execute(cppcheck for C++ should detect compile_commands.json files): \ . ' --enable=style %t' Execute(cppcheck for C++ should detect compile_commands.json files in build directories): - call ale#test#SetFilename('cppcheck_paths/with_build_dir/foo.cpp') + call ale#test#SetFilename('../test-files/cppcheck/with_build_dir/foo.cpp') - AssertLinterCwd ale#path#Simplify(g:dir . '/cppcheck_paths/with_build_dir') + AssertLinterCwd ale#path#Simplify(g:dir . '/../test-files/cppcheck/with_build_dir') AssertLinter 'cppcheck', ale#Escape('cppcheck') \ . ' -q --language=c++' \ . ' --template=' . ale#Escape('{file}:{line}:{column}: {severity}:{inconclusive:inconclusive:} {message} [{id}]\\n{code}') @@ -41,26 +41,26 @@ Execute(cppcheck for C++ should detect compile_commands.json files in build dire \ . ' --enable=style %t' Execute(cppcheck for C++ should include file dir if compile_commands.json file is not found): - call ale#test#SetFilename('cppcheck_paths/foo.cpp') + call ale#test#SetFilename('../test-files/cppcheck/foo.cpp') AssertLinter 'cppcheck', \ ale#Escape('cppcheck') \ . ' -q --language=c++' \ . ' --template=' . ale#Escape('{file}:{line}:{column}: {severity}:{inconclusive:inconclusive:} {message} [{id}]\\n{code}') \ . ' --enable=style' - \ . ' -I' . ale#Escape(ale#path#Simplify(g:dir . '/cppcheck_paths')) + \ . ' -I' . ale#Escape(ale#path#Simplify(g:dir . '/../test-files/cppcheck')) \ . ' %t' Execute(cppcheck for C++ should ignore compile_commands.json file if buffer is modified): - call ale#test#SetFilename('cppcheck_paths/one/foo.cpp') + call ale#test#SetFilename('../test-files/cppcheck/one/foo.cpp') set buftype= set modified - AssertLinterCwd ale#path#Simplify(g:dir . '/cppcheck_paths/one') + AssertLinterCwd ale#path#Simplify(g:dir . '/../test-files/cppcheck/one') AssertLinter 'cppcheck', ale#Escape('cppcheck') \ . ' -q --language=c++' \ . ' --template=' . ale#Escape('{file}:{line}:{column}: {severity}:{inconclusive:inconclusive:} {message} [{id}]\\n{code}') \ . ' --enable=style' - \ . ' -I' . ale#Escape(ale#path#Simplify(g:dir . '/cppcheck_paths/one')) + \ . ' -I' . ale#Escape(ale#path#Simplify(g:dir . '/../test-files/cppcheck/one')) \ . ' %t' diff --git a/test/command_callback/test_cpp_cquery_command_callbacks.vader b/test/command_callback/test_cpp_cquery_command_callbacks.vader index 842f123e..f638e401 100644 --- a/test/command_callback/test_cpp_cquery_command_callbacks.vader +++ b/test/command_callback/test_cpp_cquery_command_callbacks.vader @@ -12,18 +12,18 @@ Execute(The project root should be detected correctly using compile_commands.jso AssertLSPProject '' - call ale#test#SetFilename('cquery_paths/dummy.cpp') + call ale#test#SetFilename('../test-files/cquery/dummy.cpp') - AssertLSPProject ale#path#Simplify(g:dir . '/cquery_paths') + AssertLSPProject ale#path#Simplify(g:dir . '/../test-files/cquery') Execute(The project root should be detected correctly using .cquery file): call ale#test#SetFilename(tempname() . '/dummy.cpp') AssertLSPProject '' - call ale#test#SetFilename('cquery_paths/with_cquery/dummy.cpp') + call ale#test#SetFilename('../test-files/cquery/with_cquery/dummy.cpp') - AssertLSPProject ale#path#Simplify(g:dir . '/cquery_paths/with_cquery') + AssertLSPProject ale#path#Simplify(g:dir . '/../test-files/cquery/with_cquery') Execute(The executable should be configurable): AssertLinter 'cquery', ale#Escape('cquery') diff --git a/test/command_callback/test_cucumber_command_callback.vader b/test/command_callback/test_cucumber_command_callback.vader index 7a8457fc..6a7851ef 100644 --- a/test/command_callback/test_cucumber_command_callback.vader +++ b/test/command_callback/test_cucumber_command_callback.vader @@ -5,11 +5,11 @@ After: call ale#assert#TearDownLinterTest() Execute(Should require the nearest features dir, if one is found): - call ale#test#SetFilename('../cucumber_fixtures/features/cuke.feature') + call ale#test#SetFilename('../test-files/cucumber/features/cuke.feature') AssertLinter 'cucumber', \ 'cucumber --dry-run --quiet --strict --format=json ' - \ . '-r ' . ale#Escape(ale#path#Simplify(g:dir . '/../cucumber_fixtures/features/')) . ' %t' + \ . '-r ' . ale#Escape(ale#path#Simplify(g:dir . '/../test-files/cucumber/features/')) . ' %t' Execute(Should require nothing if no features dir is found): call ale#test#SetFilename('something/without/a/features/dir') diff --git a/test/command_callback/test_dartanalyzer_command_callback.vader b/test/command_callback/test_dartanalyzer_command_callback.vader index 62b1d636..7275b187 100644 --- a/test/command_callback/test_dartanalyzer_command_callback.vader +++ b/test/command_callback/test_dartanalyzer_command_callback.vader @@ -13,8 +13,8 @@ Execute(The executable should be configurable): AssertLinter 'foobar', ale#Escape('foobar') . ' %s' Execute(The .packages file should be set if detected): - call ale#test#SetFilename('dart_paths/foo') + call ale#test#SetFilename('../test-files/dart/foo') AssertLinter 'dartanalyzer', ale#Escape('dartanalyzer') - \ . ' --packages ' . ale#Escape(ale#path#Simplify(g:dir . '/dart_paths/.packages')) + \ . ' --packages ' . ale#Escape(ale#path#Simplify(g:dir . '/../test-files/dart/.packages')) \ . ' %s' diff --git a/test/command_callback/test_dialyxir_command_callback.vader b/test/command_callback/test_dialyxir_command_callback.vader index 9fe27dfb..250ffefd 100644 --- a/test/command_callback/test_dialyxir_command_callback.vader +++ b/test/command_callback/test_dialyxir_command_callback.vader @@ -1,16 +1,16 @@ Before: call ale#assert#SetUpLinterTest('elixir', 'dialyxir') - call ale#test#SetFilename('elixir_paths/mix_project/lib/app.ex') + call ale#test#SetFilename('../test-files/elixir/mix_project/lib/app.ex') After: call ale#assert#TearDownLinterTest() Execute(Builds dialyxir command with a normal project): - AssertLinterCwd ale#path#Simplify(g:dir . '/elixir_paths/mix_project') + AssertLinterCwd ale#path#Simplify(g:dir . '/../test-files/elixir/mix_project') AssertLinter 'mix', 'mix help dialyzer && mix dialyzer' Execute(Builds dialyxir command with an umbrella project): - call ale#test#SetFilename('elixir_paths/umbrella_project/apps/mix_project/lib/app.ex') + call ale#test#SetFilename('../test-files/elixir/umbrella_project/apps/mix_project/lib/app.ex') - AssertLinterCwd ale#path#Simplify(g:dir . '/elixir_paths/umbrella_project') + AssertLinterCwd ale#path#Simplify(g:dir . '/../test-files/elixir/umbrella_project') AssertLinter 'mix', 'mix help dialyzer && mix dialyzer' diff --git a/test/command_callback/test_dogma_command_callback.vader b/test/command_callback/test_dogma_command_callback.vader index 99267505..c8b599af 100644 --- a/test/command_callback/test_dogma_command_callback.vader +++ b/test/command_callback/test_dogma_command_callback.vader @@ -1,16 +1,16 @@ Before: call ale#assert#SetUpLinterTest('elixir', 'dogma') - call ale#test#SetFilename('elixir_paths/mix_project/lib/app.ex') + call ale#test#SetFilename('../test-files/elixir/mix_project/lib/app.ex') After: call ale#assert#TearDownLinterTest() Execute(Builds dogma command with a normal project): - AssertLinterCwd ale#path#Simplify(g:dir . '/elixir_paths/mix_project') + AssertLinterCwd ale#path#Simplify(g:dir . '/../test-files/elixir/mix_project') AssertLinter 'mix', 'mix help dogma && mix dogma %s --format=flycheck' Execute(Builds dogma command with an umbrella project): - call ale#test#SetFilename('elixir_paths/umbrella_project/apps/mix_project/lib/app.ex') + call ale#test#SetFilename('../test-files/elixir/umbrella_project/apps/mix_project/lib/app.ex') - AssertLinterCwd ale#path#Simplify(g:dir . '/elixir_paths/umbrella_project') + AssertLinterCwd ale#path#Simplify(g:dir . '/../test-files/elixir/umbrella_project') AssertLinter 'mix', 'mix help dogma && mix dogma %s --format=flycheck' diff --git a/test/command_callback/test_elixir_credo_command_callback.vader b/test/command_callback/test_elixir_credo_command_callback.vader index e3c57c61..9c639c57 100644 --- a/test/command_callback/test_elixir_credo_command_callback.vader +++ b/test/command_callback/test_elixir_credo_command_callback.vader @@ -1,6 +1,6 @@ Before: call ale#assert#SetUpLinterTest('elixir', 'credo') - call ale#test#SetFilename('elixir_paths/mix_project/lib/app.ex') + call ale#test#SetFilename('../test-files/elixir/mix_project/lib/app.ex') After: @@ -9,14 +9,14 @@ After: call ale#assert#TearDownLinterTest() Execute(Builds credo command with normal project): - AssertLinterCwd ale#path#Simplify(g:dir . '/elixir_paths/mix_project') + AssertLinterCwd ale#path#Simplify(g:dir . '/../test-files/elixir/mix_project') AssertLinter 'mix', \ 'mix help credo && mix credo suggest --format=flycheck --read-from-stdin %s' Execute(Builds credo command with umbrella project): - call ale#test#SetFilename('elixir_paths/umbrella_project/apps/mix_project/lib/app.ex') + call ale#test#SetFilename('../test-files/elixir/umbrella_project/apps/mix_project/lib/app.ex') - AssertLinterCwd ale#path#Simplify(g:dir . '/elixir_paths/umbrella_project') + AssertLinterCwd ale#path#Simplify(g:dir . '/../test-files/elixir/umbrella_project') AssertLinter 'mix', \ 'mix help credo && mix credo suggest --format=flycheck --read-from-stdin %s' diff --git a/test/command_callback/test_elixir_ls_command_callbacks.vader b/test/command_callback/test_elixir_ls_command_callbacks.vader index 41a5bc34..84e805ba 100644 --- a/test/command_callback/test_elixir_ls_command_callbacks.vader +++ b/test/command_callback/test_elixir_ls_command_callbacks.vader @@ -21,12 +21,12 @@ Execute(should configure elixir-ls release location): endif Execute(should set correct LSP values): - call ale#test#SetFilename('elixir_paths/umbrella_project/apps/app1/lib/app.ex') + call ale#test#SetFilename('../test-files/elixir/umbrella_project/apps/app1/lib/app.ex') AssertLSPLanguage 'elixir' AssertLSPOptions {} AssertLSPConfig {} - AssertLSPProject ale#path#Simplify(g:dir . '/elixir_paths/umbrella_project') + AssertLSPProject ale#path#Simplify(g:dir . '/../test-files/elixir/umbrella_project') Execute(should accept configuration settings): AssertLSPConfig {} diff --git a/test/command_callback/test_elixir_mix_command_callbacks.vader b/test/command_callback/test_elixir_mix_command_callbacks.vader index 8dfba231..a04bee55 100644 --- a/test/command_callback/test_elixir_mix_command_callbacks.vader +++ b/test/command_callback/test_elixir_mix_command_callbacks.vader @@ -1,6 +1,6 @@ Before: call ale#assert#SetUpLinterTest('elixir', 'mix') - call ale#test#SetFilename('elixir_paths/mix_project/lib/app.ex') + call ale#test#SetFilename('../test-files/elixir/mix_project/lib/app.ex') let g:env_prefix = ale#Env('MIX_BUILD_PATH', 'TEMP_DIR') After: @@ -9,11 +9,11 @@ After: call ale#assert#TearDownLinterTest() Execute(The default mix command should be correct): - AssertLinterCwd ale#path#Simplify(g:dir . '/elixir_paths/mix_project') + AssertLinterCwd ale#path#Simplify(g:dir . '/../test-files/elixir/mix_project') AssertLinter 'mix', g:env_prefix . 'mix compile %s' Execute(Build mix commands with an umbrella root): - call ale#test#SetFilename('elixir_paths/umbrella_project/apps/mix_project/lib/app.ex') + call ale#test#SetFilename('../test-files/elixir/umbrella_project/apps/mix_project/lib/app.ex') - AssertLinterCwd ale#path#Simplify(g:dir . '/elixir_paths/umbrella_project') + AssertLinterCwd ale#path#Simplify(g:dir . '/../test-files/elixir/umbrella_project') AssertLinter 'mix', g:env_prefix . 'mix compile %s' diff --git a/test/command_callback/test_elm_ls_command_callbacks.vader b/test/command_callback/test_elm_ls_command_callbacks.vader index 3e1d5fbf..98b01c96 100644 --- a/test/command_callback/test_elm_ls_command_callbacks.vader +++ b/test/command_callback/test_elm_ls_command_callbacks.vader @@ -5,19 +5,19 @@ After: call ale#assert#TearDownLinterTest() Execute(The default executable path should be correct): - call ale#test#SetFilename('../elm-test-files/newapp/src/Main.elm') + call ale#test#SetFilename('../test-files/elm/newapp/src/Main.elm') AssertLinter 'elm-language-server', ale#Escape('elm-language-server') . ' --stdio' Execute(The project root should be detected correctly): AssertLSPProject '' - call ale#test#SetFilename('../elm-test-files/newapp/src/Main.elm') + call ale#test#SetFilename('../test-files/elm/newapp/src/Main.elm') - AssertLSPProject ale#path#Simplify(g:dir . '/../elm-test-files/newapp') + AssertLSPProject ale#path#Simplify(g:dir . '/../test-files/elm/newapp') Execute(Should let users configure a global executable and override local paths): - call ale#test#SetFilename('../elm-test-files/newapp/src/Main.elm') + call ale#test#SetFilename('../test-files/elm/newapp/src/Main.elm') let g:ale_elm_ls_executable = '/path/to/custom/elm-language-server' let g:ale_elm_ls_use_global = 1 diff --git a/test/command_callback/test_elm_make_command_callback.vader b/test/command_callback/test_elm_make_command_callback.vader index 97a9e91d..90e0c920 100644 --- a/test/command_callback/test_elm_make_command_callback.vader +++ b/test/command_callback/test_elm_make_command_callback.vader @@ -7,48 +7,48 @@ After: call ale#assert#TearDownLinterTest() Execute(should get valid executable with default params): - call ale#test#SetFilename('../elm-test-files/newapp/src/Main.elm') + call ale#test#SetFilename('../test-files/elm/newapp/src/Main.elm') - let g:executable = ale#path#Simplify(g:dir . '/../elm-test-files/newapp/node_modules/.bin/elm') + let g:executable = ale#path#Simplify(g:dir . '/../test-files/elm/newapp/node_modules/.bin/elm') - AssertLinterCwd ale#path#Simplify(g:dir . '/../elm-test-files/newapp') + AssertLinterCwd ale#path#Simplify(g:dir . '/../test-files/elm/newapp') AssertLinter g:executable, \ ale#Escape(g:executable) . ' make --report=json --output=/dev/null %t' Execute(should get elm-test executable for test code with elm >= 0.19): - call ale#test#SetFilename('../elm-test-files/newapp/tests/TestSuite.elm') + call ale#test#SetFilename('../test-files/elm/newapp/tests/TestSuite.elm') - let g:executable = ale#path#Simplify(g:dir . '/../elm-test-files/newapp/node_modules/.bin/elm-test') + let g:executable = ale#path#Simplify(g:dir . '/../test-files/elm/newapp/node_modules/.bin/elm-test') - AssertLinterCwd ale#path#Simplify(g:dir . '/../elm-test-files/newapp') + AssertLinterCwd ale#path#Simplify(g:dir . '/../test-files/elm/newapp') AssertLinter g:executable, \ ale#Escape(g:executable) . ' make --report=json --output=/dev/null --compiler ' - \ . ale#path#Simplify(g:dir . '/../elm-test-files/newapp/node_modules/.bin/elm') . ' %t' + \ . ale#path#Simplify(g:dir . '/../test-files/elm/newapp/node_modules/.bin/elm') . ' %t' Execute(should fallback to elm executable with elm >= 0.19): - call ale#test#SetFilename('../elm-test-files/newapp-notests/tests/TestMain.elm') + call ale#test#SetFilename('../test-files/elm/newapp-notests/tests/TestMain.elm') - let g:executable = ale#path#Simplify(g:dir . '/../elm-test-files/newapp-notests/node_modules/.bin/elm') + let g:executable = ale#path#Simplify(g:dir . '/../test-files/elm/newapp-notests/node_modules/.bin/elm') - AssertLinterCwd ale#path#Simplify(g:dir . '/../elm-test-files/newapp-notests') + AssertLinterCwd ale#path#Simplify(g:dir . '/../test-files/elm/newapp-notests') AssertLinter g:executable, \ ale#Escape(g:executable) . ' make --report=json --output=/dev/null %t' Execute(should get plain elm executable for test code with elm < 0.19): - call ale#test#SetFilename('../elm-test-files/oldapp/tests/TestSuite.elm') + call ale#test#SetFilename('../test-files/elm/oldapp/tests/TestSuite.elm') - let g:executable = ale#path#Simplify(g:dir . '/../elm-test-files/oldapp/node_modules/.bin/elm') + let g:executable = ale#path#Simplify(g:dir . '/../test-files/elm/oldapp/node_modules/.bin/elm') - AssertLinterCwd ale#path#Simplify(g:dir . '/../elm-test-files/oldapp') + AssertLinterCwd ale#path#Simplify(g:dir . '/../test-files/elm/oldapp') AssertLinter g:executable, \ ale#Escape(g:executable) . ' make --report=json --output=/dev/null %t' Execute(should get valid executable with 'use_global' params): let g:ale_elm_make_use_global = 1 - call ale#test#SetFilename('../elm-test-files/newapp/src/Main.elm') + call ale#test#SetFilename('../test-files/elm/newapp/src/Main.elm') - AssertLinterCwd ale#path#Simplify(g:dir . '/../elm-test-files/newapp') + AssertLinterCwd ale#path#Simplify(g:dir . '/../test-files/elm/newapp') AssertLinter 'elm', \ ale#Escape('elm') . ' make --report=json --output=/dev/null %t' @@ -56,8 +56,8 @@ Execute(should get valid executable with 'use_global' and 'executable' params): let g:ale_elm_make_executable = 'other-elm' let g:ale_elm_make_use_global = 1 - call ale#test#SetFilename('../elm-test-files/newapp/src/Main.elm') + call ale#test#SetFilename('../test-files/elm/newapp/src/Main.elm') - AssertLinterCwd ale#path#Simplify(g:dir . '/../elm-test-files/newapp') + AssertLinterCwd ale#path#Simplify(g:dir . '/../test-files/elm/newapp') AssertLinter 'other-elm', \ ale#Escape('other-elm') . ' make --report=json --output=/dev/null %t' diff --git a/test/command_callback/test_erb_command_callback.vader b/test/command_callback/test_erb_command_callback.vader index c29d9215..c64c7ba5 100644 --- a/test/command_callback/test_erb_command_callback.vader +++ b/test/command_callback/test_erb_command_callback.vader @@ -5,12 +5,12 @@ After: call ale#assert#TearDownLinterTest() Execute(Executable should not contain any filter code by default): - call ale#test#SetFilename('../ruby_fixtures/not_a_rails_app/file.rb') + call ale#test#SetFilename('../test-files/ruby/not_a_rails_app/file.rb') AssertLinter 'erb', 'erb -P -T - -x %t | ruby -c' Execute(Executable should filter invalid eRuby when inside a Rails project): - call ale#test#SetFilename('../ruby_fixtures/valid_rails_app/app/views/my_great_view.html.erb') + call ale#test#SetFilename('../test-files/ruby/valid_rails_app/app/views/my_great_view.html.erb') AssertLinter 'erb', \ 'ruby -r erb -e ' . ale#Escape('puts ERB.new($stdin.read.gsub(%{<%=},%{<%}), nil, %{-}).src') . '< %t | ruby -c' diff --git a/test/command_callback/test_erubi_command_callback.vader b/test/command_callback/test_erubi_command_callback.vader index 0d88ff93..cd4a0b68 100644 --- a/test/command_callback/test_erubi_command_callback.vader +++ b/test/command_callback/test_erubi_command_callback.vader @@ -5,7 +5,7 @@ After: call ale#assert#TearDownLinterTest() Execute(Executable should not contain any filter code by default): - call ale#test#SetFilename('../ruby_fixtures/not_a_rails_app/file.rb') + call ale#test#SetFilename('../test-files/ruby/not_a_rails_app/file.rb') AssertLinter 'ruby', [ \ 'ruby -r erubi/capture_end -e ' . ale#Escape('""'), @@ -13,7 +13,7 @@ Execute(Executable should not contain any filter code by default): \] Execute(Executable should filter invalid eRuby when inside a Rails project): - call ale#test#SetFilename('../ruby_fixtures/valid_rails_app/app/views/my_great_view.html.erb') + call ale#test#SetFilename('../test-files/ruby/valid_rails_app/app/views/my_great_view.html.erb') AssertLinter 'ruby', [ \ 'ruby -r erubi/capture_end -e ' . ale#Escape('""'), diff --git a/test/command_callback/test_erubis_command_callback.vader b/test/command_callback/test_erubis_command_callback.vader index c9cdb80f..cfca54a2 100644 --- a/test/command_callback/test_erubis_command_callback.vader +++ b/test/command_callback/test_erubis_command_callback.vader @@ -5,12 +5,12 @@ After: call ale#assert#TearDownLinterTest() Execute(Executable should not contain any filter code by default): - call ale#test#SetFilename('../ruby_fixtures/not_a_rails_app/file.rb') + call ale#test#SetFilename('../test-files/ruby/not_a_rails_app/file.rb') AssertLinter 'erubis', 'erubis -x %t | ruby -c' Execute(Executable should filter invalid eRuby when inside a Rails project): - call ale#test#SetFilename('../ruby_fixtures/valid_rails_app/app/views/my_great_view.html.erb') + call ale#test#SetFilename('../test-files/ruby/valid_rails_app/app/views/my_great_view.html.erb') AssertLinter 'erubis', \ 'ruby -r erubis -e ' . ale#Escape('puts Erubis::Eruby.new($stdin.read.gsub(%{<%=},%{<%})).src') . '< %t | ruby -c' diff --git a/test/command_callback/test_eslint_command_callback.vader b/test/command_callback/test_eslint_command_callback.vader index 071ebdc6..81518af9 100644 --- a/test/command_callback/test_eslint_command_callback.vader +++ b/test/command_callback/test_eslint_command_callback.vader @@ -15,62 +15,62 @@ Execute(The default command should be correct): AssertLinter 'eslint', ale#Escape('eslint') . b:args Execute(create-react-app directories should be detected correctly): - call ale#test#SetFilename('../eslint-test-files/react-app/subdir/testfile.js') + call ale#test#SetFilename('../test-files/eslint/react-app/subdir/testfile.js') - let b:executable = ale#path#Simplify(g:dir . '/../eslint-test-files/react-app/node_modules/eslint/bin/eslint.js') - AssertLinterCwd ale#path#Simplify(g:dir . '/../eslint-test-files/react-app') + let b:executable = ale#path#Simplify(g:dir . '/../test-files/eslint/react-app/node_modules/eslint/bin/eslint.js') + AssertLinterCwd ale#path#Simplify(g:dir . '/../test-files/eslint/react-app') AssertLinter b:executable, \ (has('win32') ? ale#Escape('node.exe') . ' ' : '') \ . ale#Escape(b:executable) . b:args Execute(use-global should override create-react-app detection): - call ale#test#SetFilename('../eslint-test-files/react-app/subdir/testfile.js') + call ale#test#SetFilename('../test-files/eslint/react-app/subdir/testfile.js') let g:ale_javascript_eslint_use_global = 1 let g:ale_javascript_eslint_executable = 'eslint_d' let b:executable = 'eslint_d' - AssertLinterCwd ale#path#Simplify(g:dir . '/../eslint-test-files/react-app') + AssertLinterCwd ale#path#Simplify(g:dir . '/../test-files/eslint/react-app') AssertLinter b:executable, ale#Escape(b:executable) . b:args Execute(other app directories should be detected correctly): - call ale#test#SetFilename('../eslint-test-files/other-app/subdir/testfile.js') + call ale#test#SetFilename('../test-files/eslint/other-app/subdir/testfile.js') - let b:executable = ale#path#Simplify(g:dir . '/../eslint-test-files/node_modules/.bin/eslint') - AssertLinterCwd ale#path#Simplify(g:dir . '/../eslint-test-files') + let b:executable = ale#path#Simplify(g:dir . '/../test-files/eslint/node_modules/.bin/eslint') + AssertLinterCwd ale#path#Simplify(g:dir . '/../test-files/eslint') AssertLinter b:executable, ale#Escape(b:executable) . b:args Execute(use-global should override other app directories): - call ale#test#SetFilename('../eslint-test-files/other-app/subdir/testfile.js') + call ale#test#SetFilename('../test-files/eslint/other-app/subdir/testfile.js') let g:ale_javascript_eslint_use_global = 1 let g:ale_javascript_eslint_executable = 'eslint_d' let b:executable = 'eslint_d' - AssertLinterCwd ale#path#Simplify(g:dir . '/../eslint-test-files') + AssertLinterCwd ale#path#Simplify(g:dir . '/../test-files/eslint') AssertLinter b:executable, ale#Escape(b:executable) . b:args Execute(eslint_d should be detected correctly): - call ale#test#SetFilename('../eslint-test-files/app-with-eslint-d/testfile.js') + call ale#test#SetFilename('../test-files/eslint/app-with-eslint-d/testfile.js') - let b:executable = ale#path#Simplify(g:dir . '/../eslint-test-files/app-with-eslint-d/node_modules/.bin/eslint_d') - AssertLinterCwd ale#path#Simplify(g:dir . '/../eslint-test-files/app-with-eslint-d') + let b:executable = ale#path#Simplify(g:dir . '/../test-files/eslint/app-with-eslint-d/node_modules/.bin/eslint_d') + AssertLinterCwd ale#path#Simplify(g:dir . '/../test-files/eslint/app-with-eslint-d') AssertLinter b:executable, ale#Escape(b:executable) . b:args Execute(eslint.js executables should be run with node on Windows): - call ale#test#SetFilename('../eslint-test-files/react-app/subdir/testfile.js') + call ale#test#SetFilename('../test-files/eslint/react-app/subdir/testfile.js') - let b:executable = ale#path#Simplify(g:dir . '/../eslint-test-files/react-app/node_modules/eslint/bin/eslint.js') - AssertLinterCwd ale#path#Simplify(g:dir . '/../eslint-test-files/react-app') + let b:executable = ale#path#Simplify(g:dir . '/../test-files/eslint/react-app/node_modules/eslint/bin/eslint.js') + AssertLinterCwd ale#path#Simplify(g:dir . '/../test-files/eslint/react-app') AssertLinter b:executable, \ (has('win32') ? ale#Escape('node.exe') . ' ' : '') \ . ale#Escape(b:executable) . b:args Execute(eslint.js should be run from a containing project with eslint): - call ale#test#SetFilename('../eslint-test-files/react-app/subdir-with-package-json/testfile.js') + call ale#test#SetFilename('../test-files/eslint/react-app/subdir-with-package-json/testfile.js') - let b:executable = ale#path#Simplify(g:dir . '/../eslint-test-files/react-app/node_modules/eslint/bin/eslint.js') - AssertLinterCwd ale#path#Simplify(g:dir . '/../eslint-test-files/react-app') + let b:executable = ale#path#Simplify(g:dir . '/../test-files/eslint/react-app/node_modules/eslint/bin/eslint.js') + AssertLinterCwd ale#path#Simplify(g:dir . '/../test-files/eslint/react-app') AssertLinter b:executable, \ (has('win32') ? ale#Escape('node.exe') . ' ' : '') \ . ale#Escape(b:executable) . b:args diff --git a/test/command_callback/test_flake8_command_callback.vader b/test/command_callback/test_flake8_command_callback.vader index 3cf1ed0c..81efe497 100644 --- a/test/command_callback/test_flake8_command_callback.vader +++ b/test/command_callback/test_flake8_command_callback.vader @@ -56,7 +56,7 @@ Execute(The option for disabling changing directories should work): \] Execute(The option for changing directory to project root should work): - silent execute 'file ' . fnameescape(g:dir . '/python_paths/namespace_package_tox/namespace/foo/bar.py') + silent execute 'file ' . fnameescape(g:dir . '/../test-files/python/namespace_package_tox/namespace/foo/bar.py') AssertLinterCwd ale#python#FindProjectRootIni(bufnr('')) call ale#semver#ResetVersionCache() @@ -67,7 +67,7 @@ Execute(The option for changing directory to project root should work): Execute(The option for changing directory to file dir should work): let g:ale_python_flake8_change_directory = 'file' - silent execute 'file ' . fnameescape(g:dir . '/python_paths/namespace_package_tox/namespace/foo/bar.py') + silent execute 'file ' . fnameescape(g:dir . '/../test-files/python/namespace_package_tox/namespace/foo/bar.py') AssertLinter 'flake8', [ \ ale#Escape('flake8') . ' --version', @@ -110,10 +110,10 @@ Execute(You should be able to set a custom executable and it should be escaped): \] Execute(The flake8 callbacks should detect virtualenv directories): - silent execute 'file ' . fnameescape(g:dir . '/python_paths/with_virtualenv/subdir/foo/bar.py') + silent execute 'file ' . fnameescape(g:dir . '/../test-files/python/with_virtualenv/subdir/foo/bar.py') let b:executable = ale#path#Simplify( - \ g:dir . '/python_paths/with_virtualenv/env/' . b:bin_dir . '/flake8' + \ g:dir . '/../test-files/python/with_virtualenv/env/' . b:bin_dir . '/flake8' \) AssertLinter b:executable, [ @@ -124,43 +124,43 @@ Execute(The flake8 callbacks should detect virtualenv directories): \] Execute(The FindProjectRoot should detect the project root directory for namespace package via Manifest.in): - silent execute 'file ' . fnameescape(g:dir . '/python_paths/namespace_package_manifest/namespace/foo/bar.py') + silent execute 'file ' . fnameescape(g:dir . '/../test-files/python/namespace_package_manifest/namespace/foo/bar.py') AssertEqual - \ ale#path#Simplify(g:dir . '/python_paths/namespace_package_manifest'), + \ ale#path#Simplify(g:dir . '/../test-files/python/namespace_package_manifest'), \ ale#python#FindProjectRoot(bufnr('')) Execute(The FindProjectRoot should detect the project root directory for namespace package via setup.cf): - silent execute 'file ' . fnameescape(g:dir . '/python_paths/namespace_package_setup/namespace/foo/bar.py') + silent execute 'file ' . fnameescape(g:dir . '/../test-files/python/namespace_package_setup/namespace/foo/bar.py') AssertEqual - \ ale#path#Simplify(g:dir . '/python_paths/namespace_package_setup'), + \ ale#path#Simplify(g:dir . '/../test-files/python/namespace_package_setup'), \ ale#python#FindProjectRoot(bufnr('')) Execute(The FindProjectRoot should detect the project root directory for namespace package via pytest.ini): - silent execute 'file ' . fnameescape(g:dir . '/python_paths/namespace_package_pytest/namespace/foo/bar.py') + silent execute 'file ' . fnameescape(g:dir . '/../test-files/python/namespace_package_pytest/namespace/foo/bar.py') AssertEqual - \ ale#path#Simplify(g:dir . '/python_paths/namespace_package_pytest'), + \ ale#path#Simplify(g:dir . '/../test-files/python/namespace_package_pytest'), \ ale#python#FindProjectRoot(bufnr('')) Execute(The FindProjectRoot should detect the project root directory for namespace package via tox.ini): - silent execute 'file ' . fnameescape(g:dir . '/python_paths/namespace_package_tox/namespace/foo/bar.py') + silent execute 'file ' . fnameescape(g:dir . '/../test-files/python/namespace_package_tox/namespace/foo/bar.py') AssertEqual - \ ale#path#Simplify(g:dir . '/python_paths/namespace_package_tox'), + \ ale#path#Simplify(g:dir . '/../test-files/python/namespace_package_tox'), \ ale#python#FindProjectRoot(bufnr('')) Execute(The FindProjectRoot should detect the project root directory for non-namespace package): - silent execute 'file ' . fnameescape(g:dir . '/python_paths/no_virtualenv/subdir/foo/bar.py') + silent execute 'file ' . fnameescape(g:dir . '/../test-files/python/no_virtualenv/subdir/foo/bar.py') AssertEqual - \ ale#path#Simplify(g:dir . '/python_paths/no_virtualenv/subdir'), + \ ale#path#Simplify(g:dir . '/../test-files/python/no_virtualenv/subdir'), \ ale#python#FindProjectRoot(bufnr('')) " Some users currently run flake8 this way, so we should support it. Execute(Using `python -m flake8` should be supported for running flake8): - silent execute 'file ' . fnameescape(g:dir . '/python_paths/with_virtualenv/subdir/foo/bar.py') + silent execute 'file ' . fnameescape(g:dir . '/../test-files/python/with_virtualenv/subdir/foo/bar.py') let g:ale_python_flake8_executable = 'python' let g:ale_python_flake8_options = '-m flake8 --some-option' @@ -194,7 +194,7 @@ Execute(Setting executable to 'pipenv' should append 'run flake8'): Execute(Pipenv is detected when python_flake8_auto_pipenv is set): let g:ale_python_flake8_auto_pipenv = 1 - call ale#test#SetFilename('../python_fixtures/pipenv/whatever.py') + call ale#test#SetFilename('../test-files/python/pipenv/whatever.py') AssertLinterCwd ale#python#FindProjectRootIni(bufnr('')) AssertLinter 'pipenv', diff --git a/test/command_callback/test_flow_command_callback.vader b/test/command_callback/test_flow_command_callback.vader new file mode 100644 index 00000000..8488a2e9 --- /dev/null +++ b/test/command_callback/test_flow_command_callback.vader @@ -0,0 +1,42 @@ +Before: + call ale#assert#SetUpLinterTest('javascript', 'flow') + +After: + call ale#assert#TearDownLinterTest() + +Execute(flow should return a command to run if a .flowconfig file exists): + call ale#test#SetFilename('../test-files/flow/a/sub/dummy') + + AssertLinter 'flow', + \ ale#Escape('flow') + \ . ' check-contents --respect-pragma --json --from ale %s < %t' + \ . (!has('win32') ? '; echo' : '') + +Execute(flow should not use the respect pragma argument if the option is off): + call ale#test#SetFilename('../test-files/flow/a/sub/dummy') + + let b:ale_javascript_flow_use_respect_pragma = 0 + + AssertLinter 'flow', + \ ale#Escape('flow') + \ . ' check-contents --json --from ale %s < %t' + \ . (!has('win32') ? '; echo' : '') + +Execute(flow should should not use --respect-pragma for old versions): + call ale#test#SetFilename('../test-files/flow/a/sub/dummy') + + GivenCommandOutput [ + \ 'Warning: `flow --version` is deprecated in favor of `flow version`', + \ 'Flow, a static type checker for JavaScript, version 0.27.0', + \] + AssertLinter 'flow', [ + \ ale#Escape('flow') . ' --version', + \ ale#Escape('flow') + \ . ' check-contents --json --from ale %s < %t' + \ . (!has('win32') ? '; echo' : ''), + \] + +Execute(flow should not return a command to run if no .flowconfig file exists): + call ale#test#SetFilename('../test-files/flow/b/sub/dummy') + + AssertLinterNotExecuted diff --git a/test/command_callback/test_fortran_fortls_callback.vader b/test/command_callback/test_fortran_fortls_callback.vader index 3be7ff4f..581f94ba 100644 --- a/test/command_callback/test_fortran_fortls_callback.vader +++ b/test/command_callback/test_fortran_fortls_callback.vader @@ -10,9 +10,9 @@ Execute(The default executable path should be correct): Execute(The project root should be detected correctly): AssertLSPProject '' - call ale#test#SetFilename('fortran-fortls-project/test.F90') + call ale#test#SetFilename('../test-files/fortls-project/test.F90') - AssertLSPProject ale#path#Simplify(g:dir . '/fortran-fortls-project') + AssertLSPProject ale#path#Simplify(g:dir . '/../test-files/fortls-project') Execute(The language should be correct): AssertLSPLanguage 'fortran' diff --git a/test/command_callback/test_gitlint_command_callback.vader b/test/command_callback/test_gitlint_command_callback.vader index 7927b064..4df675f3 100644 --- a/test/command_callback/test_gitlint_command_callback.vader +++ b/test/command_callback/test_gitlint_command_callback.vader @@ -24,20 +24,20 @@ Execute(The gitlint command callback should let you set options): AssertLinter 'gitlint', ale#Escape('gitlint') . ' --some-option lint' Execute(The gitlint callbacks shouldn't detect virtualenv directories where they don't exist): - call ale#test#SetFilename('python_paths/no_virtualenv/subdir/foo/COMMIT_EDITMSG') + call ale#test#SetFilename('../test-files/python/no_virtualenv/subdir/foo/COMMIT_EDITMSG') AssertLinter 'gitlint', ale#Escape('gitlint') . ' lint' Execute(The gitlint callbacks should detect virtualenv directories): - call ale#test#SetFilename('python_paths/with_virtualenv/subdir/foo/COMMIT_EDITMSG') + call ale#test#SetFilename('../test-files/python/with_virtualenv/subdir/foo/COMMIT_EDITMSG') let b:executable = ale#path#Simplify( - \ g:dir . '/python_paths/with_virtualenv/env/' . b:bin_dir . '/gitlint' + \ g:dir . '/../test-files/python/with_virtualenv/env/' . b:bin_dir . '/gitlint' \) AssertLinter b:executable, ale#Escape(b:executable) . ' lint' Execute(You should able able to use the global gitlint instead): - call ale#test#SetFilename('python_paths/with_virtualenv/subdir/foo/COMMIT_EDITMSG') + call ale#test#SetFilename('../test-files/python/with_virtualenv/subdir/foo/COMMIT_EDITMSG') let g:ale_gitcommit_gitlint_use_global = 1 AssertLinter 'gitlint', ale#Escape('gitlint') . ' lint' diff --git a/test/command_callback/test_gofmt_command_callback.vader b/test/command_callback/test_gofmt_command_callback.vader index 88b2e6b0..b056a659 100644 --- a/test/command_callback/test_gofmt_command_callback.vader +++ b/test/command_callback/test_gofmt_command_callback.vader @@ -5,7 +5,7 @@ Before: let b:ale_go_go111module = '' call ale#assert#SetUpLinterTest('go', 'gofmt') - call ale#test#SetFilename('../go_files/testfile2.go') + call ale#test#SetFilename('../test-files/go/testfile2.go') After: Restore diff --git a/test/command_callback/test_golangserver_command_callback.vader b/test/command_callback/test_golangserver_command_callback.vader index 325adf63..b31d8dc8 100644 --- a/test/command_callback/test_golangserver_command_callback.vader +++ b/test/command_callback/test_golangserver_command_callback.vader @@ -7,9 +7,9 @@ Before: let g:sep = has('win32') ? ';' : ':' call ale#assert#SetUpLinterTest('go', 'langserver') - let $GOPATH = ale#path#Simplify(g:dir . '/go_paths/go1') + let $GOPATH = ale#path#Simplify(g:dir . '/../test-files/go/go1') \ . g:sep - \ . ale#path#Simplify(g:dir . '/go_paths/go2') + \ . ale#path#Simplify(g:dir . '/../test-files/go/go2') After: Restore @@ -29,7 +29,7 @@ Execute(should configure go-langserver callback executable): AssertLinter 'boo', ale#Escape('boo') Execute(should set go-langserver options): - call ale#test#SetFilename('go_paths/go1/prj1/file.go') + call ale#test#SetFilename('../test-files/go/go1/prj1/file.go') let b:ale_completion_enabled = 1 let b:ale_go_langserver_options = '' @@ -42,7 +42,7 @@ Execute(should set go-langserver options): \ ale#Escape('go-langserver') . ' -gocodecompletion -trace' Execute(should ignore go-langserver -gocodecompletion option): - call ale#test#SetFilename('go_paths/go1/prj1/file.go') + call ale#test#SetFilename('../test-files/go/go1/prj1/file.go') let b:ale_go_langserver_options = '-trace -gocodecompletion' let b:ale_completion_enabled = 1 @@ -61,16 +61,16 @@ Execute(should support Go environment variables): \ ale#Env('GO111MODULE', 'on') . ale#Escape('go-langserver') Execute(should set go-langserver for go app1): - call ale#test#SetFilename('go_paths/go1/prj1/file.go') + call ale#test#SetFilename('../test-files/go/go1/prj1/file.go') AssertLSPLanguage 'go' AssertLSPConfig {} - AssertLSPProject ale#path#Simplify(g:dir . '/go_paths/go1') + AssertLSPProject ale#path#Simplify(g:dir . '/../test-files/go/go1') Execute(should set go-langserver for go app2): - call ale#test#SetFilename('go_paths/go2/prj1/file.go') + call ale#test#SetFilename('../test-files/go/go2/prj1/file.go') AssertLSPLanguage 'go' AssertLSPOptions {} AssertLSPConfig {} - AssertLSPProject ale#path#Simplify(g:dir . '/go_paths/go2') + AssertLSPProject ale#path#Simplify(g:dir . '/../test-files/go/go2') diff --git a/test/command_callback/test_gopls_command_callback.vader b/test/command_callback/test_gopls_command_callback.vader index 590d8458..0f1558e9 100644 --- a/test/command_callback/test_gopls_command_callback.vader +++ b/test/command_callback/test_gopls_command_callback.vader @@ -24,7 +24,7 @@ Execute(should configure gopls callback executable): AssertLinter 'boo', ale#Escape('boo') Execute(should set gopls options): - call ale#test#SetFilename('go_paths/go1/prj1/file.go') + call ale#test#SetFilename('../test-files/go/go1/prj1/file.go') " let b:ale_completion_enabled = 1 let b:ale_go_gopls_options = '' @@ -46,9 +46,9 @@ Execute(should support go environment variables): \ ale#Env('GO111MODULE', 'off') . ale#Escape('gopls') . ' --mode stdio' Execute(Should return directory for 'go.mod' if found in parent directory): - call ale#test#SetFilename('../go_files/test.go') + call ale#test#SetFilename('../test-files/go/test.go') - AssertLSPProject ale#path#Simplify(g:dir . '/../go_files') + AssertLSPProject ale#path#Simplify(g:dir . '/../test-files/go') Execute(Should return nearest directory with '.git' if found in parent directory): call ale#test#SetFilename('test.go') @@ -60,7 +60,7 @@ Execute(Should return nearest directory with '.git' if found in parent directory AssertLSPProject g:dir Execute(Should ignore 'go.mod' and return '.git' dir if modules off): - call ale#test#SetFilename('../go_files/test.go') + call ale#test#SetFilename('../test-files/go/test.go') let b:ale_go_go111module = 'off' let b:parent_dir = ale#path#Simplify(g:dir . '/..') diff --git a/test/command_callback/test_gosimple_command_callback.vader b/test/command_callback/test_gosimple_command_callback.vader index 7206722f..960f8ee9 100644 --- a/test/command_callback/test_gosimple_command_callback.vader +++ b/test/command_callback/test_gosimple_command_callback.vader @@ -2,7 +2,7 @@ Before: Save g:ale_go_go111module call ale#assert#SetUpLinterTest('go', 'gosimple') - call ale#test#SetFilename('../go_files/testfile2.go') + call ale#test#SetFilename('../test-files/go/testfile2.go') After: unlet! b:ale_go_go111module diff --git a/test/command_callback/test_gotype_command_callback.vader b/test/command_callback/test_gotype_command_callback.vader index 47845dd6..22829a17 100644 --- a/test/command_callback/test_gotype_command_callback.vader +++ b/test/command_callback/test_gotype_command_callback.vader @@ -2,7 +2,7 @@ Before: Save g:ale_go_go111module call ale#assert#SetUpLinterTest('go', 'gotype') - call ale#test#SetFilename('../go_files/testfile2.go') + call ale#test#SetFilename('../test-files/go/testfile2.go') After: unlet! b:ale_go_go111module diff --git a/test/command_callback/test_haml_hamllint_command_callback.vader b/test/command_callback/test_haml_hamllint_command_callback.vader index 694b21d3..9d81179b 100644 --- a/test/command_callback/test_haml_hamllint_command_callback.vader +++ b/test/command_callback/test_haml_hamllint_command_callback.vader @@ -14,23 +14,23 @@ Execute(The default command should be correct): AssertLinter 'haml-lint', 'haml-lint %t' Execute(The command should have the .rubocop.yml prepended as an env var if one exists): - call ale#test#SetFilename('../hamllint-test-files/rubocop-yml/subdir/file.haml') - let b:conf = ale#path#Simplify(g:dir . '/../hamllint-test-files/rubocop-yml/.rubocop.yml') + call ale#test#SetFilename('../test-files/hamllint/rubocop-yml/subdir/file.haml') + let b:conf = ale#path#Simplify(g:dir . '/../test-files/hamllint/rubocop-yml/.rubocop.yml') AssertLinter 'haml-lint', \ ale#Env('HAML_LINT_RUBOCOP_CONF', b:conf) . 'haml-lint %t' Execute(The command should have the nearest .haml-lint.yml set as --config if it exists): - call ale#test#SetFilename('../hamllint-test-files/haml-lint-yml/subdir/file.haml') - let b:conf = ale#path#Simplify(g:dir . '/../hamllint-test-files/haml-lint-yml/.haml-lint.yml') + call ale#test#SetFilename('../test-files/hamllint/haml-lint-yml/subdir/file.haml') + let b:conf = ale#path#Simplify(g:dir . '/../test-files/hamllint/haml-lint-yml/.haml-lint.yml') AssertLinter 'haml-lint', \ 'haml-lint --config ' . ale#Escape(b:conf) . ' %t', Execute(The command should include a .rubocop.yml and a .haml-lint if both are found): - call ale#test#SetFilename('../hamllint-test-files/haml-lint-and-rubocop/subdir/file.haml') - let b:conf_hamllint = ale#path#Simplify(g:dir . '/../hamllint-test-files/haml-lint-and-rubocop/.haml-lint.yml') - let b:conf_rubocop = ale#path#Simplify(g:dir . '/../hamllint-test-files/haml-lint-and-rubocop/.rubocop.yml') + call ale#test#SetFilename('../test-files/hamllint/haml-lint-and-rubocop/subdir/file.haml') + let b:conf_hamllint = ale#path#Simplify(g:dir . '/../test-files/hamllint/haml-lint-and-rubocop/.haml-lint.yml') + let b:conf_rubocop = ale#path#Simplify(g:dir . '/../test-files/hamllint/haml-lint-and-rubocop/.rubocop.yml') AssertLinter 'haml-lint', \ ale#Env('HAML_LINT_RUBOCOP_CONF', b:conf_rubocop) diff --git a/test/command_callback/test_haskell_stack_build_command_callback.vader b/test/command_callback/test_haskell_stack_build_command_callback.vader index f1e6f755..8b5b0971 100644 --- a/test/command_callback/test_haskell_stack_build_command_callback.vader +++ b/test/command_callback/test_haskell_stack_build_command_callback.vader @@ -8,6 +8,6 @@ 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): - call ale#test#SetFilename('stack_build_paths/test.hs') + call ale#test#SetFilename('../test-files/stack/test.hs') AssertLinter 'stack', 'stack build --fast' diff --git a/test/command_callback/test_haskell_stack_ghc_command_callback.vader b/test/command_callback/test_haskell_stack_ghc_command_callback.vader index 8b5e7485..04bd23f5 100644 --- a/test/command_callback/test_haskell_stack_ghc_command_callback.vader +++ b/test/command_callback/test_haskell_stack_ghc_command_callback.vader @@ -8,7 +8,7 @@ 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): - call ale#test#SetFilename('stack_ghc_paths/test.hs') + call ale#test#SetFilename('../test-files/stack/test.hs') AssertLinterCwd '%s:h' AssertLinter 'stack', 'stack ghc -- -fno-code -v0 %t' diff --git a/test/command_callback/test_html_stylelint_command_callback.vader b/test/command_callback/test_html_stylelint_command_callback.vader index 49d7d143..87440217 100644 --- a/test/command_callback/test_html_stylelint_command_callback.vader +++ b/test/command_callback/test_html_stylelint_command_callback.vader @@ -28,11 +28,11 @@ After: call ale#linter#Reset() Execute(node_modules directories should be discovered): - call ale#test#SetFilename('stylelint_paths/nested/testfile.html') + call ale#test#SetFilename('../test-files/stylelint/nested/testfile.html') let b:executable = ale#path#Simplify( \ g:dir - \ . '/stylelint_paths/node_modules/.bin/stylelint' + \ . '/../test-files/stylelint/node_modules/.bin/stylelint' \) AssertEqual b:executable, ale_linters#html#stylelint#GetExecutable(bufnr('')) @@ -44,7 +44,7 @@ Execute(The global override should work): let b:ale_html_stylelint_executable = 'foobar' let b:ale_html_stylelint_use_global = 1 - call ale#test#SetFilename('stylelint_paths/nested/testfile.html') + call ale#test#SetFilename('../test-files/stylelint/nested/testfile.html') AssertEqual 'foobar', ale_linters#html#stylelint#GetExecutable(bufnr('')) AssertEqual diff --git a/test/command_callback/test_htmlhint_command_callback.vader b/test/command_callback/test_htmlhint_command_callback.vader index d3f209f8..df5797af 100644 --- a/test/command_callback/test_htmlhint_command_callback.vader +++ b/test/command_callback/test_htmlhint_command_callback.vader @@ -1,12 +1,12 @@ Before: call ale#assert#SetUpLinterTest('html', 'htmlhint') - call ale#test#SetFilename('htmlhint_paths/test.html') + call ale#test#SetFilename('../test-files/htmlhint/test.html') let g:node_executable = ale#path#Simplify( - \ g:dir . '/htmlhint_paths/node_modules/.bin/htmlhint' + \ g:dir . '/../test-files/htmlhint/node_modules/.bin/htmlhint' \) let g:config_path = ale#path#Simplify( - \ g:dir . '/htmlhint_paths/with_config/.htmlhintrc' + \ g:dir . '/../test-files/htmlhint/with_config/.htmlhintrc' \) After: @@ -33,7 +33,7 @@ Execute(--format=unix should be removed from the options if added): \ ale#Escape(g:node_executable) . ' --format=unix %t' Execute(The configuration file should be automatically detected): - call ale#test#SetFilename('htmlhint_paths/with_config/test.html') + call ale#test#SetFilename('../test-files/htmlhint/with_config/test.html') AssertLinter g:node_executable, \ ale#Escape(g:node_executable) @@ -42,7 +42,7 @@ Execute(The configuration file should be automatically detected): " This is so old configurations which might include the config will work. Execute(The configuration file should be configurable through the options variable): - call ale#test#SetFilename('htmlhint_paths/with_config/test.html') + call ale#test#SetFilename('../test-files/htmlhint/with_config/test.html') let g:ale_html_htmlhint_options = '--config=/foo/bar/.htmlhintrc' AssertLinter g:node_executable, diff --git a/test/command_callback/test_ink_ls_command_callbacks.vader b/test/command_callback/test_ink_ls_command_callbacks.vader index 5074506c..a832a250 100644 --- a/test/command_callback/test_ink_ls_command_callbacks.vader +++ b/test/command_callback/test_ink_ls_command_callbacks.vader @@ -9,12 +9,12 @@ Execute(should set correct defaults): AssertLinter 'ink-language-server', ale#Escape('ink-language-server') . ' --stdio' Execute(should set correct LSP values): - call ale#test#SetFilename('ink_paths/story/main.ink') + call ale#test#SetFilename('../test-files/ink/story/main.ink') AssertLSPLanguage 'ink' AssertLSPOptions {} AssertLSPConfig {} - AssertLSPProject ale#path#Simplify(g:dir . '/ink_paths/story') + AssertLSPProject ale#path#Simplify(g:dir . '/../test-files/ink/story') Execute(should accept configuration settings): AssertLSPConfig {} diff --git a/test/command_callback/test_inko_inko_callbacks.vader b/test/command_callback/test_inko_inko_callbacks.vader index 93295c91..c08cbed4 100644 --- a/test/command_callback/test_inko_inko_callbacks.vader +++ b/test/command_callback/test_inko_inko_callbacks.vader @@ -1,6 +1,6 @@ Before: call ale#assert#SetUpLinterTest('inko', 'inko') - call ale#test#SetFilename('inko_paths/test.inko') + call ale#test#SetFilename('../test-files/inko/test.inko') After: call ale#assert#TearDownLinterTest() @@ -10,11 +10,11 @@ Execute(The default executable path should be correct): Execute(The inko callback should include tests/ for test paths): call ale#engine#Cleanup(bufnr('')) - noautocmd e! inko_paths/tests/test/test_foo.inko + noautocmd e! ../test-files/inko/tests/test/test_foo.inko call ale#engine#InitBufferInfo(bufnr('')) AssertLinter 'inko', \ ale#Escape('inko') \ . ' build --check --format=json --include ' - \ . ale#Escape(ale#path#Simplify(g:dir . '/inko_paths/tests/')) + \ . ale#Escape(ale#path#Simplify(g:dir . '/../test-files/inko/tests/')) \ . ' %s' diff --git a/test/command_callback/test_javac_command_callback.vader b/test/command_callback/test_javac_command_callback.vader index 29ed09b8..85a76e6a 100644 --- a/test/command_callback/test_javac_command_callback.vader +++ b/test/command_callback/test_javac_command_callback.vader @@ -161,27 +161,27 @@ Execute(The javac callback should combine discovered classpaths and manual ones) \ substitute(b:command, '%e', '\=ale#Escape(''javac'')', 'g') Execute(The javac callback should use string type g:ale_java_javac_sourcepath correctly): - let g:ale_java_javac_sourcepath = 'java_paths/build/gen/main' + let g:ale_java_javac_sourcepath = '../test-files/java/with_main/build/gen/main' AssertLinter 'javac', \ g:prefix \ . ' -sourcepath ' . ale#Escape( - \ ale#path#Simplify(g:dir . '/java_paths/build/gen/main/') + \ ale#path#Simplify(g:dir . '/../test-files/java/with_main/build/gen/main/') \ ) \ . ' -d ' . ale#Escape('TEMP_DIR') . ' %t' Execute(The javac callback should use list type g:ale_java_javac_sourcepath correctly): - let g:ale_java_javac_sourcepath = ['java_paths/build/gen/main'] + let g:ale_java_javac_sourcepath = ['../test-files/java/with_main/build/gen/main'] AssertLinter 'javac', \ g:prefix \ . ' -sourcepath ' . ale#Escape( - \ ale#path#Simplify(g:dir . '/java_paths/build/gen/main/') + \ ale#path#Simplify(g:dir . '/../test-files/java/with_main/build/gen/main/') \ ) \ . ' -d ' . ale#Escape('TEMP_DIR') . ' %t' Execute(The javac callback shouldn't add -sourcepath when g:ale_java_javac_sourcepath variable path doesn't exist): - let g:ale_java_javac_sourcepath = 'java_paths/build/gen3/main' + let g:ale_java_javac_sourcepath = '../test-files/java/with_main/build/gen3/main' AssertLinter 'javac', \ g:prefix @@ -189,78 +189,78 @@ Execute(The javac callback shouldn't add -sourcepath when g:ale_java_javac_sourc Execute(The javac callback should combine discovered sourcepath and manual ones): call ale#engine#Cleanup(bufnr('')) - call ale#test#SetFilename('java_paths/src/main/java/com/something/dummy.java') + call ale#test#SetFilename('../test-files/java/with_main/src/main/java/com/something/dummy.java') call ale#engine#InitBufferInfo(bufnr('')) - let g:ale_java_javac_sourcepath = 'java_paths/build/gen/main' + let g:ale_java_javac_sourcepath = '../test-files/java/with_main/build/gen/main' let b:command = ale_linters#java#javac#GetCommand(bufnr(''), [], {}) AssertEqual \ ale#Escape('javac') . ' -Xlint' \ . ' -sourcepath ' . ale#Escape(join([ - \ ale#path#Simplify(g:dir . '/java_paths/src/main/java/'), - \ ale#path#Simplify(g:dir . '/java_paths/build/gen/main/'), + \ ale#path#Simplify(g:dir . '/../test-files/java/with_main/src/main/java/'), + \ ale#path#Simplify(g:dir . '/../test-files/java/with_main/build/gen/main/'), \ ], g:cp_sep)) \ . ' -d ' . ale#Escape('TEMP_DIR') . ' %t', \ substitute(b:command, '%e', '\=ale#Escape(''javac'')', 'g') - let g:ale_java_javac_sourcepath = 'java_paths/build/gen/main' - \ . g:cp_sep . 'java_paths/build/gen2/main' + let g:ale_java_javac_sourcepath = '../test-files/java/with_main/build/gen/main' + \ . g:cp_sep . '../test-files/java/with_main/build/gen2/main' let b:command = ale_linters#java#javac#GetCommand(bufnr(''), [], {}) AssertEqual \ ale#Escape('javac') . ' -Xlint' \ . ' -sourcepath ' . ale#Escape(join([ - \ ale#path#Simplify(g:dir . '/java_paths/src/main/java/'), - \ ale#path#Simplify(g:dir . '/java_paths/build/gen/main/'), - \ ale#path#Simplify(g:dir . '/java_paths/build/gen2/main/') + \ ale#path#Simplify(g:dir . '/../test-files/java/with_main/src/main/java/'), + \ ale#path#Simplify(g:dir . '/../test-files/java/with_main/build/gen/main/'), + \ ale#path#Simplify(g:dir . '/../test-files/java/with_main/build/gen2/main/') \ ], g:cp_sep)) \ . ' -d ' . ale#Escape('TEMP_DIR') . ' %t', \ substitute(b:command, '%e', '\=ale#Escape(''javac'')', 'g') - let g:ale_java_javac_sourcepath = ['java_paths/build/gen/main'] + let g:ale_java_javac_sourcepath = ['../test-files/java/with_main/build/gen/main'] let b:command = ale_linters#java#javac#GetCommand(bufnr(''), [], {}) AssertEqual \ ale#Escape('javac') . ' -Xlint' \ . ' -sourcepath ' . ale#Escape(join([ - \ ale#path#Simplify(g:dir . '/java_paths/src/main/java/'), - \ ale#path#Simplify(g:dir . '/java_paths/build/gen/main/') + \ ale#path#Simplify(g:dir . '/../test-files/java/with_main/src/main/java/'), + \ ale#path#Simplify(g:dir . '/../test-files/java/with_main/build/gen/main/') \ ], g:cp_sep)) \ . ' -d ' . ale#Escape('TEMP_DIR') . ' %t', \ substitute(b:command, '%e', '\=ale#Escape(''javac'')', 'g') let g:ale_java_javac_sourcepath = [ - \ 'java_paths/build/gen/main', - \ 'java_paths/build/gen2/main' + \ '../test-files/java/with_main/build/gen/main', + \ '../test-files/java/with_main/build/gen2/main' \ ] let b:command = ale_linters#java#javac#GetCommand(bufnr(''), [], {}) AssertEqual \ ale#Escape('javac') . ' -Xlint' \ . ' -sourcepath ' . ale#Escape(join([ - \ ale#path#Simplify(g:dir . '/java_paths/src/main/java/'), - \ ale#path#Simplify(g:dir . '/java_paths/build/gen/main/'), - \ ale#path#Simplify(g:dir . '/java_paths/build/gen2/main/') + \ ale#path#Simplify(g:dir . '/../test-files/java/with_main/src/main/java/'), + \ ale#path#Simplify(g:dir . '/../test-files/java/with_main/build/gen/main/'), + \ ale#path#Simplify(g:dir . '/../test-files/java/with_main/build/gen2/main/') \ ], g:cp_sep)) \ . ' -d ' . ale#Escape('TEMP_DIR') . ' %t', \ substitute(b:command, '%e', '\=ale#Escape(''javac'')', 'g') Execute(The javac callback should detect source directories): call ale#engine#Cleanup(bufnr('')) - noautocmd e! java_paths/src/main/java/com/something/dummy + noautocmd e! ../test-files/java/with_main/src/main/java/com/something/dummy call ale#engine#InitBufferInfo(bufnr('')) AssertLinter 'javac', \ ale#Escape('javac') . ' -Xlint' \ . ' -sourcepath ' . ale#Escape( - \ ale#path#Simplify(g:dir . '/java_paths/src/main/java/') + \ ale#path#Simplify(g:dir . '/../test-files/java/with_main/src/main/java/') \ ) \ . ' -d ' . ale#Escape('TEMP_DIR') . ' %t' Execute(The javac callback should combine detected source directories and classpaths): call ale#engine#Cleanup(bufnr('')) - call ale#test#SetFilename('java_paths/src/main/java/com/something/dummy.java') + call ale#test#SetFilename('../test-files/java/with_main/src/main/java/com/something/dummy.java') call ale#engine#InitBufferInfo(bufnr('')) let b:command = ale_linters#java#javac#GetCommand(bufnr(''), [ @@ -274,7 +274,7 @@ Execute(The javac callback should combine detected source directories and classp \ ale#Escape('javac') . ' -Xlint' \ . ' -cp ' . ale#Escape(join(['/foo/bar.jar', '/xyz/abc.jar'], g:cp_sep)) \ . ' -sourcepath ' . ale#Escape( - \ ale#path#Simplify(g:dir . '/java_paths/src/main/java/') + \ ale#path#Simplify(g:dir . '/../test-files/java/with_main/src/main/java/') \ ) \ . ' -d ' . ale#Escape('TEMP_DIR') . ' %t', \ substitute(b:command, '%e', '\=ale#Escape(''javac'')', 'g') @@ -289,38 +289,38 @@ Execute(The javac callback should include src/test/java for test paths): call ale#engine#Cleanup(bufnr('')) " The test path is only included for test files. " Regular Java files shouldn't import from tests. - noautocmd e! java_paths/src/test/java/com/something/dummy + noautocmd e! ../test-files/java/with_main/src/test/java/com/something/dummy call ale#engine#InitBufferInfo(bufnr('')) AssertLinter 'javac', \ ale#Escape('javac') . ' -Xlint' \ . ' -sourcepath ' . ale#Escape(join([ - \ ale#path#Simplify(g:dir . '/java_paths/src/main/java/'), - \ ale#path#Simplify(g:dir . '/java_paths/src/test/java/'), + \ ale#path#Simplify(g:dir . '/../test-files/java/with_main/src/main/java/'), + \ ale#path#Simplify(g:dir . '/../test-files/java/with_main/src/test/java/'), \ ], g:cp_sep)) \ . ' -d ' . ale#Escape('TEMP_DIR') . ' %t' Execute(The javac callback should include src/main/jaxb when available): call ale#engine#Cleanup(bufnr('')) - noautocmd e! java_paths_with_jaxb/src/main/java/com/something/dummy + noautocmd e! ../test-files/java/with_jaxb/src/main/java/com/something/dummy call ale#engine#InitBufferInfo(bufnr('')) AssertLinter 'javac', \ ale#Escape('javac') . ' -Xlint' \ . ' -sourcepath ' . ale#Escape(join([ - \ ale#path#Simplify(g:dir . '/java_paths_with_jaxb/src/main/java/'), - \ ale#path#Simplify(g:dir . '/java_paths_with_jaxb/src/main/jaxb/'), + \ ale#path#Simplify(g:dir . '/../test-files/java/with_jaxb/src/main/java/'), + \ ale#path#Simplify(g:dir . '/../test-files/java/with_jaxb/src/main/jaxb/'), \ ], g:cp_sep)) \ . ' -d ' . ale#Escape('TEMP_DIR') . ' %t' Execute(The javac callback should add -sourcepath even if src/java/main doesn't exist): call ale#engine#Cleanup(bufnr('')) - call ale#test#SetFilename('java_paths_no_main/src/test/java/com/something/dummy.java') + call ale#test#SetFilename('../test-files/java/no_main/src/test/java/com/something/dummy.java') call ale#engine#InitBufferInfo(bufnr('')) AssertLinter 'javac', \ ale#Escape('javac') . ' -Xlint' \ . ' -sourcepath ' . ale#Escape(join([ - \ ale#path#Simplify(g:dir . '/java_paths_no_main/src/test/java/'), + \ ale#path#Simplify(g:dir . '/../test-files/java/no_main/src/test/java/'), \ ], g:cp_sep)) \ . ' -d ' . ale#Escape('TEMP_DIR') . ' %t' diff --git a/test/command_callback/test_javascript_tsserver_command_callback.vader b/test/command_callback/test_javascript_tsserver_command_callback.vader index 04230238..1c29c8fd 100644 --- a/test/command_callback/test_javascript_tsserver_command_callback.vader +++ b/test/command_callback/test_javascript_tsserver_command_callback.vader @@ -8,9 +8,9 @@ Execute(The default command should be correct): AssertLinter 'tsserver', ale#Escape('tsserver') Execute(should resolve correct path when nested 1): - call ale#test#SetFilename('tsserver_paths/src/level-1/level-2/file3.ts') - AssertLSPProject ale#path#Simplify(g:dir . '/tsserver_paths/src/level-1') + call ale#test#SetFilename('../test-files/tsserver/src/level-1/level-2/file3.ts') + AssertLSPProject ale#path#Simplify(g:dir . '/../test-files/tsserver/src/level-1') Execute(should resolve correct path when nested 2): - call ale#test#SetFilename('tsserver_paths/src/file1.ts') - AssertLSPProject ale#path#Simplify(g:dir . '/tsserver_paths') + call ale#test#SetFilename('../test-files/tsserver/src/file1.ts') + AssertLSPProject ale#path#Simplify(g:dir . '/../test-files/tsserver') diff --git a/test/command_callback/test_julia_languageserver_callbacks.vader b/test/command_callback/test_julia_languageserver_callbacks.vader index 96df81f1..d75665a0 100644 --- a/test/command_callback/test_julia_languageserver_callbacks.vader +++ b/test/command_callback/test_julia_languageserver_callbacks.vader @@ -25,6 +25,6 @@ Execute(The executable should be configurable): Execute(The project root should be detected correctly): AssertLSPProject '' - call ale#test#SetFilename('julia-languageserver-project/test.jl') + call ale#test#SetFilename('../test-files/julia/test.jl') - AssertLSPProject ale#path#Simplify(g:dir . '/julia-languageserver-project') + AssertLSPProject ale#path#Simplify(g:dir . '/../test-files/julia') diff --git a/test/command_callback/test_kotlin_languageserver_command_callback.vader b/test/command_callback/test_kotlin_languageserver_command_callback.vader index e83a4f37..97b867ab 100644 --- a/test/command_callback/test_kotlin_languageserver_command_callback.vader +++ b/test/command_callback/test_kotlin_languageserver_command_callback.vader @@ -6,3 +6,18 @@ After: Execute(The default command should be correct): AssertLinter 'kotlin-language-server', ale#Escape('kotlin-language-server') + +Execute(Gradle project roots with build.gradle should be detected correctly): + call ale#test#SetFilename('../test-files/gradle/build-gradle-project/src/main/kotlin/dummy.kt') + + AssertLSPProject ale#test#GetFilename('../test-files/gradle/build-gradle-project') + +Execute(Maven project roots with pom.xml should be detected correctly): + call ale#test#SetFilename('../test-files/maven/maven-kotlin-project/src/main/kotlin/dummy.kt') + + AssertLSPProject ale#test#GetFilename('../test-files/maven/maven-kotlin-project') + +Execute(No root should be detected if configuration files can't be found): + call ale#test#SetFilename('../test-files/gradle/non-gradle-project/src/main/kotlin/dummy.kt') + + AssertLSPProject '' diff --git a/test/command_callback/test_less_stylelint_command_callback.vader b/test/command_callback/test_less_stylelint_command_callback.vader index 8d23deb6..cbe7d23c 100644 --- a/test/command_callback/test_less_stylelint_command_callback.vader +++ b/test/command_callback/test_less_stylelint_command_callback.vader @@ -7,11 +7,11 @@ After: call ale#assert#TearDownLinterTest() Execute(node_modules directories should be discovered): - call ale#test#SetFilename('stylelint_paths/nested/testfile.less') + call ale#test#SetFilename('../test-files/stylelint/nested/testfile.less') let b:executable = ale#path#Simplify( \ g:dir - \ . '/stylelint_paths/node_modules/.bin/stylelint' + \ . '/../test-files/stylelint/node_modules/.bin/stylelint' \) AssertLinter b:executable, ale#Escape(b:executable) . ' --stdin-filename %s' @@ -20,7 +20,7 @@ Execute(The global override should work): let b:ale_less_stylelint_executable = 'foobar' let b:ale_less_stylelint_use_global = 1 - call ale#test#SetFilename('stylelint_paths/nested/testfile.less') + call ale#test#SetFilename('../test-files/stylelint/nested/testfile.less') AssertLinter 'foobar', ale#Escape('foobar') . ' --stdin-filename %s' diff --git a/test/command_callback/test_lessc_command_callback.vader b/test/command_callback/test_lessc_command_callback.vader index 79f57d06..b7d664c6 100644 --- a/test/command_callback/test_lessc_command_callback.vader +++ b/test/command_callback/test_lessc_command_callback.vader @@ -10,29 +10,29 @@ After: call ale#assert#TearDownLinterTest() Execute(node_modules directories should be discovered): - call ale#test#SetFilename('lessc_paths/nested/testfile.less') + call ale#test#SetFilename('../test-files/lessc/nested/testfile.less') let b:executable = ale#path#Simplify( \ g:dir - \ . '/lessc_paths/node_modules/.bin/lessc' + \ . '/../test-files/lessc/node_modules/.bin/lessc' \) AssertLinter b:executable, ale#Escape(b:executable) \ . ' --no-color --lint' \ . ' --include-path=' - \ . ale#Escape(ale#path#Simplify(g:dir . '/lessc_paths/nested')) + \ . ale#Escape(ale#path#Simplify(g:dir . '/../test-files/lessc/nested')) \ . ' -' Execute(The global override should work): let b:ale_less_lessc_executable = 'foobar' let b:ale_less_lessc_use_global = 1 - call ale#test#SetFilename('lessc_paths/nested/testfile.less') + call ale#test#SetFilename('../test-files/lessc/nested/testfile.less') AssertLinter 'foobar', ale#Escape('foobar') \ . ' --no-color --lint' \ . ' --include-path=' - \ . ale#Escape(ale#path#Simplify(g:dir . '/lessc_paths/nested')) + \ . ale#Escape(ale#path#Simplify(g:dir . '/../test-files/lessc/nested')) \ . ' -' Execute(Extra options should be configurable): diff --git a/test/command_callback/test_mypy_command_callback.vader b/test/command_callback/test_mypy_command_callback.vader index 1a0f5301..8c1e5e9c 100644 --- a/test/command_callback/test_mypy_command_callback.vader +++ b/test/command_callback/test_mypy_command_callback.vader @@ -35,39 +35,39 @@ Execute(The mypy command callback should let you set options): \ . ' --shadow-file %s %t %s' Execute(The mypy command should switch directories to the detected project root): - call ale#test#SetFilename('python_paths/no_virtualenv/subdir/foo/bar.py') + call ale#test#SetFilename('../test-files/python/no_virtualenv/subdir/foo/bar.py') - AssertLinterCwd ale#path#Simplify(g:dir . '/python_paths/no_virtualenv/subdir') + AssertLinterCwd ale#path#Simplify(g:dir . '/../test-files/python/no_virtualenv/subdir') AssertLinter 'mypy', \ ale#Escape('mypy') \ . ' --show-column-numbers' \ . ' --shadow-file %s %t %s' Execute(The mypy callbacks should detect virtualenv directories and switch to the project root): - call ale#test#SetFilename('python_paths/with_virtualenv/subdir/foo/bar.py') + call ale#test#SetFilename('../test-files/python/with_virtualenv/subdir/foo/bar.py') - let b:executable = ale#path#Simplify(g:dir . '/python_paths/with_virtualenv/env/' . b:bin_dir . '/mypy') + let b:executable = ale#path#Simplify(g:dir . '/../test-files/python/with_virtualenv/env/' . b:bin_dir . '/mypy') - AssertLinterCwd ale#path#Simplify(g:dir . '/python_paths/with_virtualenv/subdir') + AssertLinterCwd ale#path#Simplify(g:dir . '/../test-files/python/with_virtualenv/subdir') AssertLinter b:executable, \ ale#Escape(b:executable) \ . ' --show-column-numbers' \ . ' --shadow-file %s %t %s' Execute(The mypy callbacks should cd to directory containing mypy.ini if found): - call ale#test#SetFilename('python_paths/with_mypy_ini_and_pytest_ini/tests/testsubfolder/my_tests.py') + call ale#test#SetFilename('../test-files/python/with_mypy_ini_and_pytest_ini/tests/testsubfolder/my_tests.py') - AssertLinterCwd ale#path#Simplify(g:dir . '/python_paths/with_mypy_ini_and_pytest_ini') + AssertLinterCwd ale#path#Simplify(g:dir . '/../test-files/python/with_mypy_ini_and_pytest_ini') AssertLinter 'mypy', \ ale#Escape('mypy') \ . ' --show-column-numbers' \ . ' --shadow-file %s %t %s' Execute(You should able able to use the global mypy instead): - call ale#test#SetFilename('python_paths/with_virtualenv/subdir/foo/bar.py') + call ale#test#SetFilename('../test-files/python/with_virtualenv/subdir/foo/bar.py') let g:ale_python_mypy_use_global = 1 - AssertLinterCwd ale#path#Simplify(g:dir . '/python_paths/with_virtualenv/subdir') + AssertLinterCwd ale#path#Simplify(g:dir . '/../test-files/python/with_virtualenv/subdir') AssertLinter 'mypy', \ ale#Escape('mypy') \ . ' --show-column-numbers' @@ -82,7 +82,7 @@ Execute(Setting executable to 'pipenv' appends 'run mypy'): \ . ' --show-column-numbers --shadow-file %s %t %s' Execute(Pipenv is detected when python_mypy_auto_pipenv is set): - call ale#test#SetFilename('../python_fixtures/pipenv/whatever.py') + call ale#test#SetFilename('../test-files/python/pipenv/whatever.py') let g:ale_python_mypy_auto_pipenv = 1 AssertLinterCwd expand('#' . bufnr('') . ':p:h') diff --git a/test/command_callback/test_objc_ccls_command_callbacks.vader b/test/command_callback/test_objc_ccls_command_callbacks.vader index 34b8539e..58d824c5 100644 --- a/test/command_callback/test_objc_ccls_command_callbacks.vader +++ b/test/command_callback/test_objc_ccls_command_callbacks.vader @@ -13,27 +13,27 @@ Execute(The project root should be detected correctly using compile_commands.jso AssertLSPProject '' - call ale#test#SetFilename('ccls_paths/with_compile_commands_json/dummy.m') + call ale#test#SetFilename('../test-files/ccls/with_compile_commands_json/dummy.m') - AssertLSPProject ale#path#Simplify(g:dir . '/ccls_paths/with_compile_commands_json') + AssertLSPProject ale#path#Simplify(g:dir . '/../test-files/ccls/with_compile_commands_json') Execute(The project root should be detected correctly using .ccls file): call ale#test#SetFilename(tempname() . '/dummy.m') AssertLSPProject '' - call ale#test#SetFilename('ccls_paths/with_ccls/dummy.m') + call ale#test#SetFilename('../test-files/ccls/with_ccls/dummy.m') - AssertLSPProject ale#path#Simplify(g:dir . '/ccls_paths/with_ccls') + AssertLSPProject ale#path#Simplify(g:dir . '/../test-files/ccls/with_ccls') Execute(The project root should be detected correctly using .ccls-root file): call ale#test#SetFilename(tempname() . '/dummy.m') AssertLSPProject '' - call ale#test#SetFilename('ccls_paths/with_ccls-root/dummy.m') + call ale#test#SetFilename('../test-files/ccls/with_ccls-root/dummy.m') - AssertLSPProject ale#path#Simplify(g:dir . '/ccls_paths/with_ccls-root') + AssertLSPProject ale#path#Simplify(g:dir . '/../test-files/ccls/with_ccls-root') Execute(The executable should be configurable): AssertLinter 'ccls', ale#Escape('ccls') @@ -50,17 +50,17 @@ Execute(The initialization options should be configurable): AssertLSPOptions { 'cacheDirectory': '/tmp/ccls' } Execute(The compile command database should be detected correctly): - call ale#test#SetFilename('ccls_paths/with_ccls/dummy.c') + call ale#test#SetFilename('../test-files/ccls/with_ccls/dummy.c') AssertLSPOptions {} - call ale#test#SetFilename('ccls_paths/with_compile_commands_json/dummy.c') + call ale#test#SetFilename('../test-files/ccls/with_compile_commands_json/dummy.c') AssertLSPOptions { 'compilationDatabaseDirectory': - \ ale#path#Simplify(g:dir . '/ccls_paths/with_compile_commands_json') } + \ ale#path#Simplify(g:dir . '/../test-files/ccls/with_compile_commands_json') } - call ale#test#SetFilename('ccls_paths/with_build_dir/dummy.c') + call ale#test#SetFilename('../test-files/ccls/with_build_dir/dummy.c') let b:ale_c_build_dir_names = ['unusual_build_dir_name'] AssertLSPOptions { 'compilationDatabaseDirectory': - \ ale#path#Simplify(g:dir . '/ccls_paths/with_build_dir/unusual_build_dir_name') } + \ ale#path#Simplify(g:dir . '/../test-files/ccls/with_build_dir/unusual_build_dir_name') } diff --git a/test/command_callback/test_ocaml_ocamllsp_callbacks.vader b/test/command_callback/test_ocaml_ocamllsp_callbacks.vader index 90a7e1a1..4f33af18 100644 --- a/test/command_callback/test_ocaml_ocamllsp_callbacks.vader +++ b/test/command_callback/test_ocaml_ocamllsp_callbacks.vader @@ -13,17 +13,17 @@ Execute(The language string should be correct): Execute(The project root should be detected correctly): AssertLSPProject '' - call ale#test#SetFilename('ocamllsp_paths/file.ml') + call ale#test#SetFilename('../test-files/ocamllsp/file.ml') - AssertLSPProject ale#path#Simplify(g:dir . '/ocamllsp_paths') + AssertLSPProject ale#path#Simplify(g:dir . '/../test-files/ocamllsp') Execute(The executable should be run using opam exec by default): - call ale#test#SetFilename('ocamllsp_paths/file.ml') + call ale#test#SetFilename('../test-files/ocamllsp/file.ml') AssertLinter 'ocamllsp', 'opam config exec -- ocamllsp' Execute(The executable should be run directly if use_opam flag is disabled): let g:ale_ocaml_ocamllsp_use_opam = 0 - call ale#test#SetFilename('ocamllsp_paths/file.ml') + call ale#test#SetFilename('../test-files/ocamllsp/file.ml') AssertLinter 'ocamllsp', 'ocamllsp' diff --git a/test/command_callback/test_ocaml_ols_callbacks.vader b/test/command_callback/test_ocaml_ols_callbacks.vader index c77e2909..bf9ae65b 100644 --- a/test/command_callback/test_ocaml_ols_callbacks.vader +++ b/test/command_callback/test_ocaml_ols_callbacks.vader @@ -17,19 +17,19 @@ Execute(The default executable should be correct): Execute(The project root should be detected correctly): AssertLSPProject '' - call ale#test#SetFilename('ols_paths/file.ml') + call ale#test#SetFilename('../test-files/ols/file.ml') - AssertLSPProject ale#path#Simplify(g:dir . '/ols_paths') + AssertLSPProject ale#path#Simplify(g:dir . '/../test-files/ols') Execute(The local executable should be used when available): - call ale#test#SetFilename('ols_paths/file.ml') + call ale#test#SetFilename('../test-files/ols/file.ml') - AssertLinter ale#path#Simplify(g:dir . '/ols_paths/node_modules/.bin/ocaml-language-server'), - \ ale#Escape(ale#path#Simplify(g:dir . '/ols_paths/node_modules/.bin/ocaml-language-server')) . ' --stdio' + AssertLinter ale#path#Simplify(g:dir . '/../test-files/ols/node_modules/.bin/ocaml-language-server'), + \ ale#Escape(ale#path#Simplify(g:dir . '/../test-files/ols/node_modules/.bin/ocaml-language-server')) . ' --stdio' Execute(The gloabl executable should always be used when use_global is set): let g:ale_ocaml_ols_use_global = 1 - call ale#test#SetFilename('ols_paths/file.ml') + call ale#test#SetFilename('../test-files/ols/file.ml') AssertLinter 'ocaml-language-server', \ ale#Escape('ocaml-language-server') . ' --stdio' diff --git a/test/command_callback/test_php_intelephense_command_callback.vader b/test/command_callback/test_php_intelephense_command_callback.vader index dd6adb3d..d6e2469d 100644 --- a/test/command_callback/test_php_intelephense_command_callback.vader +++ b/test/command_callback/test_php_intelephense_command_callback.vader @@ -9,18 +9,18 @@ Execute(The default executable path should be correct): \ ale#Escape('intelephense') . ' --stdio' Execute(The project path should be correct for .git directories): - call ale#test#SetFilename('php-intelephense-project/with-git/test.php') - silent! call mkdir('php-intelephense-project/with-git/.git', 'p') + call ale#test#SetFilename('../test-files/php/with-git/test.php') + silent! call mkdir('../test-files/php/with-git/.git', 'p') - AssertLSPProject ale#path#Simplify(g:dir . '/php-intelephense-project/with-git') + AssertLSPProject ale#path#Simplify(g:dir . '/../test-files/php/with-git') Execute(The project path should be correct for composer.json file): - call ale#test#SetFilename('php-intelephense-project/with-composer/test.php') + call ale#test#SetFilename('../test-files/php/with-composer/test.php') - AssertLSPProject ale#path#Simplify(g:dir . '/php-intelephense-project/with-composer') + AssertLSPProject ale#path#Simplify(g:dir . '/../test-files/php/with-composer') Execute(The project cache should be saved in a temp dir): - call ale#test#SetFilename('php-intelephense-project/with-composer/test.php') + call ale#test#SetFilename('../test-files/php/with-composer/test.php') let g:ale_php_intelephense_config = { 'storagePath': '/tmp/intelephense' } - AssertLSPProject ale#path#Simplify(g:dir . '/php-intelephense-project/with-composer') + AssertLSPProject ale#path#Simplify(g:dir . '/../test-files/php/with-composer') diff --git a/test/command_callback/test_php_langserver_callbacks.vader b/test/command_callback/test_php_langserver_callbacks.vader index 59c3fe6c..7fe20b82 100644 --- a/test/command_callback/test_php_langserver_callbacks.vader +++ b/test/command_callback/test_php_langserver_callbacks.vader @@ -9,22 +9,22 @@ Execute(The default executable path should be correct): \ 'php ' . ale#Escape('php-language-server.php') Execute(Vendor executables should be detected): - call ale#test#SetFilename('php-langserver-project/test.php') + call ale#test#SetFilename('../test-files/php/test.php') AssertLinter - \ ale#path#Simplify(g:dir . '/php-langserver-project/vendor/bin/php-language-server.php'), + \ ale#path#Simplify(g:dir . '/../test-files/php/vendor/bin/php-language-server.php'), \ 'php ' . ale#Escape(ale#path#Simplify( \ g:dir - \ . '/php-langserver-project/vendor/bin/php-language-server.php' + \ . '/../test-files/php/vendor/bin/php-language-server.php' \ )) Execute(The project path should be correct for .git directories): - call ale#test#SetFilename('php-langserver-project/with-git/test.php') - silent! call mkdir('php-langserver-project/with-git/.git') + call ale#test#SetFilename('../test-files/php/with-git/test.php') + silent! call mkdir('../test-files/php/with-git/.git') - AssertLSPProject ale#path#Simplify(g:dir . '/php-langserver-project/with-git') + AssertLSPProject ale#path#Simplify(g:dir . '/../test-files/php/with-git') Execute(The project path should be correct for composer.json file): - call ale#test#SetFilename('php-langserver-project/with-composer/test.php') + call ale#test#SetFilename('../test-files/php/with-composer/test.php') - AssertLSPProject ale#path#Simplify(g:dir . '/php-langserver-project/with-composer') + AssertLSPProject ale#path#Simplify(g:dir . '/../test-files/php/with-composer') diff --git a/test/command_callback/test_phpcs_command_callback.vader b/test/command_callback/test_phpcs_command_callback.vader index 35d59777..afb88e32 100644 --- a/test/command_callback/test_phpcs_command_callback.vader +++ b/test/command_callback/test_phpcs_command_callback.vader @@ -7,9 +7,9 @@ After: call ale#assert#TearDownLinterTest() Execute(The local phpcs executable should be used): - call ale#test#SetFilename('../phpcs-test-files/project-with-phpcs/foo/test.php') + call ale#test#SetFilename('../test-files/phpcs/project-with-phpcs/foo/test.php') - let g:executable = ale#path#Simplify(g:dir . '/../phpcs-test-files/project-with-phpcs/vendor/bin/phpcs') + let g:executable = ale#path#Simplify(g:dir . '/../test-files/phpcs/project-with-phpcs/vendor/bin/phpcs') AssertLinterCwd '%s:h' AssertLinter g:executable, ale#Escape(g:executable) @@ -18,13 +18,13 @@ Execute(The local phpcs executable should be used): Execute(use_global should override local executable detection): let g:ale_php_phpcs_use_global = 1 - call ale#test#SetFilename('../phpcs-test-files/project-with-phpcs/foo/test.php') + call ale#test#SetFilename('../test-files/phpcs/project-with-phpcs/foo/test.php') AssertLinter 'phpcs', ale#Escape('phpcs') \ . ' -s --report=emacs --stdin-path=%s' Execute(Projects without local executables should use the global one): - call ale#test#SetFilename('../phpcs-test-files/project-without-phpcs/foo/test.php') + call ale#test#SetFilename('../test-files/phpcs/project-without-phpcs/foo/test.php') AssertLinter 'phpcs', ale#Escape('phpcs') \ . ' -s --report=emacs --stdin-path=%s' diff --git a/test/command_callback/test_prospector_command_callback.vader b/test/command_callback/test_prospector_command_callback.vader index 0d692bde..d6f84308 100644 --- a/test/command_callback/test_prospector_command_callback.vader +++ b/test/command_callback/test_prospector_command_callback.vader @@ -13,7 +13,7 @@ Execute(Setting executable to 'pipenv' appends 'run prospector'): Execute(Pipenv is detected when python_prospector_auto_pipenv is set): let g:ale_python_prospector_auto_pipenv = 1 - call ale#test#SetFilename('/testplugin/test/python_fixtures/pipenv/whatever.py') + call ale#test#SetFilename('../test-files/python/pipenv/whatever.py') AssertLinter 'pipenv', \ ale#Escape('pipenv') . ' run prospector' diff --git a/test/command_callback/test_psalm_command_callbacks.vader b/test/command_callback/test_psalm_command_callbacks.vader index d32780e6..4edb95c8 100644 --- a/test/command_callback/test_psalm_command_callbacks.vader +++ b/test/command_callback/test_psalm_command_callbacks.vader @@ -16,13 +16,13 @@ Execute(The default executable path should be correct): \ ale#Escape('psalm') . ' --language-server' Execute(Vendor executables should be detected): - call ale#test#SetFilename('psalm-project/test.php') + call ale#test#SetFilename('../test-files/psalm/test.php') AssertLinter - \ ale#path#Simplify(g:dir . '/psalm-project/vendor/bin/psalm'), + \ ale#path#Simplify(g:dir . '/../test-files/psalm/vendor/bin/psalm'), \ ale#Escape(ale#path#Simplify( \ g:dir - \ . '/psalm-project/vendor/bin/psalm' + \ . '/../test-files/psalm/vendor/bin/psalm' \ )) . ' --language-server' let g:ale_php_psalm_use_global = 1 @@ -36,25 +36,3 @@ Execute(User provided options should be used): AssertLinter 'psalm', \ ale#Escape('psalm') \ . ' --language-server --my-user-provided-option my-value' - -Execute(The project path should be correct for .git directories): - call ale#test#SetFilename('psalm-project/test.php') - let g:matched = 0 - - for g:i in range(4) - if !isdirectory(g:dir . '/.git') - call mkdir(g:dir . '/.git') - endif - - try - AssertLSPProject g:dir - catch /.+/ - endtry - - let g:matched = 1 - break - endfor - - if !g:matched - AssertLSPProject g:dir - endif diff --git a/test/command_callback/test_puglint_command_callback.vader b/test/command_callback/test_puglint_command_callback.vader index 69c86b25..8a445408 100644 --- a/test/command_callback/test_puglint_command_callback.vader +++ b/test/command_callback/test_puglint_command_callback.vader @@ -5,44 +5,44 @@ After: call ale#assert#TearDownLinterTest() Execute(puglint should detect local executables and package.json): - call ale#test#SetFilename('puglint_project/test.pug') + call ale#test#SetFilename('../test-files/puglint/test.pug') AssertLinter - \ ale#path#Simplify(g:dir . '/puglint_project/node_modules/.bin/pug-lint'), - \ ale#Escape(ale#path#Simplify(g:dir . '/puglint_project/node_modules/.bin/pug-lint')) - \ . ' -c ' . ale#Escape(ale#path#Simplify(g:dir . '/puglint_project/package.json')) + \ ale#path#Simplify(g:dir . '/../test-files/puglint/node_modules/.bin/pug-lint'), + \ ale#Escape(ale#path#Simplify(g:dir . '/../test-files/puglint/node_modules/.bin/pug-lint')) + \ . ' -c ' . ale#Escape(ale#path#Simplify(g:dir . '/../test-files/puglint/package.json')) \ . ' -r inline %t' Execute(puglint should use global executables if configured): let g:ale_pug_puglint_use_global = 1 - call ale#test#SetFilename('puglint_project/test.pug') + call ale#test#SetFilename('../test-files/puglint/test.pug') AssertLinter 'pug-lint', \ ale#Escape('pug-lint') - \ . ' -c ' . ale#Escape(ale#path#Simplify(g:dir . '/puglint_project/package.json')) + \ . ' -c ' . ale#Escape(ale#path#Simplify(g:dir . '/../test-files/puglint/package.json')) \ . ' -r inline %t' Execute(puglint should detect .pug-lintrc): - call ale#test#SetFilename('puglint_project/puglint_rc_dir/subdir/test.pug') + call ale#test#SetFilename('../test-files/puglint/puglint_rc_dir/subdir/test.pug') - AssertLinter ale#path#Simplify(g:dir . '/puglint_project/node_modules/.bin/pug-lint'), - \ ale#Escape(ale#path#Simplify(g:dir . '/puglint_project/node_modules/.bin/pug-lint')) - \ . ' -c ' . ale#Escape(ale#path#Simplify(g:dir . '/puglint_project/puglint_rc_dir/.pug-lintrc')) + AssertLinter ale#path#Simplify(g:dir . '/../test-files/puglint/node_modules/.bin/pug-lint'), + \ ale#Escape(ale#path#Simplify(g:dir . '/../test-files/puglint/node_modules/.bin/pug-lint')) + \ . ' -c ' . ale#Escape(ale#path#Simplify(g:dir . '/../test-files/puglint/puglint_rc_dir/.pug-lintrc')) \ . ' -r inline %t' Execute(puglint should detect .pug-lintrc.js): - call ale#test#SetFilename('puglint_project/puglint_rc_js_dir/subdir/test.pug') + call ale#test#SetFilename('../test-files/puglint/puglint_rc_js_dir/subdir/test.pug') - AssertLinter ale#path#Simplify(g:dir . '/puglint_project/node_modules/.bin/pug-lint'), - \ ale#Escape(ale#path#Simplify(g:dir . '/puglint_project/node_modules/.bin/pug-lint')) - \ . ' -c ' . ale#Escape(ale#path#Simplify(g:dir . '/puglint_project/puglint_rc_js_dir/.pug-lintrc.js')) + AssertLinter ale#path#Simplify(g:dir . '/../test-files/puglint/node_modules/.bin/pug-lint'), + \ ale#Escape(ale#path#Simplify(g:dir . '/../test-files/puglint/node_modules/.bin/pug-lint')) + \ . ' -c ' . ale#Escape(ale#path#Simplify(g:dir . '/../test-files/puglint/puglint_rc_js_dir/.pug-lintrc.js')) \ . ' -r inline %t' Execute(puglint should detect .pug-lintrc.json): - call ale#test#SetFilename('puglint_project/puglint_rc_json_dir/subdir/test.pug') + call ale#test#SetFilename('../test-files/puglint/puglint_rc_json_dir/subdir/test.pug') - AssertLinter ale#path#Simplify(g:dir . '/puglint_project/node_modules/.bin/pug-lint'), - \ ale#Escape(ale#path#Simplify(g:dir . '/puglint_project/node_modules/.bin/pug-lint')) - \ . ' -c ' . ale#Escape(ale#path#Simplify(g:dir . '/puglint_project/puglint_rc_json_dir/.pug-lintrc.json')) + AssertLinter ale#path#Simplify(g:dir . '/../test-files/puglint/node_modules/.bin/pug-lint'), + \ ale#Escape(ale#path#Simplify(g:dir . '/../test-files/puglint/node_modules/.bin/pug-lint')) + \ . ' -c ' . ale#Escape(ale#path#Simplify(g:dir . '/../test-files/puglint/puglint_rc_json_dir/.pug-lintrc.json')) \ . ' -r inline %t' diff --git a/test/command_callback/test_purescript_ls_command_callbacks.vader b/test/command_callback/test_purescript_ls_command_callbacks.vader index da63f7f1..3ef9707a 100644 --- a/test/command_callback/test_purescript_ls_command_callbacks.vader +++ b/test/command_callback/test_purescript_ls_command_callbacks.vader @@ -8,22 +8,22 @@ Execute(should set correct defaults): AssertLinter 'purescript-language-server', ale#Escape('purescript-language-server') . ' --stdio' Execute(should set correct LSP values): - call ale#test#SetFilename('purescript_paths/spago/Foo.purs') + call ale#test#SetFilename('../test-files/purescript/spago/Foo.purs') AssertLSPLanguage 'purescript' AssertLSPOptions {} AssertLSPConfig {} - AssertLSPProject ale#path#Simplify(g:dir . '/purescript_paths/spago') + AssertLSPProject ale#path#Simplify(g:dir . '/../test-files/purescript/spago') Execute(should set correct project for bower): - call ale#test#SetFilename('purescript_paths/bower/Foo.purs') + call ale#test#SetFilename('../test-files/purescript/bower/Foo.purs') - AssertLSPProject ale#path#Simplify(g:dir . '/purescript_paths/bower') + AssertLSPProject ale#path#Simplify(g:dir . '/../test-files/purescript/bower') Execute(should set correct project for psc-package): - call ale#test#SetFilename('purescript_paths/psc-package/Foo.purs') + call ale#test#SetFilename('../test-files/purescript/psc-package/Foo.purs') - AssertLSPProject ale#path#Simplify(g:dir . '/purescript_paths/psc-package') + AssertLSPProject ale#path#Simplify(g:dir . '/../test-files/purescript/psc-package') Execute(should accept configuration settings): AssertLSPConfig {} diff --git a/test/command_callback/test_pycodestyle_command_callback.vader b/test/command_callback/test_pycodestyle_command_callback.vader index a3a338a9..9260913c 100644 --- a/test/command_callback/test_pycodestyle_command_callback.vader +++ b/test/command_callback/test_pycodestyle_command_callback.vader @@ -27,7 +27,7 @@ Execute(Setting executable to 'pipenv' appends 'run pycodestyle'): Execute(Pipenv is detected when python_pycodestyle_auto_pipenv is set): let g:ale_python_pycodestyle_auto_pipenv = 1 - call ale#test#SetFilename('/testplugin/test/python_fixtures/pipenv/whatever.py') + call ale#test#SetFilename('../test-files/python/pipenv/whatever.py') AssertLinter 'pipenv', \ ale#Escape('pipenv') . ' run pycodestyle -' diff --git a/test/command_callback/test_pydocstyle_command_callback.vader b/test/command_callback/test_pydocstyle_command_callback.vader index 0a69c79a..b24cb0d9 100644 --- a/test/command_callback/test_pydocstyle_command_callback.vader +++ b/test/command_callback/test_pydocstyle_command_callback.vader @@ -28,6 +28,6 @@ Execute(Setting executable to 'pipenv' appends 'run pydocstyle'): Execute(Pipenv is detected when python_pydocstyle_auto_pipenv is set): let g:ale_python_pydocstyle_auto_pipenv = 1 - call ale#test#SetFilename('../python_fixtures/pipenv/whatever.py') + call ale#test#SetFilename('../test-files/python/pipenv/whatever.py') AssertLinter 'pipenv', ale#Escape('pipenv') . ' run pydocstyle %s:t' diff --git a/test/command_callback/test_pyflakes_command_callback.vader b/test/command_callback/test_pyflakes_command_callback.vader index 92f83820..bbb7b74c 100644 --- a/test/command_callback/test_pyflakes_command_callback.vader +++ b/test/command_callback/test_pyflakes_command_callback.vader @@ -17,16 +17,16 @@ Execute(The pyflakes executable should be configurable): \ ale#Escape('~/.local/bin/pyflakes') . ' %t' Execute(The pyflakes executable should be run from the virtualenv path): - call ale#test#SetFilename('python_paths/with_virtualenv/subdir/foo/bar.py') + call ale#test#SetFilename('../test-files/python/with_virtualenv/subdir/foo/bar.py') let b:executable = ale#path#Simplify( - \ g:dir . '/python_paths/with_virtualenv/env/' . b:bin_dir . '/pyflakes' + \ g:dir . '/../test-files/python/with_virtualenv/env/' . b:bin_dir . '/pyflakes' \) AssertLinter b:executable, ale#Escape(b:executable) . ' %t' Execute(You should be able to override the pyflakes virtualenv lookup): - call ale#test#SetFilename('python_paths/with_virtualenv/subdir/foo/bar.py') + call ale#test#SetFilename('../test-files/python/with_virtualenv/subdir/foo/bar.py') let g:ale_python_pyflakes_use_global = 1 @@ -40,7 +40,7 @@ Execute(Setting executable to 'pipenv' appends 'run pyflakes'): Execute(Pipenv is detected when python_pyflakes_auto_pipenv is set): let g:ale_python_pyflakes_auto_pipenv = 1 - call ale#test#SetFilename('/testplugin/test/python_fixtures/pipenv/whatever.py') + call ale#test#SetFilename('../test-files/python/pipenv/whatever.py') AssertLinter 'pipenv', \ ale#Escape('pipenv') . ' run pyflakes %t' diff --git a/test/command_callback/test_pylama_command_callback.vader b/test/command_callback/test_pylama_command_callback.vader index 7f15bf4f..29fa971b 100644 --- a/test/command_callback/test_pylama_command_callback.vader +++ b/test/command_callback/test_pylama_command_callback.vader @@ -36,31 +36,31 @@ Execute(The pylama command callback should let you set options): AssertLinter 'pylama', ale#Escape('pylama') . ' --some-option' . b:command_tail Execute(The pylama command callback should switch directories to the detected project root): - silent execute 'file ' . fnameescape(g:dir . '/python_paths/no_virtualenv/subdir/foo/bar.py') + silent execute 'file ' . fnameescape(g:dir . '/../test-files/python/no_virtualenv/subdir/foo/bar.py') - AssertLinterCwd ale#path#Simplify(g:dir . '/python_paths/no_virtualenv/subdir') + AssertLinterCwd ale#path#Simplify(g:dir . '/../test-files/python/no_virtualenv/subdir') AssertLinter 'pylama', ale#Escape('pylama') . b:command_tail Execute(The pylama command callback shouldn't detect virtualenv directories where they don't exist): - call ale#test#SetFilename('python_paths/no_virtualenv/subdir/foo/bar.py') + call ale#test#SetFilename('../test-files/python/no_virtualenv/subdir/foo/bar.py') - AssertLinterCwd ale#path#Simplify(g:dir . '/python_paths/no_virtualenv/subdir') + AssertLinterCwd ale#path#Simplify(g:dir . '/../test-files/python/no_virtualenv/subdir') AssertLinter 'pylama', ale#Escape('pylama') . b:command_tail Execute(The pylama command callback should detect virtualenv directories and switch to the project root): - call ale#test#SetFilename('python_paths/with_virtualenv/subdir/foo/bar.py') + call ale#test#SetFilename('../test-files/python/with_virtualenv/subdir/foo/bar.py') let b:executable = ale#path#Simplify( - \ g:dir . '/python_paths/with_virtualenv/env/' . b:bin_dir . '/pylama' + \ g:dir . '/../test-files/python/with_virtualenv/env/' . b:bin_dir . '/pylama' \) - AssertLinterCwd ale#path#Simplify(g:dir . '/python_paths/with_virtualenv/subdir') + AssertLinterCwd ale#path#Simplify(g:dir . '/../test-files/python/with_virtualenv/subdir') AssertLinter b:executable, ale#Escape(b:executable) . b:command_tail Execute(You should able able to use the global pylama instead): - call ale#test#SetFilename('python_paths/with_virtualenv/subdir/foo/bar.py') + call ale#test#SetFilename('../test-files/python/with_virtualenv/subdir/foo/bar.py') let g:ale_python_pylama_use_global = 1 - AssertLinterCwd ale#path#Simplify(g:dir . '/python_paths/with_virtualenv/subdir') + AssertLinterCwd ale#path#Simplify(g:dir . '/../test-files/python/with_virtualenv/subdir') AssertLinter 'pylama', ale#Escape('pylama') . b:command_tail Execute(Setting executable to 'pipenv' appends 'run pylama'): @@ -71,6 +71,6 @@ Execute(Setting executable to 'pipenv' appends 'run pylama'): Execute(Pipenv is detected when python_pylama_auto_pipenv is set): let g:ale_python_pylama_auto_pipenv = 1 - call ale#test#SetFilename('../python_fixtures/pipenv/whatever.py') + call ale#test#SetFilename('../test-files/python/pipenv/whatever.py') AssertLinter 'pipenv', ale#Escape('pipenv') . ' run pylama' . b:command_tail diff --git a/test/command_callback/test_pylint_command_callback.vader b/test/command_callback/test_pylint_command_callback.vader index 4b9a14a5..e581915f 100644 --- a/test/command_callback/test_pylint_command_callback.vader +++ b/test/command_callback/test_pylint_command_callback.vader @@ -44,25 +44,25 @@ Execute(The pylint command callback should let you set options): AssertLinter 'pylint', ale#Escape('pylint') . ' --some-option' . b:command_tail Execute(The pylint callbacks shouldn't detect virtualenv directories where they don't exist): - call ale#test#SetFilename('python_paths/no_virtualenv/subdir/foo/bar.py') + call ale#test#SetFilename('../test-files/python/no_virtualenv/subdir/foo/bar.py') - AssertLinterCwd ale#path#Simplify(g:dir . '/python_paths/no_virtualenv/subdir') + AssertLinterCwd ale#path#Simplify(g:dir . '/../test-files/python/no_virtualenv/subdir') AssertLinter 'pylint', ale#Escape('pylint') . b:command_tail Execute(The pylint callbacks should detect virtualenv directories): - call ale#test#SetFilename('python_paths/with_virtualenv/subdir/foo/bar.py') + call ale#test#SetFilename('../test-files/python/with_virtualenv/subdir/foo/bar.py') let b:executable = ale#path#Simplify( - \ g:dir . '/python_paths/with_virtualenv/env/' . b:bin_dir . '/pylint' + \ g:dir . '/../test-files/python/with_virtualenv/env/' . b:bin_dir . '/pylint' \) - AssertLinterCwd ale#path#Simplify(g:dir . '/python_paths/with_virtualenv/subdir') + AssertLinterCwd ale#path#Simplify(g:dir . '/../test-files/python/with_virtualenv/subdir') AssertLinter b:executable, ale#Escape(b:executable) . b:command_tail Execute(You should able able to use the global pylint instead): - call ale#test#SetFilename('python_paths/with_virtualenv/subdir/foo/bar.py') + call ale#test#SetFilename('../test-files/python/with_virtualenv/subdir/foo/bar.py') let g:ale_python_pylint_use_global = 1 - AssertLinterCwd ale#path#Simplify(g:dir . '/python_paths/with_virtualenv/subdir') + AssertLinterCwd ale#path#Simplify(g:dir . '/../test-files/python/with_virtualenv/subdir') AssertLinter 'pylint', ale#Escape('pylint') . b:command_tail Execute(Setting executable to 'pipenv' appends 'run pylint'): @@ -74,7 +74,7 @@ Execute(Setting executable to 'pipenv' appends 'run pylint'): Execute(Pipenv is detected when python_pylint_auto_pipenv is set): let g:ale_python_pylint_auto_pipenv = 1 - call ale#test#SetFilename('../python_fixtures/pipenv/whatever.py') + call ale#test#SetFilename('../test-files/python/pipenv/whatever.py') AssertLinterCwd expand('%:p:h') AssertLinter 'pipenv', ale#Escape('pipenv') . ' run pylint' diff --git a/test/command_callback/test_pyls_command_callback.vader b/test/command_callback/test_pyls_command_callback.vader index c03b8aeb..74a86ccb 100644 --- a/test/command_callback/test_pyls_command_callback.vader +++ b/test/command_callback/test_pyls_command_callback.vader @@ -23,17 +23,17 @@ Execute(The pyls command callback should let you set options): AssertLinter 'pyls', ale#Escape('pyls') . ' --some-option' Execute(The pyls executable should be run from the virtualenv path): - call ale#test#SetFilename('python_paths/with_virtualenv/subdir/foo/bar.py') + call ale#test#SetFilename('../test-files/python/with_virtualenv/subdir/foo/bar.py') let b:executable = ale#path#Simplify( - \ g:dir . '/python_paths/with_virtualenv/env/' . b:bin_dir . '/pyls' + \ g:dir . '/../test-files/python/with_virtualenv/env/' . b:bin_dir . '/pyls' \) AssertEqual ale#Escape(b:executable), \ ale_linters#python#pyls#GetCommand(bufnr('')) Execute(You should be able to override the pyls virtualenv lookup): - call ale#test#SetFilename('python_paths/with_virtualenv/subdir/foo/bar.py') + call ale#test#SetFilename('../test-files/python/with_virtualenv/subdir/foo/bar.py') let g:ale_python_pyls_use_global = 1 @@ -46,7 +46,7 @@ Execute(Setting executable to 'pipenv' appends 'run pyls'): Execute(Pipenv is detected when python_pyls_auto_pipenv is set): let g:ale_python_pyls_auto_pipenv = 1 - call ale#test#SetFilename('/testplugin/test/python_fixtures/pipenv/whatever.py') + call ale#test#SetFilename('../test-files/python/pipenv/whatever.py') AssertLinter 'pipenv', \ ale#Escape('pipenv') . ' run pyls' diff --git a/test/command_callback/test_pyre_command_callback.vader b/test/command_callback/test_pyre_command_callback.vader index ba57c117..d3e5fe9d 100644 --- a/test/command_callback/test_pyre_command_callback.vader +++ b/test/command_callback/test_pyre_command_callback.vader @@ -17,16 +17,16 @@ Execute(The pyre executable should be configurable): \ ale#Escape('~/.local/bin/pyre') . ' persistent' Execute(The pyre executable should be run from the virtualenv path): - call ale#test#SetFilename('python_paths/with_virtualenv/subdir/foo/bar.py') + call ale#test#SetFilename('../test-files/python/with_virtualenv/subdir/foo/bar.py') let b:executable = ale#path#Simplify( - \ g:dir . '/python_paths/with_virtualenv/env/' . b:bin_dir . '/pyre' + \ g:dir . '/../test-files/python/with_virtualenv/env/' . b:bin_dir . '/pyre' \) AssertLinter b:executable, ale#Escape(b:executable) . ' persistent' Execute(You should be able to override the pyre virtualenv lookup): - call ale#test#SetFilename('python_paths/with_virtualenv/subdir/foo/bar.py') + call ale#test#SetFilename('../test-files/python/with_virtualenv/subdir/foo/bar.py') let g:ale_python_pyre_use_global = 1 @@ -40,7 +40,7 @@ Execute(Setting executable to 'pipenv' appends 'run pyre'): Execute(Pipenv is detected when python_pyre_auto_pipenv is set): let g:ale_python_pyre_auto_pipenv = 1 - call ale#test#SetFilename('/testplugin/test/python_fixtures/pipenv/whatever.py') + call ale#test#SetFilename('../test-files/python/pipenv/whatever.py') AssertLinter 'pipenv', \ ale#Escape('pipenv') . ' run pyre persistent' diff --git a/test/command_callback/test_pyright_command_callback.vader b/test/command_callback/test_pyright_command_callback.vader index 3e421bd9..51510cf2 100644 --- a/test/command_callback/test_pyright_command_callback.vader +++ b/test/command_callback/test_pyright_command_callback.vader @@ -31,17 +31,17 @@ Execute(The default configuration should be mostly empty): AssertLSPConfig {'python': {}} Execute(virtualenv paths should be set in configuration by default): - call ale#test#SetFilename('python_paths/with_virtualenv/subdir/foo/bar.py') + call ale#test#SetFilename('../test-files/python/with_virtualenv/subdir/foo/bar.py') AssertLSPConfig { \ 'python': { - \ 'pythonPath': ale#path#Simplify(g:dir . '/python_paths/with_virtualenv/env/' . b:bin_dir . '/python'), - \ 'venvPath': ale#path#Simplify(g:dir . '/python_paths/with_virtualenv/env'), + \ 'pythonPath': ale#path#Simplify(g:dir . '/../test-files/python/with_virtualenv/env/' . b:bin_dir . '/python'), + \ 'venvPath': ale#path#Simplify(g:dir . '/../test-files/python/with_virtualenv/env'), \ }, \} Execute(The pythonPath should be set based on whatever the ovveride for the venvPath is set to): - call ale#test#SetFilename('python_paths/with_virtualenv/subdir/foo/bar.py') + call ale#test#SetFilename('../test-files/python/with_virtualenv/subdir/foo/bar.py') " This overrides the default detection of the path. let b:ale_python_pyright_config = { @@ -58,7 +58,7 @@ Execute(The pythonPath should be set based on whatever the ovveride for the venv \} Execute(You should be able to override pythonPath when venvPath is detected): - call ale#test#SetFilename('python_paths/with_virtualenv/subdir/foo/bar.py') + call ale#test#SetFilename('../test-files/python/with_virtualenv/subdir/foo/bar.py') " This overrides the default detection of the path. let b:ale_python_pyright_config = { @@ -70,12 +70,12 @@ Execute(You should be able to override pythonPath when venvPath is detected): AssertLSPConfig { \ 'python': { \ 'pythonPath': '/bin/python', - \ 'venvPath': ale#path#Simplify(g:dir . '/python_paths/with_virtualenv/env'), + \ 'venvPath': ale#path#Simplify(g:dir . '/../test-files/python/with_virtualenv/env'), \ }, \} Execute(You should be able to override both pythonPath and venvPath): - call ale#test#SetFilename('python_paths/with_virtualenv/subdir/foo/bar.py') + call ale#test#SetFilename('../test-files/python/with_virtualenv/subdir/foo/bar.py') " This overrides the default detection of the path. let b:ale_python_pyright_config = { @@ -93,7 +93,7 @@ Execute(You should be able to override both pythonPath and venvPath): \} Execute(You should be able to define other settings): - call ale#test#SetFilename('python_paths/with_virtualenv/subdir/foo/bar.py') + call ale#test#SetFilename('../test-files/python/with_virtualenv/subdir/foo/bar.py') let b:ale_python_pyright_config = { \ 'python': { @@ -107,8 +107,8 @@ Execute(You should be able to define other settings): AssertLSPConfig { \ 'python': { \ 'analysis': {'logLevel': 'warning'}, - \ 'pythonPath': ale#path#Simplify(g:dir . '/python_paths/with_virtualenv/env/' . b:bin_dir . '/python'), - \ 'venvPath': ale#path#Simplify(g:dir . '/python_paths/with_virtualenv/env'), + \ 'pythonPath': ale#path#Simplify(g:dir . '/../test-files/python/with_virtualenv/env/' . b:bin_dir . '/python'), + \ 'venvPath': ale#path#Simplify(g:dir . '/../test-files/python/with_virtualenv/env'), \ }, \ 'pyright': { \ 'disableLanguageServices': v:true, diff --git a/test/command_callback/test_r_languageserver_callbacks.vader b/test/command_callback/test_r_languageserver_callbacks.vader index 9a4a1f87..b5be0396 100644 --- a/test/command_callback/test_r_languageserver_callbacks.vader +++ b/test/command_callback/test_r_languageserver_callbacks.vader @@ -10,9 +10,9 @@ Execute(The default executable path should be correct): Execute(The project root should be detected correctly): AssertLSPProject '.' - call ale#test#SetFilename('r_paths/dummy/test.R') + call ale#test#SetFilename('../test-files/r/dummy/test.R') - AssertLSPProject ale#path#Simplify(g:dir . '/r_paths') + AssertLSPProject ale#path#Simplify(g:dir . '/../test-files/r') Execute(Should accept configuration settings): AssertLSPConfig {} diff --git a/test/command_callback/test_rails_best_practices_command_callback.vader b/test/command_callback/test_rails_best_practices_command_callback.vader index bc7c8e85..6a6f7a53 100644 --- a/test/command_callback/test_rails_best_practices_command_callback.vader +++ b/test/command_callback/test_rails_best_practices_command_callback.vader @@ -1,10 +1,10 @@ Before: call ale#assert#SetUpLinterTest('ruby', 'rails_best_practices') - call ale#test#SetFilename('../ruby_fixtures/valid_rails_app/db/test.rb') + call ale#test#SetFilename('../test-files/ruby/valid_rails_app/db/test.rb') let b:args = '--silent -f json' \ . ' --output-file ' . (has('win32') ? '%t' : '/dev/stdout') - let b:app_path = ale#path#Simplify(g:dir . '/../ruby_fixtures/valid_rails_app') + let b:app_path = ale#path#Simplify(g:dir . '/../test-files/ruby/valid_rails_app') let b:suffix = has('win32') ? '; type %t' : '' After: @@ -37,6 +37,6 @@ Execute(Setting bundle appends 'exec rails_best_practices'): \ . b:suffix Execute(Command callback should be empty when not in a valid Rails app): - call ale#test#SetFilename('../ruby_fixtures/not_a_rails_app/test.rb') + call ale#test#SetFilename('../test-files/ruby/not_a_rails_app/test.rb') AssertLinter 'rails_best_practices', '' diff --git a/test/command_callback/test_reason_ls_command_callback.vader b/test/command_callback/test_reason_ls_command_callback.vader index 64f672d7..57ea7302 100644 --- a/test/command_callback/test_reason_ls_command_callback.vader +++ b/test/command_callback/test_reason_ls_command_callback.vader @@ -16,6 +16,6 @@ Execute(There should be no default project root): AssertLSPProject '' Execute(The project root should be detected using bsconfig.json): - call ale#test#SetFilename('reason_ls_paths/test.ml') + call ale#test#SetFilename('../test-files/reasonml/test.ml') - AssertLSPProject ale#path#Simplify(g:dir . '/reason_ls_paths') + AssertLSPProject ale#path#Simplify(g:dir . '/../test-files/reasonml') diff --git a/test/command_callback/test_reason_ols_callbacks.vader b/test/command_callback/test_reason_ols_callbacks.vader index 53ef7fab..752bd05b 100644 --- a/test/command_callback/test_reason_ols_callbacks.vader +++ b/test/command_callback/test_reason_ols_callbacks.vader @@ -17,20 +17,20 @@ Execute(The default executable should be correct): Execute(The project root should be detected correctly): AssertLSPProject '' - call ale#test#SetFilename('ols_paths/file.re') + call ale#test#SetFilename('../test-files/ols/file.re') - AssertLSPProject ale#path#Simplify(g:dir . '/ols_paths') + AssertLSPProject ale#path#Simplify(g:dir . '/../test-files/ols') Execute(The local executable should be used when available): - call ale#test#SetFilename('ols_paths/file.re') + call ale#test#SetFilename('../test-files/ols/file.re') AssertLinter - \ ale#path#Simplify(g:dir . '/ols_paths/node_modules/.bin/ocaml-language-server'), - \ ale#Escape(ale#path#Simplify(g:dir . '/ols_paths/node_modules/.bin/ocaml-language-server')) . ' --stdio' + \ ale#path#Simplify(g:dir . '/../test-files/ols/node_modules/.bin/ocaml-language-server'), + \ ale#Escape(ale#path#Simplify(g:dir . '/../test-files/ols/node_modules/.bin/ocaml-language-server')) . ' --stdio' Execute(The gloabl executable should always be used when use_global is set): let g:ale_reason_ols_use_global = 1 - call ale#test#SetFilename('ols_paths/file.re') + call ale#test#SetFilename('../test-files/ols/file.re') AssertLinter 'ocaml-language-server', \ ale#Escape('ocaml-language-server') . ' --stdio' diff --git a/test/command_callback/test_remark_lint_command_callbacks.vader b/test/command_callback/test_remark_lint_command_callbacks.vader index f3ab7550..a34f0a90 100644 --- a/test/command_callback/test_remark_lint_command_callbacks.vader +++ b/test/command_callback/test_remark_lint_command_callbacks.vader @@ -22,16 +22,16 @@ Execute(The options should be configurable): \ ale#Escape('remark') . ' --something --no-stdout --no-color' Execute(The local executable from .bin should be used if available): - call ale#test#SetFilename('remark_lint_paths/with_bin_path/foo.md') + call ale#test#SetFilename('../test-files/remark_lint/with_bin_path/foo.md') AssertLinter - \ ale#path#Simplify(g:dir . '/remark_lint_paths/with_bin_path/node_modules/.bin/remark'), - \ ale#Escape(ale#path#Simplify(g:dir . '/remark_lint_paths/with_bin_path/node_modules/.bin/remark')) + \ ale#path#Simplify(g:dir . '/../test-files/remark_lint/with_bin_path/node_modules/.bin/remark'), + \ ale#Escape(ale#path#Simplify(g:dir . '/../test-files/remark_lint/with_bin_path/node_modules/.bin/remark')) \ . ' --no-stdout --no-color' Execute(The global executable should be uesd if the option is set): let b:ale_markdown_remark_lint_use_global = 1 - call ale#test#SetFilename('remark_lint_paths/with_bin_path/foo.md') + call ale#test#SetFilename('../test-files/remark_lint/with_bin_path/foo.md') AssertLinter 'remark', ale#Escape('remark') \ . ' --no-stdout --no-color' diff --git a/test/command_callback/test_rnix_command_callback.vader b/test/command_callback/test_rnix_command_callback.vader new file mode 100644 index 00000000..8970ee99 --- /dev/null +++ b/test/command_callback/test_rnix_command_callback.vader @@ -0,0 +1,12 @@ +" Author: jD91mZM2 +" Description: Tests for rnix-lsp language client +Before: + call ale#assert#SetUpLinterTest('nix', 'rnix_lsp') + +After: + call ale#assert#TearDownLinterTest() + +Execute(should start rnix-lsp): + AssertLSPLanguage 'nix' + AssertLSPOptions {} + AssertLSPProject ale#path#Simplify('.') diff --git a/test/command_callback/test_rst_textlint_command_callbacks.vader b/test/command_callback/test_rst_textlint_command_callbacks.vader index 9bc4c5c2..b2d99636 100644 --- a/test/command_callback/test_rst_textlint_command_callbacks.vader +++ b/test/command_callback/test_rst_textlint_command_callbacks.vader @@ -42,24 +42,24 @@ Execute(The options should be configurable): \ ale#Escape('textlint') . ' --something -f json --stdin --stdin-filename %s' Execute(The local executable from .bin should be used if available): - call ale#test#SetFilename('textlint_paths/with_bin_path/foo.txt') + call ale#test#SetFilename('../test-files/textlint/with_bin_path/foo.txt') AssertLinter - \ ale#path#Simplify(g:dir . '/textlint_paths/with_bin_path/node_modules/.bin/textlint'), - \ ale#Escape(ale#path#Simplify(g:dir . '/textlint_paths/with_bin_path/node_modules/.bin/textlint')) + \ ale#path#Simplify(g:dir . '/../test-files/textlint/with_bin_path/node_modules/.bin/textlint'), + \ ale#Escape(ale#path#Simplify(g:dir . '/../test-files/textlint/with_bin_path/node_modules/.bin/textlint')) \ . ' -f json --stdin --stdin-filename %s' Execute(The local executable from textlint/bin should be used if available): - call ale#test#SetFilename('textlint_paths/with_textlint_bin_path/foo.txt') + call ale#test#SetFilename('../test-files/textlint/with_textlint_bin_path/foo.txt') if has('win32') AssertLinter - \ ale#path#Simplify(g:dir . '/textlint_paths/with_textlint_bin_path/node_modules/textlint/bin/textlint.js'), - \ ale#Escape('node.exe') . ' ' . ale#Escape(ale#path#Simplify(g:dir . '/textlint_paths/with_textlint_bin_path/node_modules/textlint/bin/textlint.js')) + \ ale#path#Simplify(g:dir . '/../test-files/textlint/with_textlint_bin_path/node_modules/textlint/bin/textlint.js'), + \ ale#Escape('node.exe') . ' ' . ale#Escape(ale#path#Simplify(g:dir . '/../test-files/textlint/with_textlint_bin_path/node_modules/textlint/bin/textlint.js')) \ . ' -f json --stdin --stdin-filename %s' else AssertLinter - \ ale#path#Simplify(g:dir . '/textlint_paths/with_textlint_bin_path/node_modules/textlint/bin/textlint.js'), - \ ale#Escape(ale#path#Simplify(g:dir . '/textlint_paths/with_textlint_bin_path/node_modules/textlint/bin/textlint.js')) + \ ale#path#Simplify(g:dir . '/../test-files/textlint/with_textlint_bin_path/node_modules/textlint/bin/textlint.js'), + \ ale#Escape(ale#path#Simplify(g:dir . '/../test-files/textlint/with_textlint_bin_path/node_modules/textlint/bin/textlint.js')) \ . ' -f json --stdin --stdin-filename %s' endif diff --git a/test/command_callback/test_ruby_solargraph.vader b/test/command_callback/test_ruby_solargraph.vader index c6aee271..e909049b 100644 --- a/test/command_callback/test_ruby_solargraph.vader +++ b/test/command_callback/test_ruby_solargraph.vader @@ -15,28 +15,28 @@ Execute(command callback executable can be overridden): AssertLinter 'foobar', ale#Escape('foobar') . ' stdio' Execute(should set solargraph for rails app): - call ale#test#SetFilename('../ruby_fixtures/valid_rails_app/app/models/thing.rb') + call ale#test#SetFilename('../test-files/ruby/valid_rails_app/app/models/thing.rb') AssertLSPLanguage 'ruby' AssertLSPOptions {} - AssertLSPProject ale#path#Simplify(g:dir . 'command_callback/../ruby_fixtures/valid_rails_app') + AssertLSPProject ale#path#Simplify(g:dir . 'command_callback/../test-files/ruby/valid_rails_app') Execute(should set solargraph for ruby app1): - call ale#test#SetFilename('../ruby_fixtures/valid_ruby_app1/lib/file.rb') + call ale#test#SetFilename('../test-files/ruby/valid_ruby_app1/lib/file.rb') AssertLSPLanguage 'ruby' AssertLSPOptions {} - AssertLSPProject ale#path#Simplify(g:dir . 'command_callback/../ruby_fixtures/valid_ruby_app1') + AssertLSPProject ale#path#Simplify(g:dir . 'command_callback/../test-files/ruby/valid_ruby_app1') Execute(should set solargraph for ruby app2): - call ale#test#SetFilename('../ruby_fixtures/valid_ruby_app2/lib/file.rb') + call ale#test#SetFilename('../test-files/ruby/valid_ruby_app2/lib/file.rb') AssertLSPLanguage 'ruby' AssertLSPOptions {} - AssertLSPProject ale#path#Simplify(g:dir . 'command_callback/../ruby_fixtures/valid_ruby_app2') + AssertLSPProject ale#path#Simplify(g:dir . 'command_callback/../test-files/ruby/valid_ruby_app2') Execute(should set solargraph for ruby app3): - call ale#test#SetFilename('../ruby_fixtures/valid_ruby_app3/lib/file.rb') + call ale#test#SetFilename('../test-files/ruby/valid_ruby_app3/lib/file.rb') AssertLSPLanguage 'ruby' AssertLSPOptions {} - AssertLSPProject ale#path#Simplify(g:dir . 'command_callback/../ruby_fixtures/valid_ruby_app3') + AssertLSPProject ale#path#Simplify(g:dir . 'command_callback/../test-files/ruby/valid_ruby_app3') Execute(should accept initialization options): AssertLSPOptions {} diff --git a/test/command_callback/test_rust_analyzer_callbacks.vader b/test/command_callback/test_rust_analyzer_callbacks.vader index efab1378..82a3adfb 100644 --- a/test/command_callback/test_rust_analyzer_callbacks.vader +++ b/test/command_callback/test_rust_analyzer_callbacks.vader @@ -10,9 +10,9 @@ Execute(The default executable path should be correct): Execute(The project root should be detected correctly): AssertLSPProject '' - call ale#test#SetFilename('rust-rls-project/test.rs') + call ale#test#SetFilename('../test-files/rust/test.rs') - AssertLSPProject ale#path#Simplify(g:dir . '/rust-rls-project') + AssertLSPProject ale#path#Simplify(g:dir . '/../test-files/rust') Execute(Should accept configuration settings): AssertLSPConfig {} diff --git a/test/command_callback/test_rust_rls_callbacks.vader b/test/command_callback/test_rust_rls_callbacks.vader index ec8c8811..9ca25619 100644 --- a/test/command_callback/test_rust_rls_callbacks.vader +++ b/test/command_callback/test_rust_rls_callbacks.vader @@ -20,9 +20,9 @@ Execute(The toolchain should be ommitted if not given): Execute(The project root should be detected correctly): AssertLSPProject '' - call ale#test#SetFilename('rust-rls-project/test.rs') + call ale#test#SetFilename('../test-files/rust/test.rs') - AssertLSPProject ale#path#Simplify(g:dir . '/rust-rls-project') + AssertLSPProject ale#path#Simplify(g:dir . '/../test-files/rust') Execute(Should accept configuration settings): AssertLSPConfig {} diff --git a/test/command_callback/test_rustc_command_callback.vader b/test/command_callback/test_rustc_command_callback.vader index f765e725..4bceb180 100644 --- a/test/command_callback/test_rustc_command_callback.vader +++ b/test/command_callback/test_rustc_command_callback.vader @@ -13,9 +13,9 @@ Execute(The options should be configurable): AssertLinter 'rustc', 'rustc --error-format=json --foo -' Execute(Some default paths should be included when the project is a Cargo project): - call ale#test#SetFilename('cargo_paths/test.rs') + call ale#test#SetFilename('../test-files/cargo/test.rs') AssertLinter 'rustc', 'rustc --error-format=json -Z no-codegen' - \ . ' -L ' . ale#Escape(ale#path#GetAbsPath(g:dir, 'cargo_paths/target/debug/deps')) - \ . ' -L ' . ale#Escape(ale#path#GetAbsPath(g:dir, 'cargo_paths/target/release/deps')) + \ . ' -L ' . ale#Escape(ale#path#GetAbsPath(g:dir, '../test-files/cargo/target/debug/deps')) + \ . ' -L ' . ale#Escape(ale#path#GetAbsPath(g:dir, '../test-files/cargo/target/release/deps')) \ . ' -' diff --git a/test/command_callback/test_sass_sasslint_command_callback.vader b/test/command_callback/test_sass_sasslint_command_callback.vader index 9b9bf906..87f0c8ad 100644 --- a/test/command_callback/test_sass_sasslint_command_callback.vader +++ b/test/command_callback/test_sass_sasslint_command_callback.vader @@ -7,11 +7,11 @@ After: call ale#assert#TearDownLinterTest() Execute(should default to source, bin/sass-lint.js): - call ale#test#SetFilename('sasslint-test-files/with-source/test.sass') + call ale#test#SetFilename('../test-files/sasslint/with-source/test.sass') let b:executable = ale#path#Simplify( \ g:dir - \ . '/sasslint-test-files/with-source/node_modules/sass-lint/bin/sass-lint.js' + \ . '/../test-files/sasslint/with-source/node_modules/sass-lint/bin/sass-lint.js' \) AssertLinter b:executable, @@ -20,11 +20,11 @@ Execute(should default to source, bin/sass-lint.js): \ . ' -v -q -f compact %t' Execute(should fallback to bin, .bin/sass-lint): - call ale#test#SetFilename('sasslint-test-files/with-bin/test.sass') + call ale#test#SetFilename('../test-files/sasslint/with-bin/test.sass') let b:executable = ale#path#Simplify( \ g:dir - \ . '/sasslint-test-files/with-bin/node_modules/.bin/sass-lint' + \ . '/../test-files/sasslint/with-bin/node_modules/.bin/sass-lint' \) AssertLinter b:executable, ale#Escape(b:executable) . ' -v -q -f compact %t' diff --git a/test/command_callback/test_scala_metals.vader b/test/command_callback/test_scala_metals.vader index 70e14c1a..f5733ddc 100644 --- a/test/command_callback/test_scala_metals.vader +++ b/test/command_callback/test_scala_metals.vader @@ -7,13 +7,13 @@ Before: After: call ale#assert#TearDownLinterTest() Execute(should set metals for sbt project with build.sbt): - call ale#test#SetFilename('../scala_fixtures/valid_sbt_project/Main.scala') + call ale#test#SetFilename('../test-files/scala/valid_sbt_project/Main.scala') AssertLSPLanguage 'scala' AssertLSPOptions {} AssertLSPConfig {} - AssertLSPProject ale#path#Simplify(g:dir . 'command_callback/../scala_fixtures/valid_sbt_project') + AssertLSPProject ale#path#Simplify(g:dir . 'command_callback/../test-files/scala/valid_sbt_project') Execute(should not set metals for sbt project without build.sbt): - call ale#test#SetFilename('../scala_fixtures/invalid_sbt_project/Main.scala') + call ale#test#SetFilename('../test-files/scala/invalid_sbt_project/Main.scala') AssertLSPLanguage 'scala' AssertLSPOptions {} AssertLSPConfig {} diff --git a/test/command_callback/test_scala_sbtserver.vader b/test/command_callback/test_scala_sbtserver.vader index 1c7d8472..a20c424e 100644 --- a/test/command_callback/test_scala_sbtserver.vader +++ b/test/command_callback/test_scala_sbtserver.vader @@ -6,14 +6,14 @@ Before: After: call ale#assert#TearDownLinterTest() Execute(should set sbtserver for sbt project with build.sbt): - call ale#test#SetFilename('../scala_fixtures/valid_sbt_project/Main.scala') + call ale#test#SetFilename('../test-files/scala/valid_sbt_project/Main.scala') AssertLSPLanguage 'scala' AssertLSPOptions {} AssertLSPConfig {} - AssertLSPProject ale#path#Simplify(g:dir . 'command_callback/../scala_fixtures/valid_sbt_project') + AssertLSPProject ale#path#Simplify(g:dir . 'command_callback/../test-files/scala/valid_sbt_project') AssertLSPAddress '127.0.0.1:4273' Execute(should not set sbtserver for sbt project without build.sbt): - call ale#test#SetFilename('../scala_fixtures/invalid_sbt_project/Main.scala') + call ale#test#SetFilename('../test-files/scala/invalid_sbt_project/Main.scala') AssertLSPLanguage 'scala' AssertLSPOptions {} AssertLSPConfig {} diff --git a/test/command_callback/test_scss_sasslint_command_callback.vader b/test/command_callback/test_scss_sasslint_command_callback.vader index 1695190a..839761c2 100644 --- a/test/command_callback/test_scss_sasslint_command_callback.vader +++ b/test/command_callback/test_scss_sasslint_command_callback.vader @@ -7,11 +7,11 @@ After: call ale#assert#TearDownLinterTest() Execute(should default to source, bin/sass-lint.js): - call ale#test#SetFilename('sasslint-test-files/with-source/test.scss') + call ale#test#SetFilename('../test-files/sasslint/with-source/test.scss') let b:executable = ale#path#Simplify( \ g:dir - \ . '/sasslint-test-files/with-source/node_modules/sass-lint/bin/sass-lint.js' + \ . '/../test-files/sasslint/with-source/node_modules/sass-lint/bin/sass-lint.js' \) AssertLinter b:executable, @@ -20,11 +20,11 @@ Execute(should default to source, bin/sass-lint.js): \ . ' -v -q -f compact %t' Execute(should fallback to bin, .bin/sass-lint): - call ale#test#SetFilename('sasslint-test-files/with-bin/test.scss') + call ale#test#SetFilename('../test-files/sasslint/with-bin/test.scss') let b:executable = ale#path#Simplify( \ g:dir - \ . '/sasslint-test-files/with-bin/node_modules/.bin/sass-lint' + \ . '/../test-files/sasslint/with-bin/node_modules/.bin/sass-lint' \) AssertLinter b:executable, ale#Escape(b:executable) . ' -v -q -f compact %t' diff --git a/test/command_callback/test_scss_stylelint_command_callback.vader b/test/command_callback/test_scss_stylelint_command_callback.vader index 9c3a02d8..5a1e71c6 100644 --- a/test/command_callback/test_scss_stylelint_command_callback.vader +++ b/test/command_callback/test_scss_stylelint_command_callback.vader @@ -7,11 +7,11 @@ After: call ale#assert#TearDownLinterTest() Execute(node_modules directories should be discovered): - call ale#test#SetFilename('stylelint_paths/nested/testfile.scss') + call ale#test#SetFilename('../test-files/stylelint/nested/testfile.scss') let b:executable = ale#path#Simplify( \ g:dir - \ . '/stylelint_paths/node_modules/.bin/stylelint' + \ . '/../test-files/stylelint/node_modules/.bin/stylelint' \) AssertLinter b:executable, ale#Escape(b:executable) . ' --stdin-filename %s' @@ -20,7 +20,7 @@ Execute(The global override should work): let b:ale_scss_stylelint_executable = 'foobar' let b:ale_scss_stylelint_use_global = 1 - call ale#test#SetFilename('stylelint_paths/nested/testfile.scss') + call ale#test#SetFilename('../test-files/stylelint/nested/testfile.scss') AssertLinter 'foobar', ale#Escape('foobar') . ' --stdin-filename %s' diff --git a/test/command_callback/test_slimlint_command_callback.vader b/test/command_callback/test_slimlint_command_callback.vader index 3522c2fa..33df9ac0 100644 --- a/test/command_callback/test_slimlint_command_callback.vader +++ b/test/command_callback/test_slimlint_command_callback.vader @@ -9,11 +9,11 @@ Execute(The default command should be correct): AssertLinter 'slim-lint', 'slim-lint %t' Execute(The command should have the .rubocop.yml prepended as an env var if one exists): - call ale#test#SetFilename('../slimlint-test-files/subdir/file.slim') + call ale#test#SetFilename('../test-files/slimlint/subdir/file.slim') AssertLinter 'slim-lint', \ ale#Env( \ 'SLIM_LINT_RUBOCOP_CONF', - \ ale#path#Simplify(g:dir . '/../slimlint-test-files/.rubocop.yml') + \ ale#path#Simplify(g:dir . '/../test-files/slimlint/.rubocop.yml') \ ) \ . 'slim-lint %t' diff --git a/test/command_callback/test_spectral_command_callback.vader b/test/command_callback/test_spectral_command_callback.vader index ed3795b9..cfcf0987 100644 --- a/test/command_callback/test_spectral_command_callback.vader +++ b/test/command_callback/test_spectral_command_callback.vader @@ -23,9 +23,9 @@ Execute(The yaml spectral command callback should allow a global installation to \ . ' lint --ignore-unknown-format -q -f text %t' Execute(The yaml spectral command callback should allow a local installation to be used): - call ale#test#SetFilename('spectral_paths/openapi.yaml') + call ale#test#SetFilename('../test-files/spectral/openapi.yaml') AssertLinter - \ ale#path#Simplify(g:dir . '/spectral_paths/node_modules/.bin/spectral'), - \ ale#Escape(ale#path#Simplify(g:dir . '/spectral_paths/node_modules/.bin/spectral')) + \ ale#path#Simplify(g:dir . '/../test-files/spectral/node_modules/.bin/spectral'), + \ ale#Escape(ale#path#Simplify(g:dir . '/../test-files/spectral/node_modules/.bin/spectral')) \ . ' lint --ignore-unknown-format -q -f text %t' diff --git a/test/command_callback/test_standard_command_callback.vader b/test/command_callback/test_standard_command_callback.vader index a47e2ec9..4722cd4a 100644 --- a/test/command_callback/test_standard_command_callback.vader +++ b/test/command_callback/test_standard_command_callback.vader @@ -7,11 +7,11 @@ After: call ale#assert#TearDownLinterTest() Execute(bin/cmd.js paths should be preferred): - call ale#test#SetFilename('standard-test-files/with-cmd/testfile.js') + call ale#test#SetFilename('../test-files/standard/with-cmd/testfile.js') let b:executable = ale#path#Simplify( \ g:dir - \ . '/standard-test-files/with-cmd/node_modules/standard/bin/cmd.js' + \ . '/../test-files/standard/with-cmd/node_modules/standard/bin/cmd.js' \) AssertLinter b:executable, @@ -20,11 +20,11 @@ Execute(bin/cmd.js paths should be preferred): \ . ' --stdin %s' Execute(.bin directories should be used too): - call ale#test#SetFilename('standard-test-files/with-bin/testfile.js') + call ale#test#SetFilename('../test-files/standard/with-bin/testfile.js') let b:executable = ale#path#Simplify( \ g:dir - \ . '/standard-test-files/with-bin/node_modules/.bin/standard' + \ . '/../test-files/standard/with-bin/node_modules/.bin/standard' \) AssertLinter b:executable, ale#Escape(b:executable) . ' --stdin %s' diff --git a/test/command_callback/test_standardts_command_callback.vader b/test/command_callback/test_standardts_command_callback.vader index d769e712..33ca8b25 100644 --- a/test/command_callback/test_standardts_command_callback.vader +++ b/test/command_callback/test_standardts_command_callback.vader @@ -7,11 +7,11 @@ After: call ale#assert#TearDownLinterTest() Execute(bin/cmd.js paths should be preferred): - call ale#test#SetFilename('standard-test-files/with-cmd/testfile.js') + call ale#test#SetFilename('../test-files/standard/with-cmd/testfile.js') let b:executable = ale#path#Simplify( \ g:dir - \ . '/standard-test-files/with-cmd/node_modules/standard/bin/cmd.js' + \ . '/../test-files/standard/with-cmd/node_modules/standard/bin/cmd.js' \) AssertLinter b:executable, @@ -20,11 +20,11 @@ Execute(bin/cmd.js paths should be preferred): \ . ' --stdin %s' Execute(.bin directories should be used too): - call ale#test#SetFilename('standard-test-files/with-bin/testfile.js') + call ale#test#SetFilename('../test-files/standard/with-bin/testfile.js') let b:executable = ale#path#Simplify( \ g:dir - \ . '/standard-test-files/with-bin/node_modules/.bin/standard' + \ . '/../test-files/standard/with-bin/node_modules/.bin/standard' \) AssertLinter b:executable, ale#Escape(b:executable) . ' --stdin %s' diff --git a/test/command_callback/test_sugarss_stylelint_command_callback.vader b/test/command_callback/test_sugarss_stylelint_command_callback.vader index 448436fb..ba42eaf8 100644 --- a/test/command_callback/test_sugarss_stylelint_command_callback.vader +++ b/test/command_callback/test_sugarss_stylelint_command_callback.vader @@ -7,11 +7,11 @@ After: call ale#assert#TearDownLinterTest() Execute(node_modules directories should be discovered): - call ale#test#SetFilename('stylelint_paths/nested/testfile.sss') + call ale#test#SetFilename('../test-files/stylelint/nested/testfile.sss') let b:executable = ale#path#Simplify( \ g:dir - \ . '/stylelint_paths/node_modules/.bin/stylelint' + \ . '/../test-files/stylelint/node_modules/.bin/stylelint' \) AssertLinter b:executable, ale#Escape(b:executable) . ' --syntax=sugarss --stdin-filename %s' @@ -20,7 +20,7 @@ Execute(The global override should work): let b:ale_sugarss_stylelint_executable = 'foobar' let b:ale_sugarss_stylelint_use_global = 1 - call ale#test#SetFilename('stylelint_paths/nested/testfile.sss') + call ale#test#SetFilename('../test-files/stylelint/nested/testfile.sss') AssertLinter 'foobar', ale#Escape('foobar') . ' --syntax=sugarss --stdin-filename %s' diff --git a/test/command_callback/test_swaglint_command_callback.vader b/test/command_callback/test_swaglint_command_callback.vader index 68fb1406..98f0c594 100644 --- a/test/command_callback/test_swaglint_command_callback.vader +++ b/test/command_callback/test_swaglint_command_callback.vader @@ -21,9 +21,9 @@ Execute(The yaml swaglint command callback should allow a global installation to \ ale#Escape('/usr/local/bin/swaglint') . ' -r compact --stdin' Execute(The yaml swaglint command callback should allow a local installation to be used): - call ale#test#SetFilename('swaglint_paths/docs/swagger.yaml') + call ale#test#SetFilename('../test-files/swaglint/docs/swagger.yaml') AssertLinter - \ ale#path#Simplify(g:dir . '/swaglint_paths/node_modules/.bin/swaglint'), - \ ale#Escape(ale#path#Simplify(g:dir . '/swaglint_paths/node_modules/.bin/swaglint')) + \ ale#path#Simplify(g:dir . '/../test-files/swaglint/node_modules/.bin/swaglint'), + \ ale#Escape(ale#path#Simplify(g:dir . '/../test-files/swaglint/node_modules/.bin/swaglint')) \ . ' -r compact --stdin' diff --git a/test/command_callback/test_swift_sourcekitlsp_command_callbacks.vader b/test/command_callback/test_swift_sourcekitlsp_command_callbacks.vader index 4611c6de..1040d590 100644 --- a/test/command_callback/test_swift_sourcekitlsp_command_callbacks.vader +++ b/test/command_callback/test_swift_sourcekitlsp_command_callbacks.vader @@ -5,12 +5,12 @@ After: call ale#assert#TearDownLinterTest() Execute(The default executable path should be correct): - call ale#test#SetFilename('../swift-test-files/swift-package-project/src/folder/dummy.swift') + call ale#test#SetFilename('../test-files/swift/swift-package-project/src/folder/dummy.swift') AssertLinter 'sourcekit-lsp', ale#Escape('sourcekit-lsp') Execute(Should let users configure a global executable and override local paths): - call ale#test#SetFilename('../swift-test-files/swift-package-project/src/folder/dummy.swift') + call ale#test#SetFilename('../test-files/swift/swift-package-project/src/folder/dummy.swift') let g:ale_sourcekit_lsp_executable = '/path/to/custom/sourcekitlsp' diff --git a/test/command_callback/test_swift_swiftformat_command_callbacks.vader b/test/command_callback/test_swift_swiftformat_command_callbacks.vader index 7be20bf7..9f6ee62e 100644 --- a/test/command_callback/test_swift_swiftformat_command_callbacks.vader +++ b/test/command_callback/test_swift_swiftformat_command_callbacks.vader @@ -5,19 +5,19 @@ After: call ale#assert#TearDownLinterTest() Execute(Should use default command when not in a swift package): - call ale#test#SetFilename('../swift-test-files/non-swift-package-project/src/folder/dummy.swift') + call ale#test#SetFilename('../test-files/swift/non-swift-package-project/src/folder/dummy.swift') AssertLinter 'swift-format', \ ale#Escape('swift-format') . ' --mode lint %t' Execute(Should use swift run when in a swift package): - call ale#test#SetFilename('../swift-test-files/swift-package-project/src/folder/dummy.swift') + call ale#test#SetFilename('../test-files/swift/swift-package-project/src/folder/dummy.swift') AssertLinter 'swift', \ ale#Escape('swift') . ' run swift-format --mode lint %t' Execute(Should let users configure a global executable and override local paths): - call ale#test#SetFilename('../swift-test-files/swift-package-project/src/folder/dummy.swift') + call ale#test#SetFilename('../test-files/swift/swift-package-project/src/folder/dummy.swift') let g:ale_swift_swiftformat_executable = '/path/to/custom/swift-format' diff --git a/test/command_callback/test_swiftlint_command_callback.vader b/test/command_callback/test_swiftlint_command_callback.vader new file mode 100644 index 00000000..d2442b0a --- /dev/null +++ b/test/command_callback/test_swiftlint_command_callback.vader @@ -0,0 +1,43 @@ +Before: + call ale#assert#SetUpLinterTest('swift', 'swiftlint') + +After: + call ale#assert#TearDownLinterTest() + +Execute(Global installation should be the default executable): + call ale#test#SetFilename('../test-files/swiftlint/global/testfile.swift') + + AssertEqual + \ 'swiftlint', + \ ale_linters#swift#swiftlint#GetExecutable(bufnr('')) + +Execute(React Native apps using CocoaPods should take precedence over the default executable): + call ale#test#SetFilename('../test-files/swiftlint/react-native/testfile.swift') + + AssertEqual + \ tolower(ale#test#GetFilename('../test-files/swiftlint/react-native/ios/Pods/SwiftLint/swiftlint')), + \ tolower(ale_linters#swift#swiftlint#GetExecutable(bufnr(''))) + +Execute(CocoaPods installation should take precedence over the default executable): + call ale#test#SetFilename('../test-files/swiftlint/cocoapods/testfile.swift') + + AssertEqual + \ tolower(ale#test#GetFilename('../test-files/swiftlint/cocoapods/Pods/SwiftLint/swiftlint')), + \ tolower(ale_linters#swift#swiftlint#GetExecutable(bufnr(''))) + +Execute(Top level CocoaPods installation should take precedence over React Native installation): + call ale#test#SetFilename('../test-files/swiftlint/cocoapods-and-react-native/testfile.swift') + + AssertEqual + \ tolower(ale#test#GetFilename('../test-files/swiftlint/cocoapods-and-react-native/Pods/SwiftLint/swiftlint')), + \ tolower(ale_linters#swift#swiftlint#GetExecutable(bufnr(''))) + +Execute(use-global should override other versions): + let g:ale_swift_swiftlint_use_global = 1 + let g:ale_swift_swiftlint_executable = 'swiftlint_d' + + call ale#test#SetFilename('../test-files/swiftlint/cocoapods-and-react-native/testfile.swift') + + AssertEqual + \ 'swiftlint_d', + \ ale_linters#swift#swiftlint#GetExecutable(bufnr('')) diff --git a/test/command_callback/test_terraform_ls_command_callback.vader b/test/command_callback/test_terraform_ls_command_callback.vader index d559ba8c..9f7d3450 100644 --- a/test/command_callback/test_terraform_ls_command_callback.vader +++ b/test/command_callback/test_terraform_ls_command_callback.vader @@ -45,7 +45,7 @@ Execute(Should return current directory if it contains .terraform directory): AssertLSPProject g:dir Execute(Should return nearest directory with .terraform if found in parent directory): - call ale#test#SetFilename('../terraform_files/main.tf') + call ale#test#SetFilename('../test-files/terraform/main.tf') let b:parent_dir = ale#path#Simplify(g:dir . '/..') let b:tf_dir = b:parent_dir . '/.terraform' diff --git a/test/command_callback/test_terraform_lsp_command_callback.vader b/test/command_callback/test_terraform_lsp_command_callback.vader index 7a491d54..a292fca0 100644 --- a/test/command_callback/test_terraform_lsp_command_callback.vader +++ b/test/command_callback/test_terraform_lsp_command_callback.vader @@ -32,7 +32,7 @@ Execute(Should return current directory if it contains .terraform directory): AssertLSPProject g:dir Execute(Should return nearest directory with .terraform if found in parent directory): - call ale#test#SetFilename('../terraform_files/main.tf') + call ale#test#SetFilename('../test-files/terraform/main.tf') let b:parent_dir = ale#path#Simplify(g:dir . '/..') let b:tf_dir = b:parent_dir . '/.terraform' diff --git a/test/command_callback/test_terraform_tflint_command_callback.vader b/test/command_callback/test_terraform_tflint_command_callback.vader index 0cef0176..96811e81 100644 --- a/test/command_callback/test_terraform_tflint_command_callback.vader +++ b/test/command_callback/test_terraform_tflint_command_callback.vader @@ -19,10 +19,10 @@ Execute(Overriding options should work): AssertLinter 'fnord', ale#Escape('fnord') . ' --whatever -f json %t' Execute(Configuration files should be found): - call ale#test#SetFilename('../tflint-test-files/foo/bar.tf') + call ale#test#SetFilename('../test-files/tflint/foo/bar.tf') AssertLinter 'tflint', \ ale#Escape('tflint') \ . ' --config ' - \ . ale#Escape(ale#path#Simplify(g:dir . '/../tflint-test-files/foo/.tflint.hcl')) + \ . ale#Escape(ale#path#Simplify(g:dir . '/../test-files/tflint/foo/.tflint.hcl')) \ . ' -f json %t' diff --git a/test/command_callback/test_tex_textlint_command_callbacks.vader b/test/command_callback/test_tex_textlint_command_callbacks.vader index d1e2ab91..f99e0fd0 100644 --- a/test/command_callback/test_tex_textlint_command_callbacks.vader +++ b/test/command_callback/test_tex_textlint_command_callbacks.vader @@ -42,24 +42,24 @@ Execute(The options should be configurable): \ ale#Escape('textlint') . ' --something -f json --stdin --stdin-filename %s' Execute(The local executable from .bin should be used if available): - call ale#test#SetFilename('textlint_paths/with_bin_path/foo.txt') + call ale#test#SetFilename('../test-files/textlint/with_bin_path/foo.txt') AssertLinter - \ ale#path#Simplify(g:dir . '/textlint_paths/with_bin_path/node_modules/.bin/textlint'), - \ ale#Escape(ale#path#Simplify(g:dir . '/textlint_paths/with_bin_path/node_modules/.bin/textlint')) + \ ale#path#Simplify(g:dir . '/../test-files/textlint/with_bin_path/node_modules/.bin/textlint'), + \ ale#Escape(ale#path#Simplify(g:dir . '/../test-files/textlint/with_bin_path/node_modules/.bin/textlint')) \ . ' -f json --stdin --stdin-filename %s' Execute(The local executable from textlint/bin should be used if available): - call ale#test#SetFilename('textlint_paths/with_textlint_bin_path/foo.txt') + call ale#test#SetFilename('../test-files/textlint/with_textlint_bin_path/foo.txt') if has('win32') AssertLinter - \ ale#path#Simplify(g:dir . '/textlint_paths/with_textlint_bin_path/node_modules/textlint/bin/textlint.js'), - \ ale#Escape('node.exe') . ' ' . ale#Escape(ale#path#Simplify(g:dir . '/textlint_paths/with_textlint_bin_path/node_modules/textlint/bin/textlint.js')) + \ ale#path#Simplify(g:dir . '/../test-files/textlint/with_textlint_bin_path/node_modules/textlint/bin/textlint.js'), + \ ale#Escape('node.exe') . ' ' . ale#Escape(ale#path#Simplify(g:dir . '/../test-files/textlint/with_textlint_bin_path/node_modules/textlint/bin/textlint.js')) \ . ' -f json --stdin --stdin-filename %s' else AssertLinter - \ ale#path#Simplify(g:dir . '/textlint_paths/with_textlint_bin_path/node_modules/textlint/bin/textlint.js'), - \ ale#Escape(ale#path#Simplify(g:dir . '/textlint_paths/with_textlint_bin_path/node_modules/textlint/bin/textlint.js')) + \ ale#path#Simplify(g:dir . '/../test-files/textlint/with_textlint_bin_path/node_modules/textlint/bin/textlint.js'), + \ ale#Escape(ale#path#Simplify(g:dir . '/../test-files/textlint/with_textlint_bin_path/node_modules/textlint/bin/textlint.js')) \ . ' -f json --stdin --stdin-filename %s' endif diff --git a/test/command_callback/test_texlab_command_callbacks.vader b/test/command_callback/test_texlab_command_callbacks.vader index c18793da..75fc2f25 100644 --- a/test/command_callback/test_texlab_command_callbacks.vader +++ b/test/command_callback/test_texlab_command_callbacks.vader @@ -14,10 +14,10 @@ Execute(The default executable path should be correct): AssertLinter 'texlab', ale#Escape('texlab') Execute(The project root should be detected correctly): - call ale#test#SetFilename('tex_paths/sample1.tex') - silent! call mkdir('tex_paths/.git') + call ale#test#SetFilename('../test-files/tex/sample1.tex') + silent! call mkdir('../test-files/tex/.git') - AssertLSPProject ale#path#Simplify(g:dir . '/tex_paths') + AssertLSPProject ale#path#Simplify(g:dir . '/../test-files/tex') Execute(The executable should be configurable): let b:ale_tex_texlab_executable = 'foobar' diff --git a/test/command_callback/test_textlint_command_callbacks.vader b/test/command_callback/test_textlint_command_callbacks.vader index 794c7fde..6ec42b2d 100644 --- a/test/command_callback/test_textlint_command_callbacks.vader +++ b/test/command_callback/test_textlint_command_callbacks.vader @@ -42,24 +42,24 @@ Execute(The options should be configurable): \ ale#Escape('textlint') . ' --something -f json --stdin --stdin-filename %s' Execute(The local executable from .bin should be used if available): - call ale#test#SetFilename('textlint_paths/with_bin_path/foo.txt') + call ale#test#SetFilename('../test-files/textlint/with_bin_path/foo.txt') AssertLinter - \ ale#path#Simplify(g:dir . '/textlint_paths/with_bin_path/node_modules/.bin/textlint'), - \ ale#Escape(ale#path#Simplify(g:dir . '/textlint_paths/with_bin_path/node_modules/.bin/textlint')) + \ ale#path#Simplify(g:dir . '/../test-files/textlint/with_bin_path/node_modules/.bin/textlint'), + \ ale#Escape(ale#path#Simplify(g:dir . '/../test-files/textlint/with_bin_path/node_modules/.bin/textlint')) \ . ' -f json --stdin --stdin-filename %s' Execute(The local executable from textlint/bin should be used if available): - call ale#test#SetFilename('textlint_paths/with_textlint_bin_path/foo.txt') + call ale#test#SetFilename('../test-files/textlint/with_textlint_bin_path/foo.txt') if has('win32') AssertLinter - \ ale#path#Simplify(g:dir . '/textlint_paths/with_textlint_bin_path/node_modules/textlint/bin/textlint.js'), - \ ale#Escape('node.exe') . ' ' . ale#Escape(ale#path#Simplify(g:dir . '/textlint_paths/with_textlint_bin_path/node_modules/textlint/bin/textlint.js')) + \ ale#path#Simplify(g:dir . '/../test-files/textlint/with_textlint_bin_path/node_modules/textlint/bin/textlint.js'), + \ ale#Escape('node.exe') . ' ' . ale#Escape(ale#path#Simplify(g:dir . '/../test-files/textlint/with_textlint_bin_path/node_modules/textlint/bin/textlint.js')) \ . ' -f json --stdin --stdin-filename %s' else AssertLinter - \ ale#path#Simplify(g:dir . '/textlint_paths/with_textlint_bin_path/node_modules/textlint/bin/textlint.js'), - \ ale#Escape(ale#path#Simplify(g:dir . '/textlint_paths/with_textlint_bin_path/node_modules/textlint/bin/textlint.js')) + \ ale#path#Simplify(g:dir . '/../test-files/textlint/with_textlint_bin_path/node_modules/textlint/bin/textlint.js'), + \ ale#Escape(ale#path#Simplify(g:dir . '/../test-files/textlint/with_textlint_bin_path/node_modules/textlint/bin/textlint.js')) \ . ' -f json --stdin --stdin-filename %s' endif diff --git a/test/command_callback/test_typescript_deno_lsp.vader b/test/command_callback/test_typescript_deno_lsp.vader index 01cbc851..88b2e036 100644 --- a/test/command_callback/test_typescript_deno_lsp.vader +++ b/test/command_callback/test_typescript_deno_lsp.vader @@ -1,7 +1,7 @@ Before: let g:ale_deno_unstable = 0 let g:ale_deno_executable = 'deno' - let g:ale_deno_project_root = '' + let g:ale_deno_lsp_project_root = '' runtime autoload/ale/handlers/deno.vim call ale#assert#SetUpLinterTest('typescript', 'deno') @@ -10,9 +10,6 @@ After: call ale#assert#TearDownLinterTest() Execute(Should set deno lsp for TypeScript projects using stable Deno API): - AssertLSPLanguage 'typescript' - AssertLSPConfig {} - AssertLSPProject ale#path#Simplify(g:dir . '/../..') AssertLSPOptions { \ 'enable': v:true, \ 'lint': v:true, @@ -21,9 +18,7 @@ Execute(Should set deno lsp for TypeScript projects using stable Deno API): Execute(Should set deno lsp using unstable Deno API if enabled by user): let g:ale_deno_unstable = 1 - AssertLSPLanguage 'typescript' - AssertLSPConfig {} - AssertLSPProject ale#path#Simplify(g:dir . '/../..') + AssertLSPOptions { \ 'enable': v:true, \ 'lint': v:true, @@ -31,30 +26,18 @@ Execute(Should set deno lsp using unstable Deno API if enabled by user): \} Execute(Should find project root containing tsconfig.json): - call ale#test#SetFilename('../typescript/test.ts') + call ale#test#SetFilename('../test-files/typescript/test.ts') + AssertLSPLanguage 'typescript' - AssertLSPConfig {} - AssertLSPProject ale#path#Simplify(g:dir . '/../typescript') - AssertLSPOptions { - \ 'enable': v:true, - \ 'lint': v:true, - \ 'unstable': v:false - \} + AssertLSPProject ale#path#Simplify(g:dir . '/../test-files/typescript') Execute(Should use user-specified project root): let g:ale_deno_lsp_project_root = '/' - call ale#test#SetFilename('../typescript/test.ts') + call ale#test#SetFilename('../test-files/typescript/test.ts') + AssertLSPLanguage 'typescript' - AssertLSPConfig {} AssertLSPProject '/' - AssertLSPOptions { - \ 'enable': v:true, - \ 'lint': v:true, - \ 'unstable': v:false - \} Execute(Check Deno LSP command): - AssertLinter 'deno', [ - \ ale#Escape('deno') . ' lsp', - \] + AssertLinter 'deno', ale#Escape('deno') . ' lsp' diff --git a/test/command_callback/test_vim_vimls.vader b/test/command_callback/test_vim_vimls.vader index ab12b637..47826a1a 100644 --- a/test/command_callback/test_vim_vimls.vader +++ b/test/command_callback/test_vim_vimls.vader @@ -15,17 +15,17 @@ Execute(should set correct defaults): AssertLinter 'vim-language-server', ale#Escape('vim-language-server') . ' --stdio' Execute(should set correct LSP values): - call ale#test#SetFilename('vim_fixtures/path_with_autoload/test.vim') + call ale#test#SetFilename('../test-files/vim/path_with_autoload/test.vim') AssertLSPLanguage 'vim' AssertLSPOptions {} AssertLSPConfig {} - AssertLSPProject ale#path#Simplify(g:dir . '/vim_fixtures/path_with_autoload') + AssertLSPProject ale#path#Simplify(g:dir . '/../test-files/vim/path_with_autoload') Execute(should set correct project for .git/): let b:parent_dir = ale#path#Simplify(g:dir . '/..') let b:git_dir = b:parent_dir . '/.git' - call ale#test#SetFilename('vim_fixtures/test.vim') + call ale#test#SetFilename('../test-files/vim/test.vim') if !isdirectory(b:git_dir) call mkdir(b:git_dir) @@ -37,9 +37,9 @@ Execute(should set correct project for .git/): unlet! b:git_dir Execute(should set correct project for plugin/): - call ale#test#SetFilename('vim_fixtures/path_with_plugin/test.vim') + call ale#test#SetFilename('../test-files/vim/path_with_plugin/test.vim') - AssertLSPProject ale#path#Simplify(g:dir . '/vim_fixtures/path_with_plugin') + AssertLSPProject ale#path#Simplify(g:dir . '/../test-files/vim/path_with_plugin') Execute(should accept configuration settings): AssertLSPConfig {} @@ -48,24 +48,24 @@ Execute(should accept configuration settings): AssertLSPConfig {'vim': {'foobar': v:true}} Execute(should set correct project for .vimrc): - call ale#test#SetFilename('vim_fixtures/path_with_vimrc/.vimrc') + call ale#test#SetFilename('../test-files/vim/path_with_vimrc/.vimrc') - AssertLSPProject ale#path#Simplify(g:dir . '/vim_fixtures/path_with_vimrc') + AssertLSPProject ale#path#Simplify(g:dir . '/../test-files/vim/path_with_vimrc') Execute(should set correct project for init.vim): - call ale#test#SetFilename('vim_fixtures/path_with_initvim/init.vim') + call ale#test#SetFilename('../test-files/vim/path_with_initvim/init.vim') - AssertLSPProject ale#path#Simplify(g:dir . '/vim_fixtures/path_with_initvim') + AssertLSPProject ale#path#Simplify(g:dir . '/../test-files/vim/path_with_initvim') Execute(should use the local executable when available): - call ale#test#SetFilename('vim_fixtures/file.vim') + call ale#test#SetFilename('../test-files/vim/file.vim') - AssertLinter ale#path#Simplify(g:dir . '/vim_fixtures/node_modules/.bin/vim-language-server'), - \ ale#Escape(ale#path#Simplify(g:dir . '/vim_fixtures/node_modules/.bin/vim-language-server')) . ' --stdio' + AssertLinter ale#path#Simplify(g:dir . '/../test-files/vim/node_modules/.bin/vim-language-server'), + \ ale#Escape(ale#path#Simplify(g:dir . '/../test-files/vim/node_modules/.bin/vim-language-server')) . ' --stdio' Execute(should let the global executable to be used): let g:ale_vim_vimls_use_global = 1 - call ale#test#SetFilename('vim_fixtures/file.vim') + call ale#test#SetFilename('../test-files/vim/file.vim') AssertLinter 'vim-language-server', \ ale#Escape('vim-language-server') . ' --stdio' diff --git a/test/command_callback/test_vulture_command_callback.vader b/test/command_callback/test_vulture_command_callback.vader index 41a70045..74709c9e 100644 --- a/test/command_callback/test_vulture_command_callback.vader +++ b/test/command_callback/test_vulture_command_callback.vader @@ -15,9 +15,9 @@ Execute(The vulture command callback should lint file directory by default): AssertLinter 'vulture', ale#Escape('vulture') . ' .' Execute(The vulture command callback should lint project root, when present): - call ale#test#SetFilename('python_paths/no_virtualenv/subdir/foo/bar.py') + call ale#test#SetFilename('../test-files/python/no_virtualenv/subdir/foo/bar.py') - AssertLinterCwd ale#path#Simplify(g:dir . '/python_paths/no_virtualenv/subdir') + AssertLinterCwd ale#path#Simplify(g:dir . '/../test-files/python/no_virtualenv/subdir') AssertLinter 'vulture', ale#Escape('vulture') . ' .' Execute(The option for disabling change directory works and only lints file): @@ -37,17 +37,17 @@ Execute(The vulture command callback should let you set options): AssertLinter 'vulture', ale#Escape('vulture') . ' --some-option .' Execute(The vulture command callback should detect virtualenv directories and switch to the project root): - call ale#test#SetFilename('python_paths/with_virtualenv/subdir/foo/bar.py') + call ale#test#SetFilename('../test-files/python/with_virtualenv/subdir/foo/bar.py') let b:executable = ale#path#Simplify( - \ g:dir . '/python_paths/with_virtualenv/env/' . b:bin_dir . '/vulture' + \ g:dir . '/../test-files/python/with_virtualenv/env/' . b:bin_dir . '/vulture' \) - AssertLinterCwd ale#path#Simplify(g:dir . '/python_paths/with_virtualenv/subdir') + AssertLinterCwd ale#path#Simplify(g:dir . '/../test-files/python/with_virtualenv/subdir') AssertLinter b:executable, ale#Escape(b:executable) . ' .' Execute(You should able able to use the global vulture instead): - call ale#test#SetFilename('python_paths/with_virtualenv/subdir/foo/bar.py') + call ale#test#SetFilename('../test-files/python/with_virtualenv/subdir/foo/bar.py') let g:ale_python_vulture_use_global = 1 AssertLinter 'vulture', ale#Escape('vulture') . ' .' diff --git a/test/command_callback/test_write_good_command_callback.vader b/test/command_callback/test_write_good_command_callback.vader index 9ffa39bd..8958dd6a 100644 --- a/test/command_callback/test_write_good_command_callback.vader +++ b/test/command_callback/test_write_good_command_callback.vader @@ -30,24 +30,24 @@ Execute(The options should be used in the command): \ ale#Escape('write-good') . ' --foo --bar %t', Execute(Should use the node_modules/.bin executable, if available): - call ale#test#SetFilename('write-good-node-modules/test.txt') + call ale#test#SetFilename('../test-files/write-good/node-modules/test.txt') AssertLinter - \ ale#path#Simplify(g:dir . '/write-good-node-modules/node_modules/.bin/write-good'), - \ ale#Escape(ale#path#Simplify(g:dir . '/write-good-node-modules/node_modules/.bin/write-good')) + \ ale#path#Simplify(g:dir . '/../test-files/write-good/node-modules/node_modules/.bin/write-good'), + \ ale#Escape(ale#path#Simplify(g:dir . '/../test-files/write-good/node-modules/node_modules/.bin/write-good')) \ . ' %t', Execute(Should use the node_modules/write-good executable, if available): - call ale#test#SetFilename('write-good-node-modules-2/test.txt') + call ale#test#SetFilename('../test-files/write-good/node-modules-2/test.txt') AssertLinter - \ ale#path#Simplify(g:dir . '/write-good-node-modules-2/node_modules/write-good/bin/write-good.js'), + \ ale#path#Simplify(g:dir . '/../test-files/write-good/node-modules-2/node_modules/write-good/bin/write-good.js'), \ (has('win32') ? 'node.exe ' : '') - \ . ale#Escape(ale#path#Simplify(g:dir . '/write-good-node-modules-2/node_modules/write-good/bin/write-good.js')) + \ . ale#Escape(ale#path#Simplify(g:dir . '/../test-files/write-good/node-modules-2/node_modules/write-good/bin/write-good.js')) \ . ' %t', Execute(Should let users configure a global executable and override local paths): - call ale#test#SetFilename('write-good-node-modules-2/test.txt') + call ale#test#SetFilename('../test-files/write-good/node-modules-2/test.txt') let g:ale_writegood_executable = 'foo-bar' let g:ale_writegood_use_global = 1 diff --git a/test/command_callback/test_zig_zls_callbacks.vader b/test/command_callback/test_zig_zls_callbacks.vader index 6e42cc4b..6d814be4 100644 --- a/test/command_callback/test_zig_zls_callbacks.vader +++ b/test/command_callback/test_zig_zls_callbacks.vader @@ -10,6 +10,6 @@ Execute(The default executable path should be correct): Execute(The project root should be detected correctly): AssertLSPProject '' - call ale#test#SetFilename('zig-zls-project/main.zig') + call ale#test#SetFilename('../test-files/zig/main.zig') - AssertLSPProject ale#path#Simplify(g:dir . '/zig-zls-project') + AssertLSPProject ale#path#Simplify(g:dir . '/../test-files/zig') diff --git a/test/command_callback/tex_paths/sample1.tex b/test/command_callback/tex_paths/sample1.tex deleted file mode 100644 index e69de29b..00000000 diff --git a/test/command_callback/tex_paths/sample2.tex b/test/command_callback/tex_paths/sample2.tex deleted file mode 100644 index e69de29b..00000000 diff --git a/test/command_callback/textlint_paths/with_bin_path/node_modules/.bin/textlint b/test/command_callback/textlint_paths/with_bin_path/node_modules/.bin/textlint deleted file mode 100755 index e69de29b..00000000 diff --git a/test/command_callback/textlint_paths/with_textlint_bin_path/node_modules/textlint/bin/textlint.js b/test/command_callback/textlint_paths/with_textlint_bin_path/node_modules/textlint/bin/textlint.js deleted file mode 100755 index e69de29b..00000000 diff --git a/test/command_callback/tidy_paths/.tidyrc b/test/command_callback/tidy_paths/.tidyrc deleted file mode 100644 index e69de29b..00000000 diff --git a/test/command_callback/tidy_paths/test.html b/test/command_callback/tidy_paths/test.html deleted file mode 100644 index e69de29b..00000000 diff --git a/test/command_callback/tidy_paths/tidy b/test/command_callback/tidy_paths/tidy deleted file mode 100755 index e69de29b..00000000 diff --git a/test/command_callback/tidy_paths/tidy.exe b/test/command_callback/tidy_paths/tidy.exe deleted file mode 100755 index e69de29b..00000000 diff --git a/test/command_callback/tsserver_paths/src/file1.ts b/test/command_callback/tsserver_paths/src/file1.ts deleted file mode 100644 index e69de29b..00000000 diff --git a/test/command_callback/tsserver_paths/src/level-1/file2.ts b/test/command_callback/tsserver_paths/src/level-1/file2.ts deleted file mode 100644 index e69de29b..00000000 diff --git a/test/command_callback/tsserver_paths/src/level-1/level-2/file3.ts b/test/command_callback/tsserver_paths/src/level-1/level-2/file3.ts deleted file mode 100644 index e69de29b..00000000 diff --git a/test/command_callback/tsserver_paths/src/level-1/tsconfig.json b/test/command_callback/tsserver_paths/src/level-1/tsconfig.json deleted file mode 100644 index e69de29b..00000000 diff --git a/test/command_callback/tsserver_paths/tsconfig.json b/test/command_callback/tsserver_paths/tsconfig.json deleted file mode 100644 index e69de29b..00000000 diff --git a/test/command_callback/vim_fixtures/invalid_vim_project/test.vim b/test/command_callback/vim_fixtures/invalid_vim_project/test.vim deleted file mode 100644 index e69de29b..00000000 diff --git a/test/command_callback/vim_fixtures/node_modules/.bin/vim-language-server b/test/command_callback/vim_fixtures/node_modules/.bin/vim-language-server deleted file mode 100644 index e69de29b..00000000 diff --git a/test/command_callback/vim_fixtures/path_with_autoload/autoload/test.vim b/test/command_callback/vim_fixtures/path_with_autoload/autoload/test.vim deleted file mode 100644 index e69de29b..00000000 diff --git a/test/command_callback/vim_fixtures/path_with_autoload/test.vim b/test/command_callback/vim_fixtures/path_with_autoload/test.vim deleted file mode 100644 index e69de29b..00000000 diff --git a/test/command_callback/vim_fixtures/path_with_initvim/init.vim b/test/command_callback/vim_fixtures/path_with_initvim/init.vim deleted file mode 100644 index e69de29b..00000000 diff --git a/test/command_callback/vim_fixtures/path_with_plugin/plugin/test.vim b/test/command_callback/vim_fixtures/path_with_plugin/plugin/test.vim deleted file mode 100644 index e69de29b..00000000 diff --git a/test/command_callback/vim_fixtures/path_with_plugin/test.vim b/test/command_callback/vim_fixtures/path_with_plugin/test.vim deleted file mode 100644 index e69de29b..00000000 diff --git a/test/command_callback/vim_fixtures/path_with_vimrc/.vimrc b/test/command_callback/vim_fixtures/path_with_vimrc/.vimrc deleted file mode 100644 index e69de29b..00000000 diff --git a/test/command_callback/write-good-node-modules-2/node_modules/write-good/bin/write-good.js b/test/command_callback/write-good-node-modules-2/node_modules/write-good/bin/write-good.js deleted file mode 100644 index e69de29b..00000000 diff --git a/test/command_callback/write-good-node-modules/node_modules/.bin/write-good b/test/command_callback/write-good-node-modules/node_modules/.bin/write-good deleted file mode 100644 index e69de29b..00000000 diff --git a/test/command_callback/zig-zls-project/build.zig b/test/command_callback/zig-zls-project/build.zig deleted file mode 100644 index e69de29b..00000000 diff --git a/test/compile_database_perf/test.sh b/test/compile_database_perf/test.sh deleted file mode 100755 index 15a2b442..00000000 --- a/test/compile_database_perf/test.sh +++ /dev/null @@ -1,29 +0,0 @@ -#!/bin/bash - -# Generate source files for ALE to read. They don't have to be very long, the delay is in reading compile_commands, not actually running tests -mkdir -p gen_src -for i in {1..400}; do echo "const char *GeneratedFunc${i}() { return \"Word ${i}\"; }" > gen_src/source${i}.cpp; done - -# Create the compile_commands database -echo "[ {" > compile_commands.json - -for i in {1..399}; do - { - echo "\"command\": \"clang++ -c $(pwd)/gen_src/source${i}.cpp -o $(pwd)/build/obj/Debug/source${i}.o -MF $(pwd)/build/obj/Debug/source${i}.d -MMD -MP\"," - echo "\"directory\": \"$(pwd)/build\"," - echo "\"file\": \"$(pwd)/gen_src/source${i}.cpp\"" - echo "}, {" - } >> compile_commands.json -done - -{ - echo "\"command\": \"clang++ -c $(pwd)/gen_src/source400.cpp -o $(pwd)/build/obj/Debug/source400.o -MF $(pwd)/build/obj/Debug/source400.d -MMD -MP\"," - echo "\"directory\": \"$(pwd)/build\"," - echo "\"file\": \"$(pwd)/gen_src/source400.cpp\"" - echo "} ]" -} >> compile_commands.json - -# Start up vim and switch back and forth between files -- at least one of the files must be near the bottom of compile_commands.json -time vim -c "for i in range(0,20) | edit gen_src/source10.cpp | edit gen_src/source400.cpp | endfor" \ - -c "noautocmd qa!" \ - `find . | grep "source..\.cpp"` diff --git a/test/csslint-test-files/other-app/testfile.css b/test/csslint-test-files/other-app/testfile.css deleted file mode 100644 index e69de29b..00000000 diff --git a/test/csslint-test-files/some-app/.csslintrc b/test/csslint-test-files/some-app/.csslintrc deleted file mode 100644 index e69de29b..00000000 diff --git a/test/csslint-test-files/some-app/subdir/testfile.css b/test/csslint-test-files/some-app/subdir/testfile.css deleted file mode 100644 index e69de29b..00000000 diff --git a/test/cucumber_fixtures/features/cuke.feature b/test/cucumber_fixtures/features/cuke.feature deleted file mode 100644 index e69de29b..00000000 diff --git a/test/cucumber_fixtures/features/step_definitions/base_steps.rb b/test/cucumber_fixtures/features/step_definitions/base_steps.rb deleted file mode 100644 index e69de29b..00000000 diff --git a/test/d_files/test.d b/test/d_files/test.d deleted file mode 100644 index e69de29b..00000000 diff --git a/test/dart_files/testfile.dart b/test/dart_files/testfile.dart deleted file mode 100644 index e69de29b..00000000 diff --git a/test/dumb_named_pipe_server.py b/test/dumb_named_pipe_server.py deleted file mode 100644 index a77e538c..00000000 --- a/test/dumb_named_pipe_server.py +++ /dev/null @@ -1,42 +0,0 @@ -""" -This Python script creates a named pipe server that does nothing but send its input -back to the client that connects to it. Only one argument must be given, the path -of a named pipe to bind to. -""" -import os -import socket -import sys - - -def main(): - if len(sys.argv) < 2: - sys.exit('You must specify a filepath') - - sock = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) - sock.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1) - if os.path.exists(sys.argv[1]): - os.remove(sys.argv[1]) - sock.bind(sys.argv[1]) - sock.listen(0) - - pid = os.fork() - - if pid: - print(pid) - sys.exit() - - while True: - connection = sock.accept()[0] - connection.settimeout(5) - - while True: - try: - connection.send(connection.recv(1024)) - except socket.timeout: - break - - connection.close() - - -if __name__ == "__main__": - main() diff --git a/test/dumb_tcp_client.py b/test/dumb_tcp_client.py deleted file mode 100644 index 3a728b02..00000000 --- a/test/dumb_tcp_client.py +++ /dev/null @@ -1,33 +0,0 @@ -""" -This is just a script for testing that the dumb TCP server actually works -correctly, for verifying that problems with tests are in Vim. Pass the -same port number given to the test server to check that it's working. -""" -import socket -import sys - - -def main(): - sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM) - result = sock.connect_ex(('127.0.0.1', int(sys.argv[1]))) - - if result: - sock.close() - sys.exit("Couldn't connect to the socket!") - - data_sent = 'x' * 1024 - - sock.send(data_sent) - data_received = sock.recv(1024) - - if data_sent != data_received: - sock.close() - sys.exit("Data sent didn't match data received.") - - sock.close() - - print("Everything was just fine.") - - -if __name__ == "__main__": - main() diff --git a/test/dumb_tcp_server.py b/test/dumb_tcp_server.py deleted file mode 100644 index c15db65e..00000000 --- a/test/dumb_tcp_server.py +++ /dev/null @@ -1,40 +0,0 @@ -""" -This Python script creates a TCP server that does nothing but send its input -back to the client that connects to it. Only one argument must be given, a port -to bind to. -""" -import os -import socket -import sys - - -def main(): - if len(sys.argv) < 2 or not sys.argv[1].isdigit(): - sys.exit('You must specify a port number') - - sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM) - sock.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1) - sock.bind(('127.0.0.1', int(sys.argv[1]))) - sock.listen(0) - - pid = os.fork() - - if pid: - print(pid) - sys.exit() - - while True: - connection = sock.accept()[0] - connection.settimeout(5) - - while True: - try: - connection.send(connection.recv(1024)) - except socket.timeout: - break - - connection.close() - - -if __name__ == "__main__": - main() diff --git a/test/elixir-test-files/testfile.ex b/test/elixir-test-files/testfile.ex deleted file mode 100644 index e69de29b..00000000 diff --git a/test/elm-test-files/newapp-notests/elm.json b/test/elm-test-files/newapp-notests/elm.json deleted file mode 100644 index e69de29b..00000000 diff --git a/test/elm-test-files/newapp-notests/node_modules/.bin/elm b/test/elm-test-files/newapp-notests/node_modules/.bin/elm deleted file mode 100644 index e69de29b..00000000 diff --git a/test/elm-test-files/newapp-notests/tests/TestMain.elm b/test/elm-test-files/newapp-notests/tests/TestMain.elm deleted file mode 100644 index e69de29b..00000000 diff --git a/test/elm-test-files/newapp/elm.json b/test/elm-test-files/newapp/elm.json deleted file mode 100644 index e69de29b..00000000 diff --git a/test/elm-test-files/newapp/node_modules/.bin/elm b/test/elm-test-files/newapp/node_modules/.bin/elm deleted file mode 100644 index e69de29b..00000000 diff --git a/test/elm-test-files/newapp/node_modules/.bin/elm-test b/test/elm-test-files/newapp/node_modules/.bin/elm-test deleted file mode 100644 index e69de29b..00000000 diff --git a/test/elm-test-files/newapp/src/Main.elm b/test/elm-test-files/newapp/src/Main.elm deleted file mode 100644 index e69de29b..00000000 diff --git a/test/elm-test-files/newapp/tests/TestSuite.elm b/test/elm-test-files/newapp/tests/TestSuite.elm deleted file mode 100644 index e69de29b..00000000 diff --git a/test/elm-test-files/node_modules/.bin/elm-format b/test/elm-test-files/node_modules/.bin/elm-format deleted file mode 100644 index e69de29b..00000000 diff --git a/test/elm-test-files/oldapp/elm-package.json b/test/elm-test-files/oldapp/elm-package.json deleted file mode 100644 index e69de29b..00000000 diff --git a/test/elm-test-files/oldapp/node_modules/.bin/elm b/test/elm-test-files/oldapp/node_modules/.bin/elm deleted file mode 100644 index e69de29b..00000000 diff --git a/test/elm-test-files/oldapp/node_modules/.bin/elm-test b/test/elm-test-files/oldapp/node_modules/.bin/elm-test deleted file mode 100644 index e69de29b..00000000 diff --git a/test/elm-test-files/oldapp/src/Main.elm b/test/elm-test-files/oldapp/src/Main.elm deleted file mode 100644 index e69de29b..00000000 diff --git a/test/elm-test-files/oldapp/tests/TestSuite.elm b/test/elm-test-files/oldapp/tests/TestSuite.elm deleted file mode 100644 index e69de29b..00000000 diff --git a/test/elm-test-files/src/subdir/testfile.elm b/test/elm-test-files/src/subdir/testfile.elm deleted file mode 100644 index e69de29b..00000000 diff --git a/test/ember-template-lint-test-files/app/template.hbs b/test/ember-template-lint-test-files/app/template.hbs deleted file mode 100644 index e69de29b..00000000 diff --git a/test/ember-template-lint-test-files/package.json b/test/ember-template-lint-test-files/package.json deleted file mode 100644 index e69de29b..00000000 diff --git a/test/eslint-test-files/app-with-eslint-d/node_modules/.bin/eslint_d b/test/eslint-test-files/app-with-eslint-d/node_modules/.bin/eslint_d deleted file mode 100644 index e69de29b..00000000 diff --git a/test/eslint-test-files/node_modules/.bin/eslint b/test/eslint-test-files/node_modules/.bin/eslint deleted file mode 100644 index e69de29b..00000000 diff --git a/test/eslint-test-files/other-app/subdir/testfile.js b/test/eslint-test-files/other-app/subdir/testfile.js deleted file mode 100644 index e69de29b..00000000 diff --git a/test/eslint-test-files/package.json b/test/eslint-test-files/package.json deleted file mode 100644 index e69de29b..00000000 diff --git a/test/eslint-test-files/react-app/.eslintrc.js b/test/eslint-test-files/react-app/.eslintrc.js deleted file mode 100644 index e69de29b..00000000 diff --git a/test/eslint-test-files/react-app/node_modules/eslint/bin/eslint.js b/test/eslint-test-files/react-app/node_modules/eslint/bin/eslint.js deleted file mode 100644 index e69de29b..00000000 diff --git a/test/eslint-test-files/react-app/node_modules/standard/bin/cmd.js b/test/eslint-test-files/react-app/node_modules/standard/bin/cmd.js deleted file mode 100644 index e69de29b..00000000 diff --git a/test/eslint-test-files/react-app/node_modules/stylelint/bin/stylelint.js b/test/eslint-test-files/react-app/node_modules/stylelint/bin/stylelint.js deleted file mode 100644 index e69de29b..00000000 diff --git a/test/eslint-test-files/react-app/node_modules/xo/cli.js b/test/eslint-test-files/react-app/node_modules/xo/cli.js deleted file mode 100644 index e69de29b..00000000 diff --git a/test/eslint-test-files/react-app/subdir-with-config/.eslintrc b/test/eslint-test-files/react-app/subdir-with-config/.eslintrc deleted file mode 100644 index e69de29b..00000000 diff --git a/test/eslint-test-files/react-app/subdir-with-package-json/node_modules/.gitkeep b/test/eslint-test-files/react-app/subdir-with-package-json/node_modules/.gitkeep deleted file mode 100644 index e69de29b..00000000 diff --git a/test/eslint-test-files/react-app/subdir-with-package-json/package.json b/test/eslint-test-files/react-app/subdir-with-package-json/package.json deleted file mode 100644 index e69de29b..00000000 diff --git a/test/eslint-test-files/react-app/subdir/testfile.css b/test/eslint-test-files/react-app/subdir/testfile.css deleted file mode 100644 index e69de29b..00000000 diff --git a/test/eslint-test-files/react-app/subdir/testfile.js b/test/eslint-test-files/react-app/subdir/testfile.js deleted file mode 100644 index e69de29b..00000000 diff --git a/test/eslint-test-files/react-app/subdir/testfile.ts b/test/eslint-test-files/react-app/subdir/testfile.ts deleted file mode 100644 index e69de29b..00000000 diff --git a/test/fish_files/testfile.fish b/test/fish_files/testfile.fish deleted file mode 100644 index e69de29b..00000000 diff --git a/test/fixers/eslint-test-files/app-with-eslint-d/node_modules/.bin/eslint_d b/test/fixers/eslint-test-files/app-with-eslint-d/node_modules/.bin/eslint_d deleted file mode 100644 index e69de29b..00000000 diff --git a/test/fixers/eslint-test-files/node_modules/.bin/eslint b/test/fixers/eslint-test-files/node_modules/.bin/eslint deleted file mode 100644 index e69de29b..00000000 diff --git a/test/fixers/eslint-test-files/other-app/subdir/testfile.js b/test/fixers/eslint-test-files/other-app/subdir/testfile.js deleted file mode 100644 index e69de29b..00000000 diff --git a/test/fixers/eslint-test-files/react-app/.eslintrc.js b/test/fixers/eslint-test-files/react-app/.eslintrc.js deleted file mode 100644 index e69de29b..00000000 diff --git a/test/fixers/eslint-test-files/react-app/node_modules/eslint/bin/eslint.js b/test/fixers/eslint-test-files/react-app/node_modules/eslint/bin/eslint.js deleted file mode 100644 index e69de29b..00000000 diff --git a/test/fixers/eslint-test-files/react-app/node_modules/standard/bin/cmd.js b/test/fixers/eslint-test-files/react-app/node_modules/standard/bin/cmd.js deleted file mode 100644 index e69de29b..00000000 diff --git a/test/fixers/eslint-test-files/react-app/node_modules/stylelint/bin/stylelint.js b/test/fixers/eslint-test-files/react-app/node_modules/stylelint/bin/stylelint.js deleted file mode 100644 index e69de29b..00000000 diff --git a/test/fixers/eslint-test-files/react-app/subdir/testfile.css b/test/fixers/eslint-test-files/react-app/subdir/testfile.css deleted file mode 100644 index e69de29b..00000000 diff --git a/test/fixers/eslint-test-files/react-app/subdir/testfile.js b/test/fixers/eslint-test-files/react-app/subdir/testfile.js deleted file mode 100644 index e69de29b..00000000 diff --git a/test/fixers/long-line-project/setup.cfg b/test/fixers/long-line-project/setup.cfg deleted file mode 100644 index 43d7a3a1..00000000 --- a/test/fixers/long-line-project/setup.cfg +++ /dev/null @@ -1,2 +0,0 @@ -[flake8] -max-line-length = 90 diff --git a/test/fixers/test_astyle_fixer_callback.vader b/test/fixers/test_astyle_fixer_callback.vader index ac756870..9d2e4c80 100644 --- a/test/fixers/test_astyle_fixer_callback.vader +++ b/test/fixers/test_astyle_fixer_callback.vader @@ -71,7 +71,7 @@ Execute(The astyle callback should return the correct default values with a spec \ ale#fixers#astyle#Fix(bufnr('')) Execute(The astyle callback should find nearest default option file _astylrc): - call ale#test#SetFilename('../test_c_projects/makefile_project/subdir/file.c') + call ale#test#SetFilename('../test-files/c/makefile_project/subdir/file.c') let targetfile = bufname(bufnr('%')) AssertEqual @@ -83,7 +83,7 @@ Execute(The astyle callback should find nearest default option file _astylrc): \ ale#fixers#astyle#Fix(bufnr('')) Execute(The astyle callback should find .astylrc in the same directory as src): - call ale#test#SetFilename('../test_cpp_project/dummy.cpp') + call ale#test#SetFilename('../test-files/cpp/dummy.cpp') set filetype=cpp " The test fails without this let targetfile = bufname(bufnr('%')) diff --git a/test/fixers/test_autoimport_fixer_callback.vader b/test/fixers/test_autoimport_fixer_callback.vader index bea448b5..67dc46e9 100644 --- a/test/fixers/test_autoimport_fixer_callback.vader +++ b/test/fixers/test_autoimport_fixer_callback.vader @@ -25,11 +25,11 @@ Execute(The autoimport callback should return the correct default values): \ 0, \ ale#fixers#autoimport#Fix(bufnr('')) - silent execute 'file ' . fnameescape(g:dir . '/python_paths/with_virtualenv/subdir/foo/bar.py') + silent execute 'file ' . fnameescape(g:dir . '/../test-files/python/with_virtualenv/subdir/foo/bar.py') AssertEqual \ { \ 'cwd': '%s:h', - \ 'command': ale#Escape(ale#path#Simplify(g:dir . '/python_paths/with_virtualenv/env/' . b:bin_dir . '/autoimport')) . ' -', + \ 'command': ale#Escape(ale#path#Simplify(g:dir . '/../test-files/python/with_virtualenv/env/' . b:bin_dir . '/autoimport')) . ' -', \ }, \ ale#fixers#autoimport#Fix(bufnr('')) @@ -40,11 +40,11 @@ Execute(The autoimport callback should respect custom options): \ 0, \ ale#fixers#autoimport#Fix(bufnr('')) - silent execute 'file ' . fnameescape(g:dir . '/python_paths/with_virtualenv/subdir/foo/bar.py') + silent execute 'file ' . fnameescape(g:dir . '/../test-files/python/with_virtualenv/subdir/foo/bar.py') AssertEqual \ { \ 'cwd': '%s:h', - \ 'command': ale#Escape(ale#path#Simplify(g:dir . '/python_paths/with_virtualenv/env/' . b:bin_dir . '/autoimport')) + \ 'command': ale#Escape(ale#path#Simplify(g:dir . '/../test-files/python/with_virtualenv/env/' . b:bin_dir . '/autoimport')) \ . ' --multi-line=3 --trailing-comma -', \ }, \ ale#fixers#autoimport#Fix(bufnr('')) diff --git a/test/fixers/test_autopep8_fixer_callback.vader b/test/fixers/test_autopep8_fixer_callback.vader index 5678aaf3..9ca90c41 100644 --- a/test/fixers/test_autopep8_fixer_callback.vader +++ b/test/fixers/test_autopep8_fixer_callback.vader @@ -25,15 +25,15 @@ Execute(The autopep8 callback should return the correct default values): \ 0, \ ale#fixers#autopep8#Fix(bufnr('')) - silent execute 'file ' . fnameescape(g:dir . '/python_paths/with_virtualenv/subdir/foo/bar.py') + silent execute 'file ' . fnameescape(g:dir . '/../test-files/python/with_virtualenv/subdir/foo/bar.py') AssertEqual - \ {'command': ale#Escape(ale#path#Simplify(g:dir . '/python_paths/with_virtualenv/env/' . b:bin_dir . '/autopep8')) . ' -'}, + \ {'command': ale#Escape(ale#path#Simplify(g:dir . '/../test-files/python/with_virtualenv/env/' . b:bin_dir . '/autopep8')) . ' -'}, \ ale#fixers#autopep8#Fix(bufnr('')) Execute(The autopep8 callback should include options): let g:ale_python_autopep8_options = '--some-option' - silent execute 'file ' . fnameescape(g:dir . '/python_paths/with_virtualenv/subdir/foo/bar.py') + silent execute 'file ' . fnameescape(g:dir . '/../test-files/python/with_virtualenv/subdir/foo/bar.py') AssertEqual - \ {'command': ale#Escape(ale#path#Simplify(g:dir . '/python_paths/with_virtualenv/env/' . b:bin_dir . '/autopep8')) . ' --some-option -' }, + \ {'command': ale#Escape(ale#path#Simplify(g:dir . '/../test-files/python/with_virtualenv/env/' . b:bin_dir . '/autopep8')) . ' --some-option -' }, \ ale#fixers#autopep8#Fix(bufnr('')) diff --git a/test/fixers/test_bibclean_fixer_callback.vader b/test/fixers/test_bibclean_fixer_callback.vader index 8d3081e3..dd1313d2 100644 --- a/test/fixers/test_bibclean_fixer_callback.vader +++ b/test/fixers/test_bibclean_fixer_callback.vader @@ -12,7 +12,7 @@ After: call ale#test#RestoreDirectory() Execute(The bibclean callback should return the correct default values): - call ale#test#SetFilename('../command_callback/bib_paths/dummy.bib') + call ale#test#SetFilename('../command_callback/../test-files/bib/dummy.bib') AssertEqual \ {'command': ale#Escape(g:ale_bib_bibclean_executable) . ' -align-equals'}, @@ -20,7 +20,7 @@ Execute(The bibclean callback should return the correct default values): Execute(The bibclean callback should include custom bibclean options): let g:ale_bib_bibclean_options = '-author -check-values' - call ale#test#SetFilename('../command_callback/bib_paths/dummy.bib') + call ale#test#SetFilename('../command_callback/../test-files/bib/dummy.bib') AssertEqual \ { diff --git a/test/fixers/test_black_fixer_callback.vader b/test/fixers/test_black_fixer_callback.vader index 055f8783..6e9f3de7 100644 --- a/test/fixers/test_black_fixer_callback.vader +++ b/test/fixers/test_black_fixer_callback.vader @@ -13,36 +13,36 @@ After: unlet! b:bin_dir Execute(The black callback should return the correct default values): - silent execute 'file ' . fnameescape(g:dir . '/python_paths/with_virtualenv/subdir/foo/bar.py') + silent execute 'file ' . fnameescape(g:dir . '/../test-files/python/with_virtualenv/subdir/foo/bar.py') AssertEqual \ { \ 'cwd': '%s:h', - \ 'command': ale#Escape(ale#path#Simplify(g:dir . '/python_paths/with_virtualenv/env/' . b:bin_dir . '/black')) . ' -'}, + \ 'command': ale#Escape(ale#path#Simplify(g:dir . '/../test-files/python/with_virtualenv/env/' . b:bin_dir . '/black')) . ' -'}, \ ale#fixers#black#Fix(bufnr('')) Execute(The black callback should include options): let g:ale_python_black_options = '--some-option' let g:ale_python_black_change_directory = 0 - silent execute 'file ' . fnameescape(g:dir . '/python_paths/with_virtualenv/subdir/foo/bar.py') + silent execute 'file ' . fnameescape(g:dir . '/../test-files/python/with_virtualenv/subdir/foo/bar.py') AssertEqual - \ {'command': ale#Escape(ale#path#Simplify(g:dir . '/python_paths/with_virtualenv/env/' . b:bin_dir . '/black')) . ' --some-option -' }, + \ {'command': ale#Escape(ale#path#Simplify(g:dir . '/../test-files/python/with_virtualenv/env/' . b:bin_dir . '/black')) . ' --some-option -' }, \ ale#fixers#black#Fix(bufnr('')) Execute(The black callback should include --pyi for .pyi files): let g:ale_python_black_change_directory = 0 - silent execute 'file ' . fnameescape(g:dir . '/python_paths/with_virtualenv/subdir/foo/bar.pyi') + silent execute 'file ' . fnameescape(g:dir . '/../test-files/python/with_virtualenv/subdir/foo/bar.pyi') AssertEqual - \ {'command': ale#Escape(ale#path#Simplify(g:dir . '/python_paths/with_virtualenv/env/' . b:bin_dir . '/black')) . ' --pyi -' }, + \ {'command': ale#Escape(ale#path#Simplify(g:dir . '/../test-files/python/with_virtualenv/env/' . b:bin_dir . '/black')) . ' --pyi -' }, \ ale#fixers#black#Fix(bufnr('')) Execute(Pipenv is detected when python_black_auto_pipenv is set): let g:ale_python_black_auto_pipenv = 1 let g:ale_python_black_change_directory = 0 - call ale#test#SetFilename('../python_fixtures/pipenv/whatever.py') + call ale#test#SetFilename('../test-files/python/pipenv/whatever.py') AssertEqual \ {'command': ale#Escape('pipenv') . ' run black -'}, diff --git a/test/fixers/test_break_up_long_lines_python_fixer.vader b/test/fixers/test_break_up_long_lines_python_fixer.vader index 5fd991f0..c7809acd 100644 --- a/test/fixers/test_break_up_long_lines_python_fixer.vader +++ b/test/fixers/test_break_up_long_lines_python_fixer.vader @@ -22,7 +22,7 @@ Execute(Long lines with basic function calls should be broken up correctly): \ ]) Execute(Longer lines should be permitted if a configuration file allows it): - call ale#test#SetFilename('long-line-project/foo/bar.py') + call ale#test#SetFilename('../test-files/long-line/foo/bar.py') AssertEqual \ [ diff --git a/test/fixers/test_buildifier_fixer_callback.vader b/test/fixers/test_buildifier_fixer_callback.vader index 36de9819..db9f1e55 100644 --- a/test/fixers/test_buildifier_fixer_callback.vader +++ b/test/fixers/test_buildifier_fixer_callback.vader @@ -6,7 +6,7 @@ After: call ale#assert#TearDownFixerTest() Execute(The buildifier callback should return the correct default values): - call ale#test#SetFilename('bazel_paths/WORKSPACE') + call ale#test#SetFilename('../test-files/bazel/WORKSPACE') AssertFixer \ { @@ -15,7 +15,7 @@ Execute(The buildifier callback should return the correct default values): \ } Execute(The buildifier callback should include any additional options): - call ale#test#SetFilename('bazel_paths/WORKSPACE') + call ale#test#SetFilename('../test-files/bazel/WORKSPACE') let g:ale_bazel_buildifier_options = '--some-option' AssertFixer @@ -25,7 +25,7 @@ Execute(The buildifier callback should include any additional options): \ } Execute(The buildifier callback should recognize BUILD files): - call ale#test#SetFilename('bazel_paths/BUILD') + call ale#test#SetFilename('../test-files/bazel/BUILD') AssertFixer \ { @@ -34,7 +34,7 @@ Execute(The buildifier callback should recognize BUILD files): \ } Execute(The buildifier callback should recognize .bzl files): - call ale#test#SetFilename('bazel_paths/defs.bzl') + call ale#test#SetFilename('../test-files/bazel/defs.bzl') AssertFixer \ { diff --git a/test/fixers/test_clangformat_fixer_callback.vader b/test/fixers/test_clangformat_fixer_callback.vader index b9b74ee8..3e4546d1 100644 --- a/test/fixers/test_clangformat_fixer_callback.vader +++ b/test/fixers/test_clangformat_fixer_callback.vader @@ -17,7 +17,7 @@ After: call ale#test#RestoreDirectory() Execute(The clang-format callback should return the correct default values): - call ale#test#SetFilename('c_paths/dummy.c') + call ale#test#SetFilename('../test-files/c/dummy.c') AssertEqual \ { @@ -27,7 +27,7 @@ Execute(The clang-format callback should return the correct default values): \ ale#fixers#clangformat#Fix(bufnr('')) Execute(The clangformat callback should include any additional options): - call ale#test#SetFilename('c_paths/dummy.c') + call ale#test#SetFilename('../test-files/c/dummy.c') let g:ale_c_clangformat_options = '--some-option' AssertEqual @@ -39,7 +39,7 @@ Execute(The clangformat callback should include any additional options): \ ale#fixers#clangformat#Fix(bufnr('')) Execute(The clangformat callback should include style options as well): - call ale#test#SetFilename('c_paths/dummy.c') + call ale#test#SetFilename('../test-files/c/dummy.c') let g:ale_c_clangformat_options = '--some-option' let g:ale_c_clangformat_style_option = '{BasedOnStyle: Microsoft, ColumnLimit:80,}' @@ -52,7 +52,7 @@ Execute(The clangformat callback should include style options as well): \ ale#fixers#clangformat#Fix(bufnr('')) Execute(The clangformat callback should use local file instead of style options): - call ale#test#SetFilename('clangformat_paths/with_clangformat/dummy.c') + call ale#test#SetFilename('../test-files/clangformat/with_clangformat/dummy.c') let g:ale_c_clangformat_options = '--some-option' let g:ale_c_clangformat_style_option = '{BasedOnStyle: Microsoft, ColumnLimit:80,}' let g:ale_c_clangformat_use_local_file = 1 diff --git a/test/fixers/test_clangtidy_fixer_callback.vader b/test/fixers/test_clangtidy_fixer_callback.vader index ca08e6bc..7a04e801 100644 --- a/test/fixers/test_clangtidy_fixer_callback.vader +++ b/test/fixers/test_clangtidy_fixer_callback.vader @@ -26,7 +26,7 @@ After: call ale#test#RestoreDirectory() Execute(The clangtidy callback should return the correct default values): - call ale#test#SetFilename('c_paths/dummy.c') + call ale#test#SetFilename('../test-files/c/dummy.c') AssertEqual \ { @@ -37,7 +37,7 @@ Execute(The clangtidy callback should return the correct default values): \ ale#fixers#clangtidy#Fix(bufnr('')) Execute(The clangtidy callback should include any additional options): - call ale#test#SetFilename('c_paths/dummy.c') + call ale#test#SetFilename('../test-files/c/dummy.c') let g:ale_c_clangtidy_extra_options = '--some-option' AssertEqual diff --git a/test/fixers/test_dartfmt_fixer_callback.vader b/test/fixers/test_dartfmt_fixer_callback.vader index 79c40eff..c783c9a4 100644 --- a/test/fixers/test_dartfmt_fixer_callback.vader +++ b/test/fixers/test_dartfmt_fixer_callback.vader @@ -14,7 +14,7 @@ After: call ale#test#RestoreDirectory() Execute(The dartfmt callback should return the correct default values): - call ale#test#SetFilename('../dart_files/testfile.dart') + call ale#test#SetFilename('../test-files/dart/testfile.dart') AssertEqual \ { @@ -27,7 +27,7 @@ Execute(The dartfmt callback should return the correct default values): Execute(The dartfmt callback should include custom dartfmt options): let g:ale_dart_dartfmt_options = "-l 80" - call ale#test#SetFilename('../dart_files/testfile.dart') + call ale#test#SetFilename('../test-files/dart/testfile.dart') AssertEqual \ { diff --git a/test/fixers/test_dfmt_fixer_callback.vader b/test/fixers/test_dfmt_fixer_callback.vader index 5ecb56e6..5749224e 100644 --- a/test/fixers/test_dfmt_fixer_callback.vader +++ b/test/fixers/test_dfmt_fixer_callback.vader @@ -14,7 +14,7 @@ After: call ale#test#RestoreDirectory() Execute(The dfmt callback should return the correct default values): - call ale#test#SetFilename('../d_files/test.d') + call ale#test#SetFilename('../test-files/d/test.d') AssertEqual \ { @@ -27,7 +27,7 @@ Execute(The dfmt callback should return the correct default values): Execute(The dfmt callback should include custom dfmt options): let g:ale_d_dfmt_options = "--space-after-cast" - call ale#test#SetFilename('../d_files/test.d') + call ale#test#SetFilename('../test-files/d/test.d') AssertEqual \ { diff --git a/test/fixers/test_elm_format_fixer_callback.vader b/test/fixers/test_elm_format_fixer_callback.vader index 682c22ca..35244737 100644 --- a/test/fixers/test_elm_format_fixer_callback.vader +++ b/test/fixers/test_elm_format_fixer_callback.vader @@ -9,19 +9,19 @@ After: call ale#test#RestoreDirectory() Execute(The elm-format command should have default params): - call ale#test#SetFilename('../elm-test-files/src/subdir/testfile.elm') + call ale#test#SetFilename('../test-files/elm/src/subdir/testfile.elm') AssertEqual \ { \ 'read_temporary_file': 1, \ 'command': - \ ale#Escape(ale#path#Simplify(g:dir . '/../elm-test-files/node_modules/.bin/elm-format')) + \ ale#Escape(ale#path#Simplify(g:dir . '/../test-files/elm/node_modules/.bin/elm-format')) \ . ' %t --yes', \ }, \ ale#fixers#elm_format#Fix(bufnr('')) Execute(The elm-format command should manage use_global = 1 param): - call ale#test#SetFilename('../elm-test-files/src/subdir/testfile.elm') + call ale#test#SetFilename('../test-files/elm/src/subdir/testfile.elm') let b:ale_elm_format_use_global = 1 AssertEqual @@ -34,7 +34,7 @@ Execute(The elm-format command should manage use_global = 1 param): \ ale#fixers#elm_format#Fix(bufnr('')) Execute(The elm-format command should manage executable param): - call ale#test#SetFilename('../elm-test-files/src/subdir/testfile.elm') + call ale#test#SetFilename('../test-files/elm/src/subdir/testfile.elm') let b:ale_elm_format_use_global = 1 let b:ale_elm_format_executable = 'elmformat' @@ -48,27 +48,27 @@ Execute(The elm-format command should manage executable param): \ ale#fixers#elm_format#Fix(bufnr('')) Execute(The elm-format command should manage empty options): - call ale#test#SetFilename('../elm-test-files/src/subdir/testfile.elm') + call ale#test#SetFilename('../test-files/elm/src/subdir/testfile.elm') let b:ale_elm_format_options = '' AssertEqual \ { \ 'read_temporary_file': 1, \ 'command': - \ ale#Escape(ale#path#Simplify(g:dir . '/../elm-test-files/node_modules/.bin/elm-format')) + \ ale#Escape(ale#path#Simplify(g:dir . '/../test-files/elm/node_modules/.bin/elm-format')) \ . ' %t', \ }, \ ale#fixers#elm_format#Fix(bufnr('')) Execute(The elm-format command should manage custom options): - call ale#test#SetFilename('../elm-test-files/src/subdir/testfile.elm') + call ale#test#SetFilename('../test-files/elm/src/subdir/testfile.elm') let b:ale_elm_format_options = '--param1 --param2' AssertEqual \ { \ 'read_temporary_file': 1, \ 'command': - \ ale#Escape(ale#path#Simplify(g:dir . '/../elm-test-files/node_modules/.bin/elm-format')) + \ ale#Escape(ale#path#Simplify(g:dir . '/../test-files/elm/node_modules/.bin/elm-format')) \ . ' %t --param1 --param2', \ }, \ ale#fixers#elm_format#Fix(bufnr('')) diff --git a/test/fixers/test_eslint_fixer_callback.vader b/test/fixers/test_eslint_fixer_callback.vader index 48cafe78..4a1dc47c 100644 --- a/test/fixers/test_eslint_fixer_callback.vader +++ b/test/fixers/test_eslint_fixer_callback.vader @@ -10,17 +10,17 @@ After: call ale#assert#TearDownFixerTest() Execute(The executable path should be correct): - call ale#test#SetFilename('../eslint-test-files/react-app/subdir/testfile.js') + call ale#test#SetFilename('../test-files/eslint/react-app/subdir/testfile.js') " eslint_d output with an older eslint version is used here. GivenCommandOutput ['v4.4.1 (eslint_d v5.1.0)'] AssertFixer \ { \ 'read_temporary_file': 1, - \ 'cwd': ale#path#Simplify(g:dir . '/../eslint-test-files/react-app'), + \ 'cwd': ale#path#Simplify(g:dir . '/../test-files/eslint/react-app'), \ 'command': (has('win32') ? 'node.exe ' : '') - \ . ale#Escape(ale#path#Simplify(g:dir . '/../eslint-test-files/react-app/node_modules/eslint/bin/eslint.js')) - \ . ' -c ' . ale#Escape(ale#path#Simplify(g:dir . '/../eslint-test-files/react-app/.eslintrc.js')) + \ . ale#Escape(ale#path#Simplify(g:dir . '/../test-files/eslint/react-app/node_modules/eslint/bin/eslint.js')) + \ . ' -c ' . ale#Escape(ale#path#Simplify(g:dir . '/../test-files/eslint/react-app/.eslintrc.js')) \ . ' --fix %t', \ } @@ -162,29 +162,29 @@ Execute(The ESLint fixer should use a config file option if set for new versions \ } Execute(The lower priority configuration file in a nested directory should be preferred): - call ale#test#SetFilename('../eslint-test-files/react-app/subdir-with-config/testfile.js') + call ale#test#SetFilename('../test-files/eslint/react-app/subdir-with-config/testfile.js') AssertFixer \ { \ 'read_temporary_file': 1, - \ 'cwd': ale#path#Simplify(g:dir . '/../eslint-test-files/react-app'), + \ 'cwd': ale#path#Simplify(g:dir . '/../test-files/eslint/react-app'), \ 'command': (has('win32') ? 'node.exe ' : '') - \ . ale#Escape(ale#path#Simplify(g:dir . '/../eslint-test-files/react-app/node_modules/eslint/bin/eslint.js')) - \ . ' -c ' . ale#Escape(ale#path#Simplify(g:dir . '/../eslint-test-files/react-app/subdir-with-config/.eslintrc')) + \ . ale#Escape(ale#path#Simplify(g:dir . '/../test-files/eslint/react-app/node_modules/eslint/bin/eslint.js')) + \ . ' -c ' . ale#Escape(ale#path#Simplify(g:dir . '/../test-files/eslint/react-app/subdir-with-config/.eslintrc')) \ . ' --fix %t', \ } Execute(--config in options should override configuration file detection for old versions): - call ale#test#SetFilename('../eslint-test-files/react-app/subdir-with-config/testfile.js') + call ale#test#SetFilename('../test-files/eslint/react-app/subdir-with-config/testfile.js') let b:ale_javascript_eslint_options = '--config /foo.cfg' AssertFixer \ { \ 'read_temporary_file': 1, - \ 'cwd': ale#path#Simplify(g:dir . '/../eslint-test-files/react-app'), + \ 'cwd': ale#path#Simplify(g:dir . '/../test-files/eslint/react-app'), \ 'command': (has('win32') ? 'node.exe ' : '') - \ . ale#Escape(ale#path#Simplify(g:dir . '/../eslint-test-files/react-app/node_modules/eslint/bin/eslint.js')) + \ . ale#Escape(ale#path#Simplify(g:dir . '/../test-files/eslint/react-app/node_modules/eslint/bin/eslint.js')) \ . ' --config /foo.cfg' \ . ' --fix %t', \ } @@ -194,50 +194,50 @@ Execute(--config in options should override configuration file detection for old AssertFixer \ { \ 'read_temporary_file': 1, - \ 'cwd': ale#path#Simplify(g:dir . '/../eslint-test-files/react-app'), + \ 'cwd': ale#path#Simplify(g:dir . '/../test-files/eslint/react-app'), \ 'command': (has('win32') ? 'node.exe ' : '') - \ . ale#Escape(ale#path#Simplify(g:dir . '/../eslint-test-files/react-app/node_modules/eslint/bin/eslint.js')) + \ . ale#Escape(ale#path#Simplify(g:dir . '/../test-files/eslint/react-app/node_modules/eslint/bin/eslint.js')) \ . ' -c /foo.cfg' \ . ' --fix %t', \ } Execute(package.json should be used as a last resort): - call ale#test#SetFilename('../eslint-test-files/react-app/subdir-with-package-json/testfile.js') + call ale#test#SetFilename('../test-files/eslint/react-app/subdir-with-package-json/testfile.js') AssertFixer \ { \ 'read_temporary_file': 1, - \ 'cwd': ale#path#Simplify(g:dir . '/../eslint-test-files/react-app'), + \ 'cwd': ale#path#Simplify(g:dir . '/../test-files/eslint/react-app'), \ 'command': (has('win32') ? 'node.exe ' : '') - \ . ale#Escape(ale#path#Simplify(g:dir . '/../eslint-test-files/react-app/node_modules/eslint/bin/eslint.js')) - \ . ' -c ' . ale#Escape(ale#path#Simplify(g:dir . '/../eslint-test-files/react-app/.eslintrc.js')) + \ . ale#Escape(ale#path#Simplify(g:dir . '/../test-files/eslint/react-app/node_modules/eslint/bin/eslint.js')) + \ . ' -c ' . ale#Escape(ale#path#Simplify(g:dir . '/../test-files/eslint/react-app/.eslintrc.js')) \ . ' --fix %t', \ } - call ale#test#SetFilename('../eslint-test-files/package.json') + call ale#test#SetFilename('../test-files/eslint/package.json') AssertFixer \ { \ 'read_temporary_file': 1, - \ 'cwd': ale#path#Simplify(g:dir . '/../eslint-test-files'), - \ 'command': ale#Escape(ale#path#Simplify(g:dir . '/../eslint-test-files/node_modules/.bin/eslint')) - \ . ' -c ' . ale#Escape(ale#path#Simplify(g:dir . '/../eslint-test-files/package.json')) + \ 'cwd': ale#path#Simplify(g:dir . '/../test-files/eslint'), + \ 'command': ale#Escape(ale#path#Simplify(g:dir . '/../test-files/eslint/node_modules/.bin/eslint')) + \ . ' -c ' . ale#Escape(ale#path#Simplify(g:dir . '/../test-files/eslint/package.json')) \ . ' --fix %t', \ } Execute(The version check should be correct): - call ale#test#SetFilename('../eslint-test-files/react-app/subdir-with-config/testfile.js') + call ale#test#SetFilename('../test-files/eslint/react-app/subdir-with-config/testfile.js') " We should run the command to get the version the first time. GivenCommandOutput ['4.9.0'] AssertFixer [ \ (has('win32') ? 'node.exe ' : '') - \ . ale#Escape(ale#path#Simplify(g:dir . '/../eslint-test-files/react-app/node_modules/eslint/bin/eslint.js')) + \ . ale#Escape(ale#path#Simplify(g:dir . '/../test-files/eslint/react-app/node_modules/eslint/bin/eslint.js')) \ . ' --version', \ { - \ 'cwd': ale#path#Simplify(g:dir . '/../eslint-test-files/react-app'), + \ 'cwd': ale#path#Simplify(g:dir . '/../test-files/eslint/react-app'), \ 'command': (has('win32') ? 'node.exe ' : '') - \ . ale#Escape(ale#path#Simplify(g:dir . '/../eslint-test-files/react-app/node_modules/eslint/bin/eslint.js')) + \ . ale#Escape(ale#path#Simplify(g:dir . '/../test-files/eslint/react-app/node_modules/eslint/bin/eslint.js')) \ . ' --stdin-filename %s --stdin --fix-dry-run --format=json', \ 'process_with': 'ale#fixers#eslint#ProcessFixDryRunOutput', \ }, @@ -245,36 +245,36 @@ Execute(The version check should be correct): AssertFixer [ \ { - \ 'cwd': ale#path#Simplify(g:dir . '/../eslint-test-files/react-app'), + \ 'cwd': ale#path#Simplify(g:dir . '/../test-files/eslint/react-app'), \ 'command': (has('win32') ? 'node.exe ' : '') - \ . ale#Escape(ale#path#Simplify(g:dir . '/../eslint-test-files/react-app/node_modules/eslint/bin/eslint.js')) + \ . ale#Escape(ale#path#Simplify(g:dir . '/../test-files/eslint/react-app/node_modules/eslint/bin/eslint.js')) \ . ' --stdin-filename %s --stdin --fix-dry-run --format=json', \ 'process_with': 'ale#fixers#eslint#ProcessFixDryRunOutput', \ }, \] Execute(--fix-dry-run should be used for 4.9.0 and up): - call ale#test#SetFilename('../eslint-test-files/react-app/subdir/testfile.js') + call ale#test#SetFilename('../test-files/eslint/react-app/subdir/testfile.js') GivenCommandOutput ['4.9.0'] AssertFixer \ { - \ 'cwd': ale#path#Simplify(g:dir . '/../eslint-test-files/react-app'), + \ 'cwd': ale#path#Simplify(g:dir . '/../test-files/eslint/react-app'), \ 'command': (has('win32') ? 'node.exe ' : '') - \ . ale#Escape(ale#path#Simplify(g:dir . '/../eslint-test-files/react-app/node_modules/eslint/bin/eslint.js')) + \ . ale#Escape(ale#path#Simplify(g:dir . '/../test-files/eslint/react-app/node_modules/eslint/bin/eslint.js')) \ . ' --stdin-filename %s --stdin --fix-dry-run --format=json', \ 'process_with': 'ale#fixers#eslint#ProcessFixDryRunOutput', \ } Execute(--fix-to-stdout should be used for eslint_d): - call ale#test#SetFilename('../eslint-test-files/app-with-eslint-d/testfile.js') + call ale#test#SetFilename('../test-files/eslint/app-with-eslint-d/testfile.js') AssertFixer \ { \ 'read_temporary_file': 1, - \ 'cwd': ale#path#Simplify(g:dir . '/../eslint-test-files/app-with-eslint-d'), - \ 'command': ale#Escape(ale#path#Simplify(g:dir . '/../eslint-test-files/app-with-eslint-d/node_modules/.bin/eslint_d')) - \ . ' -c ' . ale#Escape(ale#path#Simplify(g:dir . '/../eslint-test-files/package.json')) + \ 'cwd': ale#path#Simplify(g:dir . '/../test-files/eslint/app-with-eslint-d'), + \ 'command': ale#Escape(ale#path#Simplify(g:dir . '/../test-files/eslint/app-with-eslint-d/node_modules/.bin/eslint_d')) + \ . ' -c ' . ale#Escape(ale#path#Simplify(g:dir . '/../test-files/eslint/package.json')) \ . ' --fix %t', \ } @@ -283,8 +283,8 @@ Execute(--fix-to-stdout should be used for eslint_d): GivenCommandOutput ['v3.19.0 (eslint_d v4.2.0)'] AssertFixer \ { - \ 'cwd': ale#path#Simplify(g:dir . '/../eslint-test-files/app-with-eslint-d'), - \ 'command': ale#Escape(ale#path#Simplify(g:dir . '/../eslint-test-files/app-with-eslint-d/node_modules/.bin/eslint_d')) + \ 'cwd': ale#path#Simplify(g:dir . '/../test-files/eslint/app-with-eslint-d'), + \ 'command': ale#Escape(ale#path#Simplify(g:dir . '/../test-files/eslint/app-with-eslint-d/node_modules/.bin/eslint_d')) \ . ' --stdin-filename %s --stdin --fix-to-stdout', \ 'process_with': 'ale#fixers#eslint#ProcessEslintDOutput', \ } @@ -293,8 +293,8 @@ Execute(--fix-to-stdout should be used for eslint_d): GivenCommandOutput ['4.9.0'] AssertFixer \ { - \ 'cwd': ale#path#Simplify(g:dir . '/../eslint-test-files/app-with-eslint-d'), - \ 'command': ale#Escape(ale#path#Simplify(g:dir . '/../eslint-test-files/app-with-eslint-d/node_modules/.bin/eslint_d')) + \ 'cwd': ale#path#Simplify(g:dir . '/../test-files/eslint/app-with-eslint-d'), + \ 'command': ale#Escape(ale#path#Simplify(g:dir . '/../test-files/eslint/app-with-eslint-d/node_modules/.bin/eslint_d')) \ . ' --stdin-filename %s --stdin --fix-to-stdout', \ 'process_with': 'ale#fixers#eslint#ProcessEslintDOutput', \ } diff --git a/test/fixers/test_fecs_fixer_callback.vader b/test/fixers/test_fecs_fixer_callback.vader index 809b4d46..b218e550 100644 --- a/test/fixers/test_fecs_fixer_callback.vader +++ b/test/fixers/test_fecs_fixer_callback.vader @@ -6,7 +6,7 @@ After: call ale#assert#TearDownFixerTest() Execute(The fecs fixer should respect to g:ale_javascript_fecs_executable): - let g:ale_javascript_fecs_executable = 'fecs_paths/fecs' + let g:ale_javascript_fecs_executable = '../test-files/fecs/fecs' let g:ale_javascript_fecs_use_global = 1 silent cd ../command_callback let g:dir = getcwd() diff --git a/test/fixers/test_fish_indent_fixer_callback.vader b/test/fixers/test_fish_indent_fixer_callback.vader index beb0b42e..3555a974 100644 --- a/test/fixers/test_fish_indent_fixer_callback.vader +++ b/test/fixers/test_fish_indent_fixer_callback.vader @@ -14,7 +14,7 @@ After: call ale#test#RestoreDirectory() Execute(The fish_indent callback should return the correct default values): - call ale#test#SetFilename('../fish_files/testfile.fish') + call ale#test#SetFilename('../test-files/fish/testfile.fish') AssertEqual \ { @@ -27,7 +27,7 @@ Execute(The fish_indent callback should return the correct default values): Execute(The fish_indent callback should include custom fish_indent options): let g:ale_fish_fish_indent_options = "-d" - call ale#test#SetFilename('../fish_files/testfile.fish') + call ale#test#SetFilename('../test-files/fish/testfile.fish') AssertEqual \ { diff --git a/test/fixers/test_fixjson_fixer_callback.vader b/test/fixers/test_fixjson_fixer_callback.vader index 1a3bdcfc..2b023fad 100644 --- a/test/fixers/test_fixjson_fixer_callback.vader +++ b/test/fixers/test_fixjson_fixer_callback.vader @@ -20,7 +20,7 @@ Execute(The fixjson callback should return the correct default command): \ ale#fixers#fixjson#Fix(bufnr('')) Execute(The fixjson callback should set the buffer name as file name): - call ale#test#SetFilename('../json_files/testfile.json') + call ale#test#SetFilename('../test-files/json/testfile.json') AssertEqual \ { diff --git a/test/fixers/test_gnatpp_fixer_callback.vader b/test/fixers/test_gnatpp_fixer_callback.vader index a2bf898e..7a3ed517 100644 --- a/test/fixers/test_gnatpp_fixer_callback.vader +++ b/test/fixers/test_gnatpp_fixer_callback.vader @@ -8,7 +8,7 @@ After: call ale#assert#TearDownFixerTest() Execute(The default command should be correct): - call ale#test#SetFilename('../ada_files/testfile.adb') + call ale#test#SetFilename('../test-files/ada/testfile.adb') AssertFixer \ { @@ -17,7 +17,7 @@ Execute(The default command should be correct): \ } Execute(The version check should be correct): - call ale#test#SetFilename('../ada_files/testfile.adb') + call ale#test#SetFilename('../test-files/ada/testfile.adb') let g:ale_ada_gnatpp_options = '--no-alignment' AssertFixer diff --git a/test/fixers/test_gofmt_fixer_callback.vader b/test/fixers/test_gofmt_fixer_callback.vader index 99407173..579dd3db 100644 --- a/test/fixers/test_gofmt_fixer_callback.vader +++ b/test/fixers/test_gofmt_fixer_callback.vader @@ -17,7 +17,7 @@ After: call ale#test#RestoreDirectory() Execute(The gofmt callback should return the correct default values): - call ale#test#SetFilename('../go_files/testfile.go') + call ale#test#SetFilename('../test-files/go/testfile.go') AssertEqual \ { @@ -28,7 +28,7 @@ Execute(The gofmt callback should return the correct default values): Execute(The gofmt callback should include custom gofmt options): let g:ale_go_gofmt_options = "-r '(a) -> a'" - call ale#test#SetFilename('../go_files/testfile.go') + call ale#test#SetFilename('../test-files/go/testfile.go') AssertEqual \ { @@ -40,7 +40,7 @@ Execute(The gofmt callback should include custom gofmt options): Execute(The gofmt callback should support Go environment variables): let g:ale_go_go111module = 'off' - call ale#test#SetFilename('../go_files/testfile.go') + call ale#test#SetFilename('../test-files/go/testfile.go') AssertEqual \ { diff --git a/test/fixers/test_goimports_fixer_callback.vader b/test/fixers/test_goimports_fixer_callback.vader index 3ea022ff..64c75b2d 100644 --- a/test/fixers/test_goimports_fixer_callback.vader +++ b/test/fixers/test_goimports_fixer_callback.vader @@ -8,7 +8,7 @@ Before: let g:ale_go_goimports_options = '' call ale#test#SetDirectory('/testplugin/test/fixers') - call ale#test#SetFilename('../go_files/testfile.go') + call ale#test#SetFilename('../test-files/go/testfile.go') After: Restore diff --git a/test/fixers/test_gomod_fixer_callback.vader b/test/fixers/test_gomod_fixer_callback.vader index 422caf63..56fb9854 100644 --- a/test/fixers/test_gomod_fixer_callback.vader +++ b/test/fixers/test_gomod_fixer_callback.vader @@ -15,7 +15,7 @@ After: call ale#test#RestoreDirectory() Execute(The gomod callback should return the correct default values): - call ale#test#SetFilename('../go_files/go.mod') + call ale#test#SetFilename('../test-files/go/go.mod') setl filetype=gomod AssertEqual @@ -28,7 +28,7 @@ Execute(The gomod callback should return the correct default values): \ ale#fixers#gomod#Fix(bufnr('')) Execute(The gomod callback should support Go environment variables): - call ale#test#SetFilename('../go_files/go.mod') + call ale#test#SetFilename('../test-files/go/go.mod') setl filetype=gomod let g:ale_go_go111module = 'on' diff --git a/test/fixers/test_importjs_fixer_callback.vader b/test/fixers/test_importjs_fixer_callback.vader index 53b87c2e..727e6a16 100644 --- a/test/fixers/test_importjs_fixer_callback.vader +++ b/test/fixers/test_importjs_fixer_callback.vader @@ -5,7 +5,7 @@ Before: let g:ale_javascript_importjs_executable = 'xxxinvalid' call ale#test#SetDirectory('/testplugin/test/fixers') - call ale#test#SetFilename('../javascript_files/test.js') + call ale#test#SetFilename('../test-files/javascript/test.js') After: Restore diff --git a/test/fixers/test_isort_fixer_callback.vader b/test/fixers/test_isort_fixer_callback.vader index 96632c8c..5f3cc447 100644 --- a/test/fixers/test_isort_fixer_callback.vader +++ b/test/fixers/test_isort_fixer_callback.vader @@ -17,11 +17,11 @@ Execute(The isort callback should return the correct default values): \ 0, \ ale#fixers#isort#Fix(bufnr('')) - silent execute 'file ' . fnameescape(g:dir . '/python_paths/with_virtualenv/subdir/foo/bar.py') + silent execute 'file ' . fnameescape(g:dir . '/../test-files/python/with_virtualenv/subdir/foo/bar.py') AssertEqual \ { \ 'cwd': '%s:h', - \ 'command': ale#Escape(ale#path#Simplify(g:dir . '/python_paths/with_virtualenv/env/' . b:bin_dir . '/isort')) . ' -', + \ 'command': ale#Escape(ale#path#Simplify(g:dir . '/../test-files/python/with_virtualenv/env/' . b:bin_dir . '/isort')) . ' -', \ }, \ ale#fixers#isort#Fix(bufnr('')) @@ -32,11 +32,11 @@ Execute(The isort callback should respect custom options): \ 0, \ ale#fixers#isort#Fix(bufnr('')) - silent execute 'file ' . fnameescape(g:dir . '/python_paths/with_virtualenv/subdir/foo/bar.py') + silent execute 'file ' . fnameescape(g:dir . '/../test-files/python/with_virtualenv/subdir/foo/bar.py') AssertEqual \ { \ 'cwd': '%s:h', - \ 'command': ale#Escape(ale#path#Simplify(g:dir . '/python_paths/with_virtualenv/env/' . b:bin_dir . '/isort')) + \ 'command': ale#Escape(ale#path#Simplify(g:dir . '/../test-files/python/with_virtualenv/env/' . b:bin_dir . '/isort')) \ . ' --multi-line=3 --trailing-comma -', \ }, \ ale#fixers#isort#Fix(bufnr('')) @@ -44,7 +44,7 @@ Execute(The isort callback should respect custom options): Execute(Pipenv is detected when python_isort_auto_pipenv is set): let g:ale_python_isort_auto_pipenv = 1 - call ale#test#SetFilename('../python_fixtures/pipenv/whatever.py') + call ale#test#SetFilename('../test-files/python/pipenv/whatever.py') AssertEqual \ { diff --git a/test/fixers/test_ktlint_fixer_callback.vader b/test/fixers/test_ktlint_fixer_callback.vader index ba01a409..cfe39205 100644 --- a/test/fixers/test_ktlint_fixer_callback.vader +++ b/test/fixers/test_ktlint_fixer_callback.vader @@ -16,7 +16,7 @@ After: call ale#test#RestoreDirectory() Execute(The ktlint callback should return the correct default values): - call ale#test#SetFilename('../kotlin_files/testfile.kt') + call ale#test#SetFilename('../test-files/kotlin/testfile.kt') AssertEqual \ { @@ -29,7 +29,7 @@ Execute(The ktlint callback should return the correct default values): Execute(The ktlint callback should include custom ktlint options): let g:ale_kotlin_ktlint_options = "--android" let g:ale_kotlin_ktlint_rulesets = ['/path/to/custom/ruleset.jar'] - call ale#test#SetFilename('../kotlin_files/testfile.kt') + call ale#test#SetFilename('../test-files/kotlin/testfile.kt') AssertEqual \ { diff --git a/test/fixers/test_latexindent_fixer_callback.vader b/test/fixers/test_latexindent_fixer_callback.vader index a440ed65..bd4ac69a 100644 --- a/test/fixers/test_latexindent_fixer_callback.vader +++ b/test/fixers/test_latexindent_fixer_callback.vader @@ -14,7 +14,7 @@ After: call ale#test#RestoreDirectory() Execute(The latexindent callback should return the correct default values): - call ale#test#SetFilename('../tex_files/testfile.tex') + call ale#test#SetFilename('../test-files/tex/testfile.tex') AssertEqual \ { @@ -25,7 +25,7 @@ Execute(The latexindent callback should return the correct default values): Execute(The latexindent callback should include custom gofmt options): let g:ale_tex_latexindent_options = "-l '~/.indentconfig.yaml'" - call ale#test#SetFilename('../tex_files/testfile.tex') + call ale#test#SetFilename('../test-files/tex/testfile.tex') AssertEqual \ { diff --git a/test/fixers/test_luafmt_fixer_callback.vader b/test/fixers/test_luafmt_fixer_callback.vader index 362da118..ef69f297 100644 --- a/test/fixers/test_luafmt_fixer_callback.vader +++ b/test/fixers/test_luafmt_fixer_callback.vader @@ -14,7 +14,7 @@ After: call ale#test#RestoreDirectory() Execute(The luafmt callback should return the correct default values): - call ale#test#SetFilename('../lua_files/testfile.lua') + call ale#test#SetFilename('../test-files/lua/testfile.lua') AssertEqual \ { @@ -24,7 +24,7 @@ Execute(The luafmt callback should return the correct default values): Execute(The luafmt callback should include custom luafmt options): let g:ale_lua_luafmt_options = "--skip-children" - call ale#test#SetFilename('../lua_files/testfile.lua') + call ale#test#SetFilename('../test-files/lua/testfile.lua') AssertEqual \ { diff --git a/test/fixers/test_mix_format_fixer_callback.vader b/test/fixers/test_mix_format_fixer_callback.vader index 365fbecf..cd492e81 100644 --- a/test/fixers/test_mix_format_fixer_callback.vader +++ b/test/fixers/test_mix_format_fixer_callback.vader @@ -13,7 +13,7 @@ After: call ale#test#RestoreDirectory() Execute(The mix_format callback should return the correct default values): - call ale#test#SetFilename('../elixir-test-files/testfile.ex') + call ale#test#SetFilename('../test-files/elixir/testfile.ex') AssertEqual \ { @@ -25,7 +25,7 @@ Execute(The mix_format callback should return the correct default values): Execute(The mix_format callback should include the correct format options): let g:ale_elixir_mix_format_options = 'invalid_options' - call ale#test#SetFilename('../elixir-test-files/testfile.ex') + call ale#test#SetFilename('../test-files/elixir/testfile.ex') AssertEqual \ { diff --git a/test/fixers/test_ocamlformat_fixer_callback.vader b/test/fixers/test_ocamlformat_fixer_callback.vader index 0ccdb070..587fcf56 100644 --- a/test/fixers/test_ocamlformat_fixer_callback.vader +++ b/test/fixers/test_ocamlformat_fixer_callback.vader @@ -14,7 +14,7 @@ After: call ale#test#RestoreDirectory() Execute(The ocamlformat callback should return the correct default values): - call ale#test#SetFilename('../ocaml-test-files/testfile.re') + call ale#test#SetFilename('../test-files/ocaml/testfile.re') AssertEqual \ { @@ -25,7 +25,7 @@ Execute(The ocamlformat callback should return the correct default values): Execute(The ocamlformat callback should include custom ocamlformat options): let g:ale_ocaml_ocamlformat_options = "-m 78" - call ale#test#SetFilename('../ocaml-test-files/testfile.re') + call ale#test#SetFilename('../test-files/ocaml/testfile.re') AssertEqual \ { diff --git a/test/fixers/test_ocp_indent_fixer_callback.vader b/test/fixers/test_ocp_indent_fixer_callback.vader index 1f61f383..fc336b2d 100644 --- a/test/fixers/test_ocp_indent_fixer_callback.vader +++ b/test/fixers/test_ocp_indent_fixer_callback.vader @@ -14,7 +14,7 @@ After: call ale#test#RestoreDirectory() Execute(The ocp_indent callback should return the correct default values): - call ale#test#SetFilename('../ocaml-test-files/ocp_inden_testfile.re') + call ale#test#SetFilename('../test-files/ocaml/ocp_inden_testfile.re') AssertEqual \ { @@ -24,7 +24,7 @@ Execute(The ocp_indent callback should return the correct default values): Execute(The ocp_indent callback should include custom ocp_indent options): let g:ale_ocaml_ocp_indent_config = "base=4, type=4" - call ale#test#SetFilename('../ocaml-test-files/ocp_inden_testfile.re') + call ale#test#SetFilename('../test-files/ocaml/ocp_inden_testfile.re') AssertEqual \ { diff --git a/test/fixers/test_php_cs_fixer.vader b/test/fixers/test_php_cs_fixer.vader index b47c190c..550f453c 100644 --- a/test/fixers/test_php_cs_fixer.vader +++ b/test/fixers/test_php_cs_fixer.vader @@ -16,22 +16,22 @@ After: Execute(project with php-cs-fixer should use local by default): - call ale#test#SetFilename('php_paths/project-with-php-cs-fixer/test.php') + call ale#test#SetFilename('../test-files/php/project-with-php-cs-fixer/test.php') AssertEqual - \ ale#path#Simplify(g:dir . '/php_paths/project-with-php-cs-fixer/vendor/bin/php-cs-fixer'), + \ ale#path#Simplify(g:dir . '/../test-files/php/project-with-php-cs-fixer/vendor/bin/php-cs-fixer'), \ ale#fixers#php_cs_fixer#GetExecutable(bufnr('')) Execute(use-global should override local detection): let g:ale_php_cs_fixer_use_global = 1 - call ale#test#SetFilename('php_paths/project-with-php-cs-fixer/test.php') + call ale#test#SetFilename('../test-files/php/project-with-php-cs-fixer/test.php') AssertEqual \ 'php-cs-fixer', \ ale#fixers#php_cs_fixer#GetExecutable(bufnr('')) Execute(project without php-cs-fixer should use global): - call ale#test#SetFilename('php_paths/project-without-php-cs-fixer/test.php') + call ale#test#SetFilename('../test-files/php/project-without-php-cs-fixer/test.php') AssertEqual \ 'php-cs-fixer', @@ -41,7 +41,7 @@ Execute(project without php-cs-fixer should use global): Execute(The php-cs-fixer callback should return the correct default values): - call ale#test#SetFilename('php_paths/project-without-php-cs-fixer/foo/test.php') + call ale#test#SetFilename('../test-files/php/project-without-php-cs-fixer/foo/test.php') AssertEqual \ { @@ -54,7 +54,7 @@ Execute(The php-cs-fixer callback should return the correct default values): Execute(The php-cs-fixer callback should include custom php-cs-fixer options): let g:ale_php_cs_fixer_options = '--config="$HOME/.php_cs"' - call ale#test#SetFilename('php_paths/project-without-php-cs-fixer/test.php') + call ale#test#SetFilename('../test-files/php/project-without-php-cs-fixer/test.php') AssertEqual \ { diff --git a/test/fixers/test_phpcbf_fixer_callback.vader b/test/fixers/test_phpcbf_fixer_callback.vader index f7bcc2d8..2d44a44d 100644 --- a/test/fixers/test_phpcbf_fixer_callback.vader +++ b/test/fixers/test_phpcbf_fixer_callback.vader @@ -19,48 +19,48 @@ After: call ale#test#RestoreDirectory() Execute(project with phpcbf should use local by default): - call ale#test#SetFilename('php_paths/project-with-phpcbf/foo/test.php') + call ale#test#SetFilename('../test-files/php/project-with-phpcbf/foo/test.php') AssertEqual - \ ale#path#Simplify(g:dir . '/php_paths/project-with-phpcbf/vendor/bin/phpcbf'), + \ ale#path#Simplify(g:dir . '/../test-files/php/project-with-phpcbf/vendor/bin/phpcbf'), \ ale#fixers#phpcbf#GetExecutable(bufnr('')) Execute(use-global should override local detection): let g:ale_php_phpcbf_use_global = 1 - call ale#test#SetFilename('php_paths/project-with-phpcbf/foo/test.php') + call ale#test#SetFilename('../test-files/php/project-with-phpcbf/foo/test.php') AssertEqual \ 'phpcbf_test', \ ale#fixers#phpcbf#GetExecutable(bufnr('')) Execute(project without phpcbf should use global): - call ale#test#SetFilename('php_paths/project-without-phpcbf/foo/test.php') + call ale#test#SetFilename('../test-files/php/project-without-phpcbf/foo/test.php') AssertEqual \ 'phpcbf_test', \ ale#fixers#phpcbf#GetExecutable(bufnr('')) Execute(The phpcbf callback should return the correct default values): - call ale#test#SetFilename('php_paths/project-with-phpcbf/foo/test.php') + call ale#test#SetFilename('../test-files/php/project-with-phpcbf/foo/test.php') AssertEqual - \ {'command': ale#Escape(ale#path#Simplify(g:dir . '/php_paths/project-with-phpcbf/vendor/bin/phpcbf')) . ' --stdin-path=%s -' }, + \ {'command': ale#Escape(ale#path#Simplify(g:dir . '/../test-files/php/project-with-phpcbf/vendor/bin/phpcbf')) . ' --stdin-path=%s -' }, \ ale#fixers#phpcbf#Fix(bufnr('')) Execute(The phpcbf callback should include the phpcbf_standard option): let g:ale_php_phpcbf_standard = 'phpcbf_ruleset.xml' - call ale#test#SetFilename('php_paths/project-with-phpcbf/foo/test.php') + call ale#test#SetFilename('../test-files/php/project-with-phpcbf/foo/test.php') AssertEqual - \ {'command': ale#Escape(ale#path#Simplify(g:dir . '/php_paths/project-with-phpcbf/vendor/bin/phpcbf')) . ' --stdin-path=%s ' . '--standard=phpcbf_ruleset.xml' . ' -'}, + \ {'command': ale#Escape(ale#path#Simplify(g:dir . '/../test-files/php/project-with-phpcbf/vendor/bin/phpcbf')) . ' --stdin-path=%s ' . '--standard=phpcbf_ruleset.xml' . ' -'}, \ ale#fixers#phpcbf#Fix(bufnr('')) Execute(User provided options should be used): let g:ale_php_phpcbf_options = '--my-user-provided-option my-value' - call ale#test#SetFilename('php_paths/project-with-phpcbf/foo/test.php') + call ale#test#SetFilename('../test-files/php/project-with-phpcbf/foo/test.php') AssertEqual - \ {'command': ale#Escape(ale#path#Simplify(g:dir . '/php_paths/project-with-phpcbf/vendor/bin/phpcbf')) . ' --stdin-path=%s ' . ale#Pad('--my-user-provided-option my-value') . ' -'}, + \ {'command': ale#Escape(ale#path#Simplify(g:dir . '/../test-files/php/project-with-phpcbf/vendor/bin/phpcbf')) . ' --stdin-path=%s ' . ale#Pad('--my-user-provided-option my-value') . ' -'}, \ ale#fixers#phpcbf#Fix(bufnr('')) @@ -85,39 +85,39 @@ After: call ale#test#RestoreDirectory() Execute(project with phpcbf should use local by default): - call ale#test#SetFilename('php_paths/project-with-phpcbf/foo/test.php') + call ale#test#SetFilename('../test-files/php/project-with-phpcbf/foo/test.php') AssertEqual - \ ale#path#Simplify(g:dir . '/php_paths/project-with-phpcbf/vendor/bin/phpcbf'), + \ ale#path#Simplify(g:dir . '/../test-files/php/project-with-phpcbf/vendor/bin/phpcbf'), \ ale#fixers#phpcbf#GetExecutable(bufnr('')) Execute(use-global should override local detection): let g:ale_php_phpcbf_use_global = 1 - call ale#test#SetFilename('php_paths/project-with-phpcbf/foo/test.php') + call ale#test#SetFilename('../test-files/php/project-with-phpcbf/foo/test.php') AssertEqual \ 'phpcbf_test', \ ale#fixers#phpcbf#GetExecutable(bufnr('')) Execute(project without phpcbf should use global): - call ale#test#SetFilename('php_paths/project-without-phpcbf/foo/test.php') + call ale#test#SetFilename('../test-files/php/project-without-phpcbf/foo/test.php') AssertEqual \ 'phpcbf_test', \ ale#fixers#phpcbf#GetExecutable(bufnr('')) Execute(The phpcbf callback should return the correct default values): - call ale#test#SetFilename('php_paths/project-with-phpcbf/foo/test.php') + call ale#test#SetFilename('../test-files/php/project-with-phpcbf/foo/test.php') AssertEqual - \ {'command': ale#Escape(ale#path#Simplify(g:dir . '/php_paths/project-with-phpcbf/vendor/bin/phpcbf')) . ' --stdin-path=%s -' }, + \ {'command': ale#Escape(ale#path#Simplify(g:dir . '/../test-files/php/project-with-phpcbf/vendor/bin/phpcbf')) . ' --stdin-path=%s -' }, \ ale#fixers#phpcbf#Fix(bufnr('')) Execute(The phpcbf callback should include the phpcbf_standard option): let g:ale_php_phpcbf_standard = 'phpcbf_ruleset.xml' - call ale#test#SetFilename('php_paths/project-with-phpcbf/foo/test.php') + call ale#test#SetFilename('../test-files/php/project-with-phpcbf/foo/test.php') AssertEqual - \ {'command': ale#Escape(ale#path#Simplify(g:dir . '/php_paths/project-with-phpcbf/vendor/bin/phpcbf')) . ' --stdin-path=%s ' . '--standard=phpcbf_ruleset.xml' . ' -'}, + \ {'command': ale#Escape(ale#path#Simplify(g:dir . '/../test-files/php/project-with-phpcbf/vendor/bin/phpcbf')) . ' --stdin-path=%s ' . '--standard=phpcbf_ruleset.xml' . ' -'}, \ ale#fixers#phpcbf#Fix(bufnr('')) diff --git a/test/fixers/test_prettier_eslint_fixer.callback.vader b/test/fixers/test_prettier_eslint_fixer.callback.vader index 9bd6baf7..cfdd1c78 100644 --- a/test/fixers/test_prettier_eslint_fixer.callback.vader +++ b/test/fixers/test_prettier_eslint_fixer.callback.vader @@ -30,7 +30,7 @@ Execute(Additional options should be used when set): \ } Execute(--eslint-config-path should be set for 4.2.0 and up): - call ale#test#SetFilename('eslint-test-files/react-app/foo/bar.js') + call ale#test#SetFilename('../test-files/eslint/react-app/foo/bar.js') GivenCommandOutput ['4.2.0'] AssertFixer @@ -39,12 +39,12 @@ Execute(--eslint-config-path should be set for 4.2.0 and up): \ 'command': \ ale#Escape('prettier-eslint') \ . ' %t' - \ . ' --eslint-config-path ' . ale#Escape(ale#path#Simplify(g:dir . '/eslint-test-files/react-app/.eslintrc.js')) + \ . ' --eslint-config-path ' . ale#Escape(ale#test#GetFilename('../test-files/eslint/react-app/.eslintrc.js')) \ . ' --write' \ } Execute(--eslint-config-path shouldn't be used for older versions): - call ale#test#SetFilename('eslint-test-files/react-app/foo/bar.js') + call ale#test#SetFilename('../test-files/eslint/react-app/foo/bar.js') AssertFixer \ { @@ -68,14 +68,14 @@ Execute(The version check should be correct): \] Execute(The new --stdin-filepath option should be used when the version is new enough): - call ale#test#SetFilename('eslint-test-files/react-app/foo/bar.js') + call ale#test#SetFilename('../test-files/eslint/react-app/foo/bar.js') GivenCommandOutput ['4.4.0'] AssertFixer \ { \ 'cwd': '%s:h', \ 'command': ale#Escape('prettier-eslint') - \ . ' --eslint-config-path ' . ale#Escape(ale#path#Simplify(g:dir . '/eslint-test-files/react-app/.eslintrc.js')) + \ . ' --eslint-config-path ' . ale#Escape(ale#test#GetFilename('../test-files/eslint/react-app/.eslintrc.js')) \ . ' --stdin-filepath %s --stdin', \ } diff --git a/test/fixers/test_prettier_fixer_callback.vader b/test/fixers/test_prettier_fixer_callback.vader index 0857c4cb..7e7b661d 100644 --- a/test/fixers/test_prettier_fixer_callback.vader +++ b/test/fixers/test_prettier_fixer_callback.vader @@ -12,7 +12,7 @@ After: call ale#assert#TearDownFixerTest() Execute(The prettier callback should return the correct default values): - call ale#test#SetFilename('../prettier-test-files/testfile.js') + call ale#test#SetFilename('../test-files/prettier/testfile.js') AssertFixer \ { @@ -24,7 +24,7 @@ Execute(The prettier callback should return the correct default values): Execute(The --config option should not be set automatically): let g:ale_javascript_prettier_use_local_config = 1 - call ale#test#SetFilename('../prettier-test-files/with_config/testfile.js') + call ale#test#SetFilename('../test-files/prettier/with_config/testfile.js') AssertFixer \ { @@ -36,7 +36,7 @@ Execute(The --config option should not be set automatically): Execute(The prettier callback should include custom prettier options): let g:ale_javascript_prettier_options = '--no-semi' - call ale#test#SetFilename('../prettier-test-files/with_config/testfile.js') + call ale#test#SetFilename('../test-files/prettier/with_config/testfile.js') AssertFixer \ { @@ -48,7 +48,7 @@ Execute(The prettier callback should include custom prettier options): \ } Execute(The version check should be correct): - call ale#test#SetFilename('../prettier-test-files/testfile.js') + call ale#test#SetFilename('../test-files/prettier/testfile.js') AssertFixer [ \ ale#Escape('prettier') . ' --version', @@ -57,7 +57,7 @@ Execute(The version check should be correct): Execute(--stdin-filepath should be used when prettier is new enough): let g:ale_javascript_prettier_options = '--no-semi' - call ale#test#SetFilename('../prettier-test-files/with_config/testfile.js') + call ale#test#SetFilename('../test-files/prettier/with_config/testfile.js') GivenCommandOutput ['1.6.0'] AssertFixer @@ -69,7 +69,7 @@ Execute(--stdin-filepath should be used when prettier is new enough): \ } Execute(The version number should be cached): - call ale#test#SetFilename('../prettier-test-files/with_config/testfile.js') + call ale#test#SetFilename('../test-files/prettier/with_config/testfile.js') GivenCommandOutput ['1.6.0'] AssertFixer @@ -88,7 +88,7 @@ Execute(The version number should be cached): \ } Execute(Should set --parser to `babylon` by default, < 1.16.0): - call ale#test#SetFilename('../prettier-test-files/testfile') + call ale#test#SetFilename('../test-files/prettier/testfile') set filetype=javascript @@ -102,7 +102,7 @@ Execute(Should set --parser to `babylon` by default, < 1.16.0): \ } Execute(Should set --parser to `babel` by default, >= 1.16.0): - call ale#test#SetFilename('../prettier-test-files/testfile') + call ale#test#SetFilename('../test-files/prettier/testfile') set filetype=javascript @@ -116,7 +116,7 @@ Execute(Should set --parser to `babel` by default, >= 1.16.0): \ } Execute(Should set --parser based on filetype, TypeScript): - call ale#test#SetFilename('../prettier-test-files/testfile') + call ale#test#SetFilename('../test-files/prettier/testfile') set filetype=typescript @@ -130,7 +130,7 @@ Execute(Should set --parser based on filetype, TypeScript): \ } Execute(Should set --parser based on filetype, CSS): - call ale#test#SetFilename('../prettier-test-files/testfile') + call ale#test#SetFilename('../test-files/prettier/testfile') set filetype=css @@ -144,7 +144,7 @@ Execute(Should set --parser based on filetype, CSS): \ } Execute(Should set --parser based on filetype, LESS): - call ale#test#SetFilename('../prettier-test-files/testfile') + call ale#test#SetFilename('../test-files/prettier/testfile') set filetype=less @@ -158,7 +158,7 @@ Execute(Should set --parser based on filetype, LESS): \ } Execute(Should set --parser based on filetype, SCSS): - call ale#test#SetFilename('../prettier-test-files/testfile') + call ale#test#SetFilename('../test-files/prettier/testfile') set filetype=scss @@ -172,7 +172,7 @@ Execute(Should set --parser based on filetype, SCSS): \ } Execute(Should set --parser based on filetype, JSON): - call ale#test#SetFilename('../prettier-test-files/testfile') + call ale#test#SetFilename('../test-files/prettier/testfile') set filetype=json @@ -186,7 +186,7 @@ Execute(Should set --parser based on filetype, JSON): \ } Execute(Should set --parser based on filetype, JSON5): - call ale#test#SetFilename('../prettier-test-files/testfile') + call ale#test#SetFilename('../test-files/prettier/testfile') set filetype=json5 @@ -200,7 +200,7 @@ Execute(Should set --parser based on filetype, JSON5): \ } Execute(Should set --parser based on filetype, GraphQL): - call ale#test#SetFilename('../prettier-test-files/testfile') + call ale#test#SetFilename('../test-files/prettier/testfile') set filetype=graphql @@ -214,7 +214,7 @@ Execute(Should set --parser based on filetype, GraphQL): \ } Execute(Should set --parser based on filetype, Markdown): - call ale#test#SetFilename('../prettier-test-files/testfile') + call ale#test#SetFilename('../test-files/prettier/testfile') set filetype=markdown @@ -228,7 +228,7 @@ Execute(Should set --parser based on filetype, Markdown): \ } Execute(Should set --parser based on filetype, Vue): - call ale#test#SetFilename('../prettier-test-files/testfile') + call ale#test#SetFilename('../test-files/prettier/testfile') set filetype=vue @@ -242,7 +242,7 @@ Execute(Should set --parser based on filetype, Vue): \ } Execute(Should set --parser based on filetype, YAML): - call ale#test#SetFilename('../prettier-test-files/testfile') + call ale#test#SetFilename('../test-files/prettier/testfile') set filetype=yaml @@ -256,7 +256,7 @@ Execute(Should set --parser based on filetype, YAML): \ } Execute(Should set --parser based on filetype, HTML): - call ale#test#SetFilename('../prettier-test-files/testfile') + call ale#test#SetFilename('../test-files/prettier/testfile') set filetype=html @@ -270,7 +270,7 @@ Execute(Should set --parser based on filetype, HTML): \ } Execute(Should set --parser based on filetype, Ruby): - call ale#test#SetFilename('../prettier-test-files/testfile') + call ale#test#SetFilename('../test-files/prettier/testfile') set filetype=ruby @@ -284,7 +284,7 @@ Execute(Should set --parser based on filetype, Ruby): \ } Execute(Should set --parser based on first filetype of multiple filetypes): - call ale#test#SetFilename('../prettier-test-files/testfile') + call ale#test#SetFilename('../test-files/prettier/testfile') set filetype=css.scss @@ -298,7 +298,7 @@ Execute(Should set --parser based on first filetype of multiple filetypes): \ } Execute(Should set --parser for experimental language, Handlebars): - call ale#test#SetFilename('../prettier-test-files/testfile.hbs') + call ale#test#SetFilename('../test-files/prettier/testfile.hbs') set filetype=html.handlebars @@ -312,7 +312,7 @@ Execute(Should set --parser for experimental language, Handlebars): \ } Execute(Changes to directory where .prettierignore is found): - call ale#test#SetFilename('../prettier-test-files/with_prettierignore/src/testfile.js') + call ale#test#SetFilename('../test-files/prettier/with_prettierignore/src/testfile.js') GivenCommandOutput ['1.6.0'] AssertFixer diff --git a/test/fixers/test_prettier_standard_callback.vader b/test/fixers/test_prettier_standard_callback.vader index ab33fe20..d0cf4ecf 100644 --- a/test/fixers/test_prettier_standard_callback.vader +++ b/test/fixers/test_prettier_standard_callback.vader @@ -9,7 +9,7 @@ After: call ale#assert#TearDownFixerTest() Execute(The prettier callback should return the correct default values): - call ale#test#SetFilename('../prettier-test-files/testfile.js') + call ale#test#SetFilename('../test-files/prettier/testfile.js') AssertFixer \ { diff --git a/test/fixers/test_puppetlint_fixer_callback.vader b/test/fixers/test_puppetlint_fixer_callback.vader index 224d72ab..5ccb0137 100644 --- a/test/fixers/test_puppetlint_fixer_callback.vader +++ b/test/fixers/test_puppetlint_fixer_callback.vader @@ -17,7 +17,7 @@ After: call ale#test#RestoreDirectory() Execute(The puppetlint callback should return the correct default values): - silent execute 'file ' . fnameescape(g:dir . '/puppet_paths/dummy.pp') + silent execute 'file ' . fnameescape(g:dir . '/../test-files/puppet/dummy.pp') AssertEqual \ {'read_temporary_file': 1, diff --git a/test/fixers/test_refmt_fixer_callback.vader b/test/fixers/test_refmt_fixer_callback.vader index 9ec331e4..01b56bee 100644 --- a/test/fixers/test_refmt_fixer_callback.vader +++ b/test/fixers/test_refmt_fixer_callback.vader @@ -14,7 +14,7 @@ After: call ale#test#RestoreDirectory() Execute(The refmt callback should return the correct default values): - call ale#test#SetFilename('../reasonml_files/testfile.re') + call ale#test#SetFilename('../test-files/reasonml/testfile.re') AssertEqual \ { @@ -27,7 +27,7 @@ Execute(The refmt callback should return the correct default values): Execute(The refmt callback should include custom refmt options): let g:ale_reasonml_refmt_options = "-w 80" - call ale#test#SetFilename('../reasonml_files/testfile.re') + call ale#test#SetFilename('../test-files/reasonml/testfile.re') AssertEqual \ { diff --git a/test/fixers/test_reorder_python_imports_fixer_callback.vader b/test/fixers/test_reorder_python_imports_fixer_callback.vader index 30b64eb8..74f3715d 100644 --- a/test/fixers/test_reorder_python_imports_fixer_callback.vader +++ b/test/fixers/test_reorder_python_imports_fixer_callback.vader @@ -25,10 +25,10 @@ Execute(The reorder_python_imports callback should return the correct default va \ 0, \ ale#fixers#reorder_python_imports#Fix(bufnr('')) - silent execute 'file ' . fnameescape(g:dir . '/python_paths/with_virtualenv/subdir/foo/bar.py') + silent execute 'file ' . fnameescape(g:dir . '/../test-files/python/with_virtualenv/subdir/foo/bar.py') AssertEqual \ { - \ 'command': ale#Escape(ale#path#Simplify(g:dir . '/python_paths/with_virtualenv/env/' + \ 'command': ale#Escape(ale#path#Simplify(g:dir . '/../test-files/python/with_virtualenv/env/' \ . b:bin_dir . '/reorder-python-imports')) . ' -', \ }, \ ale#fixers#reorder_python_imports#Fix(bufnr('')) @@ -40,10 +40,10 @@ Execute(The reorder_python_imports callback should respect custom options): \ 0, \ ale#fixers#reorder_python_imports#Fix(bufnr('')) - silent execute 'file ' . fnameescape(g:dir . '/python_paths/with_virtualenv/subdir/foo/bar.py') + silent execute 'file ' . fnameescape(g:dir . '/../test-files/python/with_virtualenv/subdir/foo/bar.py') AssertEqual \ { - \ 'command': ale#Escape(ale#path#Simplify(g:dir . '/python_paths/with_virtualenv/env/' + \ 'command': ale#Escape(ale#path#Simplify(g:dir . '/../test-files/python/with_virtualenv/env/' \ . b:bin_dir . '/reorder-python-imports')) . ' --py3-plus -', \ }, \ ale#fixers#reorder_python_imports#Fix(bufnr('')) diff --git a/test/fixers/test_rubocop_fixer_callback.vader b/test/fixers/test_rubocop_fixer_callback.vader index 84579d31..2029df23 100644 --- a/test/fixers/test_rubocop_fixer_callback.vader +++ b/test/fixers/test_rubocop_fixer_callback.vader @@ -17,7 +17,7 @@ After: call ale#test#RestoreDirectory() Execute(The rubocop callback should return the correct default values): - call ale#test#SetFilename('ruby_paths/dummy.rb') + call ale#test#SetFilename('../test-files/ruby/dummy.rb') AssertEqual \ { @@ -28,26 +28,26 @@ Execute(The rubocop callback should return the correct default values): \ ale#fixers#rubocop#Fix(bufnr('')) Execute(The rubocop callback should include configuration files): - call ale#test#SetFilename('ruby_paths/with_config/dummy.rb') + call ale#test#SetFilename('../test-files/ruby/with_config/dummy.rb') AssertEqual \ { \ 'process_with': 'ale#fixers#rubocop#PostProcess', \ 'command': ale#Escape(g:ale_ruby_rubocop_executable) - \ . ' --config ' . ale#Escape(ale#path#Simplify(g:dir . '/ruby_paths/with_config/.rubocop.yml')) + \ . ' --config ' . ale#Escape(ale#path#Simplify(g:dir . '/../test-files/ruby/with_config/.rubocop.yml')) \ . ' --auto-correct --force-exclusion --stdin %s', \ }, \ ale#fixers#rubocop#Fix(bufnr('')) Execute(The rubocop callback should include custom rubocop options): let g:ale_ruby_rubocop_options = '--except Lint/Debugger' - call ale#test#SetFilename('ruby_paths/with_config/dummy.rb') + call ale#test#SetFilename('../test-files/ruby/with_config/dummy.rb') AssertEqual \ { \ 'process_with': 'ale#fixers#rubocop#PostProcess', \ 'command': ale#Escape(g:ale_ruby_rubocop_executable) - \ . ' --config ' . ale#Escape(ale#path#Simplify(g:dir . '/ruby_paths/with_config/.rubocop.yml')) + \ . ' --config ' . ale#Escape(ale#path#Simplify(g:dir . '/../test-files/ruby/with_config/.rubocop.yml')) \ . ' --except Lint/Debugger' \ . ' --auto-correct --force-exclusion --stdin %s', \ }, @@ -55,13 +55,13 @@ Execute(The rubocop callback should include custom rubocop options): Execute(The rubocop callback should use auto-correct-all option when set): let g:ale_ruby_rubocop_auto_correct_all = 1 - call ale#test#SetFilename('ruby_paths/with_config/dummy.rb') + call ale#test#SetFilename('../test-files/ruby/with_config/dummy.rb') AssertEqual \ { \ 'process_with': 'ale#fixers#rubocop#PostProcess', \ 'command': ale#Escape(g:ale_ruby_rubocop_executable) - \ . ' --config ' . ale#Escape(ale#path#Simplify(g:dir . '/ruby_paths/with_config/.rubocop.yml')) + \ . ' --config ' . ale#Escape(ale#path#Simplify(g:dir . '/../test-files/ruby/with_config/.rubocop.yml')) \ . ' --auto-correct-all --force-exclusion --stdin %s' \ }, \ ale#fixers#rubocop#Fix(bufnr('')) diff --git a/test/fixers/test_rufo_fixer_callback.vader b/test/fixers/test_rufo_fixer_callback.vader index 98108efc..54361784 100644 --- a/test/fixers/test_rufo_fixer_callback.vader +++ b/test/fixers/test_rufo_fixer_callback.vader @@ -14,14 +14,14 @@ After: Execute(The rufo command should contain `bundle exec` when executable is `bundle`): let g:ale_ruby_rufo_executable = 'bundle' - call ale#test#SetFilename('ruby_paths/dummy.rb') + call ale#test#SetFilename('../test-files/ruby/dummy.rb') AssertEqual \ ale#Escape('bundle') . ' exec rufo %t', \ ale#fixers#rufo#GetCommand(bufnr('')) Execute(The rufo callback should return the correct default values): - call ale#test#SetFilename('ruby_paths/dummy.rb') + call ale#test#SetFilename('../test-files/ruby/dummy.rb') AssertEqual \ { diff --git a/test/fixers/test_rustfmt_fixer_callback.vader b/test/fixers/test_rustfmt_fixer_callback.vader index 95c78dea..98761c94 100644 --- a/test/fixers/test_rustfmt_fixer_callback.vader +++ b/test/fixers/test_rustfmt_fixer_callback.vader @@ -1,34 +1,16 @@ Before: - Save g:ale_rust_rustfmt_executable - Save g:ale_rust_rustfmt_options - - " Use an invalid global executable, so we don't match it. - let g:ale_rust_rustfmt_executable = 'xxxinvalid' - let g:ale_rust_rustfmt_options = '' - - call ale#test#SetDirectory('/testplugin/test/fixers') + call ale#assert#SetUpFixerTest('rust', 'rustfmt') After: - Restore - - call ale#test#RestoreDirectory() + call ale#assert#TearDownFixerTest() Execute(The rustfmt callback should return the correct default values): - call ale#test#SetFilename('../rust_files/testfile.rs') + call ale#test#SetFilename('../test-files/rust/testfile.rs') - AssertEqual - \ { - \ 'command': ale#Escape('xxxinvalid'), - \ }, - \ ale#fixers#rustfmt#Fix(bufnr('')) + AssertFixer {'command': ale#Escape('rustfmt')} Execute(The rustfmt callback should include custom rustfmt options): let g:ale_rust_rustfmt_options = "--skip-children" - call ale#test#SetFilename('../rust_files/testfile.rs') + call ale#test#SetFilename('../test-files/rust/testfile.rs') - AssertEqual - \ { - \ 'command': ale#Escape('xxxinvalid') - \ . ' ' . g:ale_rust_rustfmt_options, - \ }, - \ ale#fixers#rustfmt#Fix(bufnr('')) + AssertFixer {'command': ale#Escape('rustfmt') . ' ' . g:ale_rust_rustfmt_options} diff --git a/test/fixers/test_scalafmt_fixer_callback.vader b/test/fixers/test_scalafmt_fixer_callback.vader index d82fda43..94f544a1 100644 --- a/test/fixers/test_scalafmt_fixer_callback.vader +++ b/test/fixers/test_scalafmt_fixer_callback.vader @@ -17,7 +17,7 @@ After: call ale#test#RestoreDirectory() Execute(The scalafmt callback should return the correct default values): - call ale#test#SetFilename('scala_paths/dummy.scala') + call ale#test#SetFilename('../test-files/scala/dummy.scala') AssertEqual \ { @@ -29,7 +29,7 @@ Execute(The scalafmt callback should return the correct default values): Execute(The scalafmt callback should use ng with scalafmt automatically): let g:ale_scala_scalafmt_executable = 'ng' - call ale#test#SetFilename('scala_paths/dummy.scala') + call ale#test#SetFilename('../test-files/scala/dummy.scala') AssertEqual \ { @@ -42,7 +42,7 @@ Execute(The scalafmt callback should use ng with scalafmt automatically): Execute(The scalafmt callback should include custom scalafmt options): let g:ale_scala_scalafmt_options = '--diff' - call ale#test#SetFilename('scala_paths/dummy.scala') + call ale#test#SetFilename('../test-files/scala/dummy.scala') AssertEqual \ { @@ -56,7 +56,7 @@ Execute(The scalafmt callback should include custom scalafmt options): Execute(The scalafmt callback should include custom scalafmt options and use ng with scalafmt): let g:ale_scala_scalafmt_options = '--diff' let g:ale_scala_scalafmt_executable = 'ng' - call ale#test#SetFilename('scala_paths/dummy.scala') + call ale#test#SetFilename('../test-files/scala/dummy.scala') AssertEqual \ { diff --git a/test/fixers/test_sorbet_fixer_callback.vader b/test/fixers/test_sorbet_fixer_callback.vader index 71870e4c..deb2b4e0 100644 --- a/test/fixers/test_sorbet_fixer_callback.vader +++ b/test/fixers/test_sorbet_fixer_callback.vader @@ -18,7 +18,7 @@ After: call ale#test#RestoreDirectory() Execute(The sorbet callback should return the correct default values): - call ale#test#SetFilename('ruby_paths/dummy.rb') + call ale#test#SetFilename('../test-files/ruby/dummy.rb') AssertEqual \ { @@ -30,7 +30,7 @@ Execute(The sorbet callback should return the correct default values): Execute(The sorbet callback should include custom sorbet options): let g:ale_ruby_sorbet_options = '--enable-experimental-lsp-hover' - call ale#test#SetFilename('ruby_paths/with_config/dummy.rb') + call ale#test#SetFilename('../test-files/ruby/with_config/dummy.rb') AssertEqual \ { diff --git a/test/fixers/test_standard_fixer_callback.vader b/test/fixers/test_standard_fixer_callback.vader index f5e9c487..9f5eb0e9 100644 --- a/test/fixers/test_standard_fixer_callback.vader +++ b/test/fixers/test_standard_fixer_callback.vader @@ -8,13 +8,13 @@ After: call ale#test#RestoreDirectory() Execute(The executable path should be correct): - call ale#test#SetFilename('../eslint-test-files/react-app/subdir/testfile.js') + call ale#test#SetFilename('../test-files/eslint/react-app/subdir/testfile.js') AssertEqual \ { \ 'read_temporary_file': 1, \ 'command': (has('win32') ? 'node.exe ' : '') - \ . ale#Escape(ale#path#Simplify(g:dir . '/../eslint-test-files/react-app/node_modules/standard/bin/cmd.js')) + \ . ale#Escape(ale#path#Simplify(g:dir . '/../test-files/eslint/react-app/node_modules/standard/bin/cmd.js')) \ . ' --fix --stdin < %s > %t', \ }, \ ale#fixers#standard#Fix(bufnr('')) diff --git a/test/fixers/test_standardrb_fixer_callback.vader b/test/fixers/test_standardrb_fixer_callback.vader index d315651f..31684c29 100644 --- a/test/fixers/test_standardrb_fixer_callback.vader +++ b/test/fixers/test_standardrb_fixer_callback.vader @@ -17,7 +17,7 @@ After: call ale#test#RestoreDirectory() Execute(The standardrb callback should return the correct default values): - call ale#test#SetFilename('ruby_paths/dummy.rb') + call ale#test#SetFilename('../test-files/ruby/dummy.rb') AssertEqual \ { @@ -28,26 +28,26 @@ Execute(The standardrb callback should return the correct default values): \ ale#fixers#standardrb#Fix(bufnr('')) Execute(The standardrb callback should include configuration files): - call ale#test#SetFilename('ruby_paths/with_config/dummy.rb') + call ale#test#SetFilename('../test-files/ruby/with_config/dummy.rb') AssertEqual \ { \ 'process_with': 'ale#fixers#rubocop#PostProcess', \ 'command': ale#Escape(g:ale_ruby_standardrb_executable) - \ . ' --config ' . ale#Escape(ale#path#Simplify(g:dir . '/ruby_paths/with_config/.standard.yml')) + \ . ' --config ' . ale#Escape(ale#path#Simplify(g:dir . '/../test-files/ruby/with_config/.standard.yml')) \ . ' --fix --force-exclusion --stdin %s', \ }, \ ale#fixers#standardrb#Fix(bufnr('')) Execute(The standardrb callback should include custom rubocop options): let g:ale_ruby_standardrb_options = '--except Lint/Debugger' - call ale#test#SetFilename('ruby_paths/with_config/dummy.rb') + call ale#test#SetFilename('../test-files/ruby/with_config/dummy.rb') AssertEqual \ { \ 'process_with': 'ale#fixers#rubocop#PostProcess', \ 'command': ale#Escape(g:ale_ruby_standardrb_executable) - \ . ' --config ' . ale#Escape(ale#path#Simplify(g:dir . '/ruby_paths/with_config/.standard.yml')) + \ . ' --config ' . ale#Escape(ale#path#Simplify(g:dir . '/../test-files/ruby/with_config/.standard.yml')) \ . ' --except Lint/Debugger' \ . ' --fix --force-exclusion --stdin %s', \ }, diff --git a/test/fixers/test_stylelint_fixer_callback.vader b/test/fixers/test_stylelint_fixer_callback.vader index 95f91f91..3c843975 100644 --- a/test/fixers/test_stylelint_fixer_callback.vader +++ b/test/fixers/test_stylelint_fixer_callback.vader @@ -9,28 +9,28 @@ After: call ale#assert#TearDownFixerTest() Execute(The stylelint callback should return the correct default values): - call ale#test#SetFilename('../eslint-test-files/react-app/subdir/testfile.css') + call ale#test#SetFilename('../test-files/eslint/react-app/subdir/testfile.css') AssertFixer \ { \ 'read_temporary_file': 1, \ 'cwd': '%s:h', \ 'command': (has('win32') ? 'node.exe ' : '') - \ . ale#Escape(ale#path#Simplify(g:dir . '/../eslint-test-files/react-app/node_modules/stylelint/bin/stylelint.js')) + \ . ale#Escape(ale#path#Simplify(g:dir . '/../test-files/eslint/react-app/node_modules/stylelint/bin/stylelint.js')) \ . ' %t' \ . ' --fix', \ } Execute(The stylelint callback should include custom stylelint options): let g:ale_stylelint_options = '--cache' - call ale#test#SetFilename('../eslint-test-files/react-app/subdir/testfile.css') + call ale#test#SetFilename('../test-files/eslint/react-app/subdir/testfile.css') AssertFixer \ { \ 'read_temporary_file': 1, \ 'cwd': '%s:h', \ 'command': (has('win32') ? 'node.exe ' : '') - \ . ale#Escape(ale#path#Simplify(g:dir . '/../eslint-test-files/react-app/node_modules/stylelint/bin/stylelint.js')) + \ . ale#Escape(ale#path#Simplify(g:dir . '/../test-files/eslint/react-app/node_modules/stylelint/bin/stylelint.js')) \ . ' %t' \ . ' --cache' \ . ' --fix', diff --git a/test/fixers/test_swiftformat_fixer_callback.vader b/test/fixers/test_swiftformat_fixer_callback.vader index e3674ded..d307c2b1 100644 --- a/test/fixers/test_swiftformat_fixer_callback.vader +++ b/test/fixers/test_swiftformat_fixer_callback.vader @@ -15,7 +15,7 @@ After: call ale#test#RestoreDirectory() Execute(The swiftformat callback should return the correct default values): - call ale#test#SetFilename('swift_paths/dummy.swift') + call ale#test#SetFilename('../test-files/swift/dummy.swift') AssertEqual \ { @@ -26,7 +26,7 @@ Execute(The swiftformat callback should return the correct default values): \ ale#fixers#swiftformat#Fix(bufnr('')) Execute(The swiftformat callback should include any additional options): - call ale#test#SetFilename('swift_paths/dummy.swift') + call ale#test#SetFilename('../test-files/swift/dummy.swift') let g:ale_swift_swiftformat_options = '--some-option' AssertEqual diff --git a/test/fixers/test_textlint_fixer_callback.vader b/test/fixers/test_textlint_fixer_callback.vader index 2848cfa5..5b6c5b7a 100644 --- a/test/fixers/test_textlint_fixer_callback.vader +++ b/test/fixers/test_textlint_fixer_callback.vader @@ -16,7 +16,7 @@ After: call ale#test#RestoreDirectory() Execute(The textlint callback should return the correct default values): - call ale#test#SetFilename('../markdown_files/testfile.md') + call ale#test#SetFilename('../test-files/markdown/testfile.md') AssertEqual \ { @@ -29,7 +29,7 @@ Execute(The textlint callback should return the correct default values): Execute(The textlint callback should include custom textlint options): let g:ale_textlint_options = "--quiet" - call ale#test#SetFilename('../markdown_files/testfile.md') + call ale#test#SetFilename('../test-files/markdown/testfile.md') AssertEqual \ { diff --git a/test/fixers/test_tidy_fixer_callback.vader b/test/fixers/test_tidy_fixer_callback.vader index 5677d8fd..a588d75e 100644 --- a/test/fixers/test_tidy_fixer_callback.vader +++ b/test/fixers/test_tidy_fixer_callback.vader @@ -1,7 +1,7 @@ Before: Save g:ale_html_tidy_executable - let g:ale_html_tidy_executable = 'tidy_paths/tidy' + let g:ale_html_tidy_executable = '../test-files/tidy/tidy' call ale#test#SetDirectory('/testplugin/test/fixers') @@ -23,7 +23,7 @@ Execute(The tidy callback should return 0 if tidy not found): Execute(The tidy callback should return the correct default command): AssertEqual \ { - \ 'command': ale#Escape('tidy_paths/tidy') + \ 'command': ale#Escape('../test-files/tidy/tidy') \ . ' -q --tidy-mark no --show-errors 0 --show-warnings 0' \ }, \ ale#fixers#tidy#Fix(bufnr('')) diff --git a/test/fixers/test_tslint_fixer_callback.vader b/test/fixers/test_tslint_fixer_callback.vader index a88992fa..2bcbddf7 100644 --- a/test/fixers/test_tslint_fixer_callback.vader +++ b/test/fixers/test_tslint_fixer_callback.vader @@ -20,7 +20,7 @@ After: Execute(The tslint callback should return the correct default values): let g:ale_typescript_tslint_config_path = 'tslint.json' - call ale#test#SetFilename('../prettier-test-files/testfile.ts') + call ale#test#SetFilename('../test-files/prettier/testfile.ts') AssertEqual \ { @@ -33,7 +33,7 @@ Execute(The tslint callback should return the correct default values): Execute(The tslint callback should include custom tslint config option): let g:ale_typescript_tslint_config_path = '.tslintrc' - call ale#test#SetFilename('../prettier-test-files/testfile.ts') + call ale#test#SetFilename('../test-files/prettier/testfile.ts') AssertEqual \ { diff --git a/test/fixers/test_uncrustify_fixer_callback.vader b/test/fixers/test_uncrustify_fixer_callback.vader index 8ef4e79b..6c7f6b5d 100644 --- a/test/fixers/test_uncrustify_fixer_callback.vader +++ b/test/fixers/test_uncrustify_fixer_callback.vader @@ -15,7 +15,7 @@ After: call ale#test#RestoreDirectory() Execute(The clang-format callback should return the correct default values): - call ale#test#SetFilename('c_paths/dummy.c') + call ale#test#SetFilename('../test-files/c/dummy.c') AssertEqual \ { @@ -25,7 +25,7 @@ Execute(The clang-format callback should return the correct default values): \ ale#fixers#uncrustify#Fix(bufnr('')) Execute(The uncrustify callback should include any additional options): - call ale#test#SetFilename('c_paths/dummy.c') + call ale#test#SetFilename('../test-files/c/dummy.c') let b:ale_c_uncrustify_options = '--some-option' AssertEqual diff --git a/test/fixers/test_xo_fixer_callback.vader b/test/fixers/test_xo_fixer_callback.vader index a473606e..fe2da8cc 100644 --- a/test/fixers/test_xo_fixer_callback.vader +++ b/test/fixers/test_xo_fixer_callback.vader @@ -7,38 +7,38 @@ After: call ale#assert#TearDownFixerTest() Execute(The xo callback should return the correct default values): - call ale#test#SetFilename('../xo-test-files/monorepo/packages/a/index.js') + call ale#test#SetFilename('../test-files/xo/monorepo/packages/a/index.js') AssertFixer \ { \ 'read_temporary_file': 1, \ 'command': (has('win32') ? 'node.exe ' : '') - \ . ale#Escape(ale#path#Simplify(g:dir . '/../xo-test-files/monorepo/node_modules/xo/cli.js')) + \ . ale#Escape(ale#path#Simplify(g:dir . '/../test-files/xo/monorepo/node_modules/xo/cli.js')) \ . ' --fix %t', \ } Execute(The xo callback should include custom xo options): let g:ale_javascript_xo_options = '--space' - call ale#test#SetFilename('../xo-test-files/monorepo/packages/a/index.js') + call ale#test#SetFilename('../test-files/xo/monorepo/packages/a/index.js') AssertFixer \ { \ 'read_temporary_file': 1, \ 'command': (has('win32') ? 'node.exe ' : '') - \ . ale#Escape(ale#path#Simplify(g:dir . '/../xo-test-files/monorepo/node_modules/xo/cli.js')) + \ . ale#Escape(ale#path#Simplify(g:dir . '/../test-files/xo/monorepo/node_modules/xo/cli.js')) \ . ' --fix %t' \ . ' --space', \ } Execute(--stdin should be used when xo is new enough): let g:ale_javascript_xo_options = '--space' - call ale#test#SetFilename('../xo-test-files/monorepo/packages/a/index.js') + call ale#test#SetFilename('../test-files/xo/monorepo/packages/a/index.js') GivenCommandOutput ['0.30.0'] AssertFixer \ { \ 'command': (has('win32') ? 'node.exe ' : '') - \ . ale#Escape(ale#path#Simplify(g:dir . '/../xo-test-files/monorepo/node_modules/xo/cli.js')) + \ . ale#Escape(ale#path#Simplify(g:dir . '/../test-files/xo/monorepo/node_modules/xo/cli.js')) \ . ' --stdin --stdin-filename %s' \ . ' --fix' \ . ' --space', diff --git a/test/fixers/test_xots_fixer_callback.vader b/test/fixers/test_xots_fixer_callback.vader index 5c7fa1d1..61a22e62 100644 --- a/test/fixers/test_xots_fixer_callback.vader +++ b/test/fixers/test_xots_fixer_callback.vader @@ -7,38 +7,38 @@ After: call ale#assert#TearDownFixerTest() Execute(The xo callback should return the correct default values): - call ale#test#SetFilename('../xo-test-files/monorepo/packages/a/index.ts') + call ale#test#SetFilename('../test-files/xo/monorepo/packages/a/index.ts') AssertFixer \ { \ 'read_temporary_file': 1, \ 'command': (has('win32') ? 'node.exe ' : '') - \ . ale#Escape(ale#path#Simplify(g:dir . '/../xo-test-files/monorepo/node_modules/xo/cli.js')) + \ . ale#Escape(ale#path#Simplify(g:dir . '/../test-files/xo/monorepo/node_modules/xo/cli.js')) \ . ' --fix %t', \ } Execute(The xo callback should include custom xo options): let g:ale_typescript_xo_options = '--space' - call ale#test#SetFilename('../xo-test-files/monorepo/packages/a/index.ts') + call ale#test#SetFilename('../test-files/xo/monorepo/packages/a/index.ts') AssertFixer \ { \ 'read_temporary_file': 1, \ 'command': (has('win32') ? 'node.exe ' : '') - \ . ale#Escape(ale#path#Simplify(g:dir . '/../xo-test-files/monorepo/node_modules/xo/cli.js')) + \ . ale#Escape(ale#path#Simplify(g:dir . '/../test-files/xo/monorepo/node_modules/xo/cli.js')) \ . ' --fix %t' \ . ' --space', \ } Execute(--stdin should be used when xo is new enough): let g:ale_typescript_xo_options = '--space' - call ale#test#SetFilename('../xo-test-files/monorepo/packages/a/index.ts') + call ale#test#SetFilename('../test-files/xo/monorepo/packages/a/index.ts') GivenCommandOutput ['0.30.0'] AssertFixer \ { \ 'command': (has('win32') ? 'node.exe ' : '') - \ . ale#Escape(ale#path#Simplify(g:dir . '/../xo-test-files/monorepo/node_modules/xo/cli.js')) + \ . ale#Escape(ale#path#Simplify(g:dir . '/../test-files/xo/monorepo/node_modules/xo/cli.js')) \ . ' --stdin --stdin-filename %s' \ . ' --fix' \ . ' --space', diff --git a/test/fixers/test_yamlfix_fixer_callback.vader b/test/fixers/test_yamlfix_fixer_callback.vader index 75b9f0ad..4038de16 100644 --- a/test/fixers/test_yamlfix_fixer_callback.vader +++ b/test/fixers/test_yamlfix_fixer_callback.vader @@ -16,22 +16,22 @@ Execute(The yamlfix callback should return the correct default values): \ 0, \ ale#fixers#yamlfix#Fix(bufnr('')) - silent execute 'file ' . fnameescape(g:dir . '/python_paths/with_virtualenv/subdir/foo/bar.yaml') + silent execute 'file ' . fnameescape(g:dir . '/../test-files/python/with_virtualenv/subdir/foo/bar.yaml') AssertEqual \ { \ 'cwd': '%s:h', - \ 'command': ale#Escape(ale#path#Simplify(g:dir . '/python_paths/with_virtualenv/env/' . b:bin_dir . '/yamlfix')) . ' -', + \ 'command': ale#Escape(ale#path#Simplify(g:dir . '/../test-files/python/with_virtualenv/env/' . b:bin_dir . '/yamlfix')) . ' -', \ }, \ ale#fixers#yamlfix#Fix(bufnr('')) Execute(The yamlfix callback should respect custom options): let g:ale_yaml_yamlfix_options = '--multi-line=3 --trailing-comma' - silent execute 'file ' . fnameescape(g:dir . '/python_paths/with_virtualenv/subdir/foo/bar.yaml') + silent execute 'file ' . fnameescape(g:dir . '/../test-files/python/with_virtualenv/subdir/foo/bar.yaml') AssertEqual \ { \ 'cwd': '%s:h', - \ 'command': ale#Escape(ale#path#Simplify(g:dir . '/python_paths/with_virtualenv/env/' . b:bin_dir . '/yamlfix')) + \ 'command': ale#Escape(ale#path#Simplify(g:dir . '/../test-files/python/with_virtualenv/env/' . b:bin_dir . '/yamlfix')) \ . ' --multi-line=3 --trailing-comma -', \ }, \ ale#fixers#yamlfix#Fix(bufnr('')) diff --git a/test/fixers/test_yapf_fixer_callback.vader b/test/fixers/test_yapf_fixer_callback.vader index cfc508cc..2f7a12b7 100644 --- a/test/fixers/test_yapf_fixer_callback.vader +++ b/test/fixers/test_yapf_fixer_callback.vader @@ -23,20 +23,20 @@ Execute(The yapf callback should return the correct default values): \ 0, \ ale#fixers#yapf#Fix(bufnr('')) - call ale#test#SetFilename('python_paths/with_virtualenv/subdir/foo/bar.py') + call ale#test#SetFilename('../test-files/python/with_virtualenv/subdir/foo/bar.py') AssertEqual - \ {'command': ale#Escape(ale#path#Simplify(g:dir . '/python_paths/with_virtualenv/env/' . b:bin_dir . '/yapf'))}, + \ {'command': ale#Escape(ale#path#Simplify(g:dir . '/../test-files/python/with_virtualenv/env/' . b:bin_dir . '/yapf'))}, \ ale#fixers#yapf#Fix(bufnr('')) \ Execute(The yapf should include the .style.yapf file if present): - call ale#test#SetFilename('python_paths/with_virtualenv/dir_with_yapf_config/foo/bar.py') + call ale#test#SetFilename('../test-files/python/with_virtualenv/dir_with_yapf_config/foo/bar.py') AssertEqual \ { \ 'command': - \ ale#Escape(ale#path#Simplify(g:dir . '/python_paths/with_virtualenv/env/' . b:bin_dir . '/yapf')) + \ ale#Escape(ale#path#Simplify(g:dir . '/../test-files/python/with_virtualenv/env/' . b:bin_dir . '/yapf')) \ . ' --no-local-style' - \ . ' --style ' . ale#Escape(ale#path#Simplify(g:dir . '/python_paths/with_virtualenv/dir_with_yapf_config/.style.yapf')), + \ . ' --style ' . ale#Escape(ale#path#Simplify(g:dir . '/../test-files/python/with_virtualenv/dir_with_yapf_config/.style.yapf')), \ }, \ ale#fixers#yapf#Fix(bufnr('')) diff --git a/test/flow/a/.flowconfig b/test/flow/a/.flowconfig deleted file mode 100644 index e69de29b..00000000 diff --git a/test/flow/a/sub/dummy b/test/flow/a/sub/dummy deleted file mode 100644 index e69de29b..00000000 diff --git a/test/flow/b/sub/dummy b/test/flow/b/sub/dummy deleted file mode 100644 index e69de29b..00000000 diff --git a/test/go_files/go.mod b/test/go_files/go.mod deleted file mode 100644 index 8b137891..00000000 --- a/test/go_files/go.mod +++ /dev/null @@ -1 +0,0 @@ - diff --git a/test/go_files/testfile.go b/test/go_files/testfile.go deleted file mode 100644 index e69de29b..00000000 diff --git a/test/go_files/testfile2.go b/test/go_files/testfile2.go deleted file mode 100644 index e69de29b..00000000 diff --git a/test/gradle-test-files/build-gradle-project/build.gradle b/test/gradle-test-files/build-gradle-project/build.gradle deleted file mode 100644 index e69de29b..00000000 diff --git a/test/gradle-test-files/build-gradle-project/src/main/kotlin/dummy.kt b/test/gradle-test-files/build-gradle-project/src/main/kotlin/dummy.kt deleted file mode 100644 index e69de29b..00000000 diff --git a/test/gradle-test-files/gradle b/test/gradle-test-files/gradle deleted file mode 100755 index e69de29b..00000000 diff --git a/test/gradle-test-files/non-gradle-project/src/main/kotlin/dummy.kt b/test/gradle-test-files/non-gradle-project/src/main/kotlin/dummy.kt deleted file mode 100644 index e69de29b..00000000 diff --git a/test/gradle-test-files/settings-gradle-project/settings.gradle b/test/gradle-test-files/settings-gradle-project/settings.gradle deleted file mode 100644 index e69de29b..00000000 diff --git a/test/gradle-test-files/settings-gradle-project/src/main/kotlin/dummy.kt b/test/gradle-test-files/settings-gradle-project/src/main/kotlin/dummy.kt deleted file mode 100644 index e69de29b..00000000 diff --git a/test/gradle-test-files/unwrapped-project/build.gradle b/test/gradle-test-files/unwrapped-project/build.gradle deleted file mode 100644 index e69de29b..00000000 diff --git a/test/gradle-test-files/unwrapped-project/settings.gradle b/test/gradle-test-files/unwrapped-project/settings.gradle deleted file mode 100644 index e69de29b..00000000 diff --git a/test/gradle-test-files/unwrapped-project/src/main/kotlin/dummy.kt b/test/gradle-test-files/unwrapped-project/src/main/kotlin/dummy.kt deleted file mode 100644 index e69de29b..00000000 diff --git a/test/gradle-test-files/wrapped-project/build.gradle b/test/gradle-test-files/wrapped-project/build.gradle deleted file mode 100644 index e69de29b..00000000 diff --git a/test/gradle-test-files/wrapped-project/gradlew b/test/gradle-test-files/wrapped-project/gradlew deleted file mode 100644 index e69de29b..00000000 diff --git a/test/gradle-test-files/wrapped-project/settings.gradle b/test/gradle-test-files/wrapped-project/settings.gradle deleted file mode 100644 index e69de29b..00000000 diff --git a/test/gradle-test-files/wrapped-project/src/main/kotlin/dummy.kt b/test/gradle-test-files/wrapped-project/src/main/kotlin/dummy.kt deleted file mode 100644 index e69de29b..00000000 diff --git a/test/hamllint-test-files/haml-lint-and-rubocop/.haml-lint.yml b/test/hamllint-test-files/haml-lint-and-rubocop/.haml-lint.yml deleted file mode 100644 index e69de29b..00000000 diff --git a/test/hamllint-test-files/haml-lint-and-rubocop/.rubocop.yml b/test/hamllint-test-files/haml-lint-and-rubocop/.rubocop.yml deleted file mode 100644 index e69de29b..00000000 diff --git a/test/hamllint-test-files/haml-lint-and-rubocop/subdir/file.haml b/test/hamllint-test-files/haml-lint-and-rubocop/subdir/file.haml deleted file mode 100644 index e69de29b..00000000 diff --git a/test/hamllint-test-files/haml-lint-yml/.haml-lint.yml b/test/hamllint-test-files/haml-lint-yml/.haml-lint.yml deleted file mode 100644 index e69de29b..00000000 diff --git a/test/hamllint-test-files/haml-lint-yml/subdir/file.haml b/test/hamllint-test-files/haml-lint-yml/subdir/file.haml deleted file mode 100644 index e69de29b..00000000 diff --git a/test/hamllint-test-files/rubocop-yml/.rubocop.yml b/test/hamllint-test-files/rubocop-yml/.rubocop.yml deleted file mode 100644 index e69de29b..00000000 diff --git a/test/hamllint-test-files/rubocop-yml/subdir/file.haml b/test/hamllint-test-files/rubocop-yml/subdir/file.haml deleted file mode 100644 index e69de29b..00000000 diff --git a/test/handler/test_brakeman_handler.vader b/test/handler/test_brakeman_handler.vader index 02eb31b0..ad5376f7 100644 --- a/test/handler/test_brakeman_handler.vader +++ b/test/handler/test_brakeman_handler.vader @@ -8,7 +8,7 @@ After: call ale#linter#Reset() Execute(The brakeman handler should parse JSON correctly): - call ale#test#SetFilename('../ruby_fixtures/valid_rails_app/app/models/thing.rb') + call ale#test#SetFilename('../test-files/ruby/valid_rails_app/app/models/thing.rb') AssertEqual \ [ diff --git a/test/handler/test_lacheck_handler.vader b/test/handler/test_lacheck_handler.vader index 0bcc3be8..5a4f92dd 100644 --- a/test/handler/test_lacheck_handler.vader +++ b/test/handler/test_lacheck_handler.vader @@ -8,7 +8,7 @@ After: Execute(The lacheck handler should parse lines correctly): - call ale#test#SetFilename('command_callback/tex_paths/sample1.tex') + call ale#test#SetFilename('command_callback/../test-files/tex/sample1.tex') AssertEqual \ [ diff --git a/test/handler/test_rails_best_practices_handler.vader b/test/handler/test_rails_best_practices_handler.vader index 9875e977..f6d69eee 100644 --- a/test/handler/test_rails_best_practices_handler.vader +++ b/test/handler/test_rails_best_practices_handler.vader @@ -9,7 +9,7 @@ After: call ale#linter#Reset() Execute(The rails_best_practices handler should parse JSON correctly): - call ale#test#SetFilename('ruby_fixtures/valid_rails_app/app/models/thing.rb') + call ale#test#SetFilename('test-files/ruby/valid_rails_app/app/models/thing.rb') AssertEqual \ [ diff --git a/test/handler/test_terraform_handler.vader b/test/handler/test_terraform_handler.vader index 73730b0b..d054cb3b 100644 --- a/test/handler/test_terraform_handler.vader +++ b/test/handler/test_terraform_handler.vader @@ -1,7 +1,7 @@ Before: " Load the file which defines the linter. runtime ale_linters/terraform/terraform.vim - call ale#test#SetDirectory('/testplugin/test/terraform_files') + call ale#test#SetDirectory('/testplugin/test/test-files/terraform') call ale#test#SetFilename('providers.tf') After: diff --git a/test/javascript_files/test.js b/test/javascript_files/test.js deleted file mode 100644 index e69de29b..00000000 diff --git a/test/json_files/testfile.json b/test/json_files/testfile.json deleted file mode 100644 index fe317ebb..00000000 --- a/test/json_files/testfile.json +++ /dev/null @@ -1 +0,0 @@ -{"answer":42} diff --git a/test/jsonlint-test-files/app-without-jsonlint/src/app.json b/test/jsonlint-test-files/app-without-jsonlint/src/app.json deleted file mode 100644 index e69de29b..00000000 diff --git a/test/jsonlint-test-files/app/node_modules/.bin/jsonlint b/test/jsonlint-test-files/app/node_modules/.bin/jsonlint deleted file mode 100644 index e69de29b..00000000 diff --git a/test/jsonlint-test-files/app/src/app.json b/test/jsonlint-test-files/app/src/app.json deleted file mode 100644 index e69de29b..00000000 diff --git a/test/jsonlint-test-files/node_modules/jsonlint/lib/cli.js b/test/jsonlint-test-files/node_modules/jsonlint/lib/cli.js deleted file mode 100644 index e69de29b..00000000 diff --git a/test/kotlin_files/testfile.kt b/test/kotlin_files/testfile.kt deleted file mode 100644 index e69de29b..00000000 diff --git a/test/lua_files/testfile.lua b/test/lua_files/testfile.lua deleted file mode 100644 index e69de29b..00000000 diff --git a/test/markdown_files/testfile.md b/test/markdown_files/testfile.md deleted file mode 100644 index e69de29b..00000000 diff --git a/test/maven-test-files/maven-java-project/module1/mvnw b/test/maven-test-files/maven-java-project/module1/mvnw deleted file mode 100755 index e69de29b..00000000 diff --git a/test/maven-test-files/maven-java-project/module1/mvnw.cmd b/test/maven-test-files/maven-java-project/module1/mvnw.cmd deleted file mode 100755 index e69de29b..00000000 diff --git a/test/maven-test-files/maven-java-project/module1/pom.xml b/test/maven-test-files/maven-java-project/module1/pom.xml deleted file mode 100644 index 8b137891..00000000 --- a/test/maven-test-files/maven-java-project/module1/pom.xml +++ /dev/null @@ -1 +0,0 @@ - diff --git a/test/maven-test-files/maven-java-project/module1/src/main/java/dummy1.java b/test/maven-test-files/maven-java-project/module1/src/main/java/dummy1.java deleted file mode 100644 index e69de29b..00000000 diff --git a/test/maven-test-files/maven-java-project/module2/pom.xml b/test/maven-test-files/maven-java-project/module2/pom.xml deleted file mode 100644 index 8b137891..00000000 --- a/test/maven-test-files/maven-java-project/module2/pom.xml +++ /dev/null @@ -1 +0,0 @@ - diff --git a/test/maven-test-files/maven-java-project/module2/src/main/java/dummy2.java b/test/maven-test-files/maven-java-project/module2/src/main/java/dummy2.java deleted file mode 100644 index e69de29b..00000000 diff --git a/test/maven-test-files/maven-kotlin-project/pom.xml b/test/maven-test-files/maven-kotlin-project/pom.xml deleted file mode 100644 index 8b137891..00000000 --- a/test/maven-test-files/maven-kotlin-project/pom.xml +++ /dev/null @@ -1 +0,0 @@ - diff --git a/test/maven-test-files/maven-kotlin-project/src/main/kotlin/dummy.kt b/test/maven-test-files/maven-kotlin-project/src/main/kotlin/dummy.kt deleted file mode 100644 index 8b137891..00000000 --- a/test/maven-test-files/maven-kotlin-project/src/main/kotlin/dummy.kt +++ /dev/null @@ -1 +0,0 @@ - diff --git a/test/maven-test-files/mvn b/test/maven-test-files/mvn deleted file mode 100755 index e69de29b..00000000 diff --git a/test/maven-test-files/non-maven-project/src/main/java/dummy.java b/test/maven-test-files/non-maven-project/src/main/java/dummy.java deleted file mode 100644 index e69de29b..00000000 diff --git a/test/nim-test-files/with-git/src/source.nim b/test/nim-test-files/with-git/src/source.nim deleted file mode 100644 index e69de29b..00000000 diff --git a/test/nix/test.nix b/test/nix/test.nix deleted file mode 100644 index e69de29b..00000000 diff --git a/test/nix/test_rnix_lsp.vader b/test/nix/test_rnix_lsp.vader deleted file mode 100644 index bf62616b..00000000 --- a/test/nix/test_rnix_lsp.vader +++ /dev/null @@ -1,14 +0,0 @@ -" Author: jD91mZM2 -" Description: Tests for rnix-lsp language client - -Before: - call ale#assert#SetUpLinterTest('nix', 'rnix_lsp') - -After: - call ale#assert#TearDownLinterTest() - -Execute(should start rnix-lsp): - call ale#test#SetFilename('./test.nix') - AssertLSPLanguage 'nix' - AssertLSPOptions {} - AssertLSPProject ale#path#Simplify('.') diff --git a/test/ocaml-test-files/testfile.ml b/test/ocaml-test-files/testfile.ml deleted file mode 100644 index e69de29b..00000000 diff --git a/test/phpcs-test-files/project-with-phpcs/foo/test.php b/test/phpcs-test-files/project-with-phpcs/foo/test.php deleted file mode 100644 index e69de29b..00000000 diff --git a/test/phpcs-test-files/project-with-phpcs/vendor/bin/phpcs b/test/phpcs-test-files/project-with-phpcs/vendor/bin/phpcs deleted file mode 100644 index e69de29b..00000000 diff --git a/test/phpcs-test-files/project-without-phpcs/foo/test.php b/test/phpcs-test-files/project-without-phpcs/foo/test.php deleted file mode 100644 index e69de29b..00000000 diff --git a/test/prettier-test-files/testfile b/test/prettier-test-files/testfile deleted file mode 100644 index e69de29b..00000000 diff --git a/test/prettier-test-files/testfile.css b/test/prettier-test-files/testfile.css deleted file mode 100644 index e69de29b..00000000 diff --git a/test/prettier-test-files/testfile.js b/test/prettier-test-files/testfile.js deleted file mode 100644 index e69de29b..00000000 diff --git a/test/prettier-test-files/testfile.json b/test/prettier-test-files/testfile.json deleted file mode 100644 index e69de29b..00000000 diff --git a/test/prettier-test-files/testfile.scss b/test/prettier-test-files/testfile.scss deleted file mode 100644 index e69de29b..00000000 diff --git a/test/prettier-test-files/testfile.ts b/test/prettier-test-files/testfile.ts deleted file mode 100644 index e69de29b..00000000 diff --git a/test/prettier-test-files/with_config/.prettierrc b/test/prettier-test-files/with_config/.prettierrc deleted file mode 100644 index e69de29b..00000000 diff --git a/test/prettier-test-files/with_config/testfile.js b/test/prettier-test-files/with_config/testfile.js deleted file mode 100644 index e69de29b..00000000 diff --git a/test/prettier-test-files/with_prettierignore/.prettierignore b/test/prettier-test-files/with_prettierignore/.prettierignore deleted file mode 100644 index e69de29b..00000000 diff --git a/test/prettier-test-files/with_prettierignore/src/testfile.js b/test/prettier-test-files/with_prettierignore/src/testfile.js deleted file mode 100644 index e69de29b..00000000 diff --git a/test/puppet-test-files/new-style-module/lib/puppet/types/exampletype.rb b/test/puppet-test-files/new-style-module/lib/puppet/types/exampletype.rb deleted file mode 100644 index e69de29b..00000000 diff --git a/test/puppet-test-files/new-style-module/metadata.json b/test/puppet-test-files/new-style-module/metadata.json deleted file mode 100644 index e69de29b..00000000 diff --git a/test/puppet-test-files/new-style-module/template/template.epp b/test/puppet-test-files/new-style-module/template/template.epp deleted file mode 100644 index e69de29b..00000000 diff --git a/test/puppet-test-files/old-style-module/manifests/init.pp b/test/puppet-test-files/old-style-module/manifests/init.pp deleted file mode 100644 index e69de29b..00000000 diff --git a/test/puppet-test-files/old-style-module/templates/template.epp b/test/puppet-test-files/old-style-module/templates/template.epp deleted file mode 100644 index e69de29b..00000000 diff --git a/test/python-test-files/python-package-project/.flake8 b/test/python-test-files/python-package-project/.flake8 deleted file mode 100644 index e69de29b..00000000 diff --git a/test/python-test-files/python-package-project/package-name/module.py b/test/python-test-files/python-package-project/package-name/module.py deleted file mode 100644 index e69de29b..00000000 diff --git a/test/python_fixtures/pipenv/Pipfile.lock b/test/python_fixtures/pipenv/Pipfile.lock deleted file mode 100644 index e69de29b..00000000 diff --git a/test/reasonml_files/testfile.re b/test/reasonml_files/testfile.re deleted file mode 100644 index e69de29b..00000000 diff --git a/test/ruby_fixtures/not_a_rails_app/file.rb b/test/ruby_fixtures/not_a_rails_app/file.rb deleted file mode 100644 index e69de29b..00000000 diff --git a/test/ruby_fixtures/valid_rails_app/app/dummy.rb b/test/ruby_fixtures/valid_rails_app/app/dummy.rb deleted file mode 100644 index e69de29b..00000000 diff --git a/test/ruby_fixtures/valid_rails_app/app/models/thing.rb b/test/ruby_fixtures/valid_rails_app/app/models/thing.rb deleted file mode 100644 index e69de29b..00000000 diff --git a/test/ruby_fixtures/valid_rails_app/app/views/my_great_view.html.erb b/test/ruby_fixtures/valid_rails_app/app/views/my_great_view.html.erb deleted file mode 100644 index e69de29b..00000000 diff --git a/test/ruby_fixtures/valid_rails_app/config/dummy.rb b/test/ruby_fixtures/valid_rails_app/config/dummy.rb deleted file mode 100644 index e69de29b..00000000 diff --git a/test/ruby_fixtures/valid_rails_app/db/dummy.rb b/test/ruby_fixtures/valid_rails_app/db/dummy.rb deleted file mode 100644 index e69de29b..00000000 diff --git a/test/ruby_fixtures/valid_ruby_app1/Rakefile b/test/ruby_fixtures/valid_ruby_app1/Rakefile deleted file mode 100644 index e69de29b..00000000 diff --git a/test/ruby_fixtures/valid_ruby_app1/lib/file.rb b/test/ruby_fixtures/valid_ruby_app1/lib/file.rb deleted file mode 100644 index e69de29b..00000000 diff --git a/test/ruby_fixtures/valid_ruby_app2/Gemfile b/test/ruby_fixtures/valid_ruby_app2/Gemfile deleted file mode 100644 index e69de29b..00000000 diff --git a/test/ruby_fixtures/valid_ruby_app2/lib/file.rb b/test/ruby_fixtures/valid_ruby_app2/lib/file.rb deleted file mode 100644 index e69de29b..00000000 diff --git a/test/ruby_fixtures/valid_ruby_app3/.solargraph.yml b/test/ruby_fixtures/valid_ruby_app3/.solargraph.yml deleted file mode 100644 index e69de29b..00000000 diff --git a/test/ruby_fixtures/valid_ruby_app3/lib/file.rb b/test/ruby_fixtures/valid_ruby_app3/lib/file.rb deleted file mode 100644 index e69de29b..00000000 diff --git a/test/rust_files/testfile.rs b/test/rust_files/testfile.rs deleted file mode 100644 index e69de29b..00000000 diff --git a/test/scala_fixtures/invalid_sbt_project/Main.scala b/test/scala_fixtures/invalid_sbt_project/Main.scala deleted file mode 100644 index e69de29b..00000000 diff --git a/test/scala_fixtures/valid_sbt_project/Main.scala b/test/scala_fixtures/valid_sbt_project/Main.scala deleted file mode 100644 index e69de29b..00000000 diff --git a/test/scala_fixtures/valid_sbt_project/build.sbt b/test/scala_fixtures/valid_sbt_project/build.sbt deleted file mode 100644 index e69de29b..00000000 diff --git a/test/script/dumb_named_pipe_server.py b/test/script/dumb_named_pipe_server.py new file mode 100644 index 00000000..a77e538c --- /dev/null +++ b/test/script/dumb_named_pipe_server.py @@ -0,0 +1,42 @@ +""" +This Python script creates a named pipe server that does nothing but send its input +back to the client that connects to it. Only one argument must be given, the path +of a named pipe to bind to. +""" +import os +import socket +import sys + + +def main(): + if len(sys.argv) < 2: + sys.exit('You must specify a filepath') + + sock = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) + sock.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1) + if os.path.exists(sys.argv[1]): + os.remove(sys.argv[1]) + sock.bind(sys.argv[1]) + sock.listen(0) + + pid = os.fork() + + if pid: + print(pid) + sys.exit() + + while True: + connection = sock.accept()[0] + connection.settimeout(5) + + while True: + try: + connection.send(connection.recv(1024)) + except socket.timeout: + break + + connection.close() + + +if __name__ == "__main__": + main() diff --git a/test/script/dumb_tcp_client.py b/test/script/dumb_tcp_client.py new file mode 100644 index 00000000..3a728b02 --- /dev/null +++ b/test/script/dumb_tcp_client.py @@ -0,0 +1,33 @@ +""" +This is just a script for testing that the dumb TCP server actually works +correctly, for verifying that problems with tests are in Vim. Pass the +same port number given to the test server to check that it's working. +""" +import socket +import sys + + +def main(): + sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM) + result = sock.connect_ex(('127.0.0.1', int(sys.argv[1]))) + + if result: + sock.close() + sys.exit("Couldn't connect to the socket!") + + data_sent = 'x' * 1024 + + sock.send(data_sent) + data_received = sock.recv(1024) + + if data_sent != data_received: + sock.close() + sys.exit("Data sent didn't match data received.") + + sock.close() + + print("Everything was just fine.") + + +if __name__ == "__main__": + main() diff --git a/test/script/dumb_tcp_server.py b/test/script/dumb_tcp_server.py new file mode 100644 index 00000000..c15db65e --- /dev/null +++ b/test/script/dumb_tcp_server.py @@ -0,0 +1,40 @@ +""" +This Python script creates a TCP server that does nothing but send its input +back to the client that connects to it. Only one argument must be given, a port +to bind to. +""" +import os +import socket +import sys + + +def main(): + if len(sys.argv) < 2 or not sys.argv[1].isdigit(): + sys.exit('You must specify a port number') + + sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM) + sock.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1) + sock.bind(('127.0.0.1', int(sys.argv[1]))) + sock.listen(0) + + pid = os.fork() + + if pid: + print(pid) + sys.exit() + + while True: + connection = sock.accept()[0] + connection.settimeout(5) + + while True: + try: + connection.send(connection.recv(1024)) + except socket.timeout: + break + + connection.close() + + +if __name__ == "__main__": + main() diff --git a/test/slimlint-test-files/.rubocop.yml b/test/slimlint-test-files/.rubocop.yml deleted file mode 100644 index e69de29b..00000000 diff --git a/test/slimlint-test-files/subdir/file.slim b/test/slimlint-test-files/subdir/file.slim deleted file mode 100644 index e69de29b..00000000 diff --git a/test/smlnj/cm/foo.sml b/test/smlnj/cm/foo.sml deleted file mode 100644 index e69de29b..00000000 diff --git a/test/smlnj/cm/path/to/bar.sml b/test/smlnj/cm/path/to/bar.sml deleted file mode 100644 index e69de29b..00000000 diff --git a/test/smlnj/cm/sources.cm b/test/smlnj/cm/sources.cm deleted file mode 100644 index e69de29b..00000000 diff --git a/test/smlnj/file/qux.sml b/test/smlnj/file/qux.sml deleted file mode 100644 index e69de29b..00000000 diff --git a/test/swift-test-files/non-swift-package-project/src/folder/dummy.swift b/test/swift-test-files/non-swift-package-project/src/folder/dummy.swift deleted file mode 100644 index e69de29b..00000000 diff --git a/test/swift-test-files/swift-package-project/Package.swift b/test/swift-test-files/swift-package-project/Package.swift deleted file mode 100644 index e69de29b..00000000 diff --git a/test/swift-test-files/swift-package-project/src/folder/dummy.swift b/test/swift-test-files/swift-package-project/src/folder/dummy.swift deleted file mode 100644 index e69de29b..00000000 diff --git a/test/swiftlint-test-files/cocoapods-and-react-native/Pods/SwiftLint/swiftlint b/test/swiftlint-test-files/cocoapods-and-react-native/Pods/SwiftLint/swiftlint deleted file mode 100644 index e69de29b..00000000 diff --git a/test/swiftlint-test-files/cocoapods-and-react-native/ios/Pods/SwiftLint/swiftlint b/test/swiftlint-test-files/cocoapods-and-react-native/ios/Pods/SwiftLint/swiftlint deleted file mode 100644 index e69de29b..00000000 diff --git a/test/swiftlint-test-files/cocoapods/Pods/SwiftLint/swiftlint b/test/swiftlint-test-files/cocoapods/Pods/SwiftLint/swiftlint deleted file mode 100644 index e69de29b..00000000 diff --git a/test/swiftlint-test-files/react-native/ios/Pods/SwiftLint/swiftlint b/test/swiftlint-test-files/react-native/ios/Pods/SwiftLint/swiftlint deleted file mode 100644 index e69de29b..00000000 diff --git a/test/terraform_files/main.tf b/test/terraform_files/main.tf deleted file mode 100644 index e69de29b..00000000 diff --git a/test/test-files/.gitignore b/test/test-files/.gitignore new file mode 100644 index 00000000..7d6563e0 --- /dev/null +++ b/test/test-files/.gitignore @@ -0,0 +1,2 @@ +# Don't ignore hidden files for this directory +!.* diff --git a/test/test-files/ada/testfile.adb b/test/test-files/ada/testfile.adb new file mode 100644 index 00000000..e69de29b diff --git a/test/test-files/alex/node-modules-2/node_modules/alex/cli.js b/test/test-files/alex/node-modules-2/node_modules/alex/cli.js new file mode 100644 index 00000000..e69de29b diff --git a/test/test-files/alex/node-modules/node_modules/.bin/alex b/test/test-files/alex/node-modules/node_modules/.bin/alex new file mode 100644 index 00000000..e69de29b diff --git a/test/test-files/angular/node_modules/@angular/language-server/bin/ngserver b/test/test-files/angular/node_modules/@angular/language-server/bin/ngserver new file mode 100644 index 00000000..e69de29b diff --git a/test/test-files/angular/node_modules/@angular/language-service/dummy b/test/test-files/angular/node_modules/@angular/language-service/dummy new file mode 100644 index 00000000..e69de29b diff --git a/test/test-files/ant/ant-project/build.xml b/test/test-files/ant/ant-project/build.xml new file mode 100644 index 00000000..e69de29b diff --git a/test/test-files/ant/bin/ant b/test/test-files/ant/bin/ant new file mode 100755 index 00000000..e69de29b diff --git a/test/test-files/ant/bin/ant.exe b/test/test-files/ant/bin/ant.exe new file mode 100755 index 00000000..e69de29b diff --git a/test/test-files/bazel/BUILD b/test/test-files/bazel/BUILD new file mode 100644 index 00000000..e69de29b diff --git a/test/test-files/bazel/WORKSPACE b/test/test-files/bazel/WORKSPACE new file mode 100644 index 00000000..e69de29b diff --git a/test/test-files/bazel/defs.bzl b/test/test-files/bazel/defs.bzl new file mode 100644 index 00000000..e69de29b diff --git a/test/test-files/bib/dummy.bib b/test/test-files/bib/dummy.bib new file mode 100644 index 00000000..e69de29b diff --git a/test/test-files/c/build_compile_commands_project/build/bad_folder_to_test_priority b/test/test-files/c/build_compile_commands_project/build/bad_folder_to_test_priority new file mode 100644 index 00000000..e69de29b diff --git a/test/test-files/c/build_compile_commands_project/build/compile_commands.json b/test/test-files/c/build_compile_commands_project/build/compile_commands.json new file mode 100644 index 00000000..e69de29b diff --git a/test/test-files/c/configure_project/Makefile b/test/test-files/c/configure_project/Makefile new file mode 100644 index 00000000..e69de29b diff --git a/test/test-files/c/configure_project/configure b/test/test-files/c/configure_project/configure new file mode 100644 index 00000000..e69de29b diff --git a/test/test-files/c/configure_project/include/test.h b/test/test-files/c/configure_project/include/test.h new file mode 100644 index 00000000..e69de29b diff --git a/test/test-files/c/configure_project/subdir/Makefile b/test/test-files/c/configure_project/subdir/Makefile new file mode 100644 index 00000000..e69de29b diff --git a/test/test-files/c/dummy.c b/test/test-files/c/dummy.c new file mode 100644 index 00000000..e69de29b diff --git a/test/test-files/c/git_and_nested_makefiles/include/test.h b/test/test-files/c/git_and_nested_makefiles/include/test.h new file mode 100644 index 00000000..e69de29b diff --git a/test/test-files/c/git_and_nested_makefiles/src/Makefile b/test/test-files/c/git_and_nested_makefiles/src/Makefile new file mode 100644 index 00000000..e69de29b diff --git a/test/test-files/c/gnumakefile_project/GNUmakefile b/test/test-files/c/gnumakefile_project/GNUmakefile new file mode 100644 index 00000000..e69de29b diff --git a/test/test-files/c/gnumakefile_project/file.c b/test/test-files/c/gnumakefile_project/file.c new file mode 100644 index 00000000..e69de29b diff --git a/test/test-files/c/h_file_project/Makefile b/test/test-files/c/h_file_project/Makefile new file mode 100644 index 00000000..e69de29b diff --git a/test/test-files/c/h_file_project/subdir/dummy b/test/test-files/c/h_file_project/subdir/dummy new file mode 100644 index 00000000..e69de29b diff --git a/test/test-files/c/h_file_project/test.h b/test/test-files/c/h_file_project/test.h new file mode 100644 index 00000000..e69de29b diff --git a/test/test-files/c/hpp_file_project/Makefile b/test/test-files/c/hpp_file_project/Makefile new file mode 100644 index 00000000..e69de29b diff --git a/test/test-files/c/hpp_file_project/subdir/dummy b/test/test-files/c/hpp_file_project/subdir/dummy new file mode 100644 index 00000000..e69de29b diff --git a/test/test-files/c/hpp_file_project/test.hpp b/test/test-files/c/hpp_file_project/test.hpp new file mode 100644 index 00000000..e69de29b diff --git a/test/test-files/c/json_project/build/compile_commands.json b/test/test-files/c/json_project/build/compile_commands.json new file mode 100644 index 00000000..e69de29b diff --git a/test/test-files/c/json_project/include/test.h b/test/test-files/c/json_project/include/test.h new file mode 100644 index 00000000..e69de29b diff --git a/test/test-files/c/json_project/subdir/dummy b/test/test-files/c/json_project/subdir/dummy new file mode 100644 index 00000000..e69de29b diff --git a/test/test-files/c/makefile_project/Makefile b/test/test-files/c/makefile_project/Makefile new file mode 100644 index 00000000..e69de29b diff --git a/test/test-files/c/makefile_project/_astylerc b/test/test-files/c/makefile_project/_astylerc new file mode 100644 index 00000000..e69de29b diff --git a/test/test-files/c/makefile_project/args b/test/test-files/c/makefile_project/args new file mode 100644 index 00000000..ccaf82ad --- /dev/null +++ b/test/test-files/c/makefile_project/args @@ -0,0 +1,3 @@ +foolib.a +-DARGS1 +@subdir/args diff --git a/test/test-files/c/makefile_project/include/test.h b/test/test-files/c/makefile_project/include/test.h new file mode 100644 index 00000000..e69de29b diff --git a/test/test-files/c/makefile_project/subdir/args b/test/test-files/c/makefile_project/subdir/args new file mode 100644 index 00000000..3fe9c3fe --- /dev/null +++ b/test/test-files/c/makefile_project/subdir/args @@ -0,0 +1 @@ +-DARGS2 diff --git a/test/test-files/c/makefile_project/subdir/dummy b/test/test-files/c/makefile_project/subdir/dummy new file mode 100644 index 00000000..e69de29b diff --git a/test/test-files/c/makefile_project/subdir/file.c b/test/test-files/c/makefile_project/subdir/file.c new file mode 100644 index 00000000..e69de29b diff --git a/test/test-files/cargo/Cargo.toml b/test/test-files/cargo/Cargo.toml new file mode 100644 index 00000000..e69de29b diff --git a/test/test-files/cargo/workspace_paths/Cargo.toml b/test/test-files/cargo/workspace_paths/Cargo.toml new file mode 100644 index 00000000..e69de29b diff --git a/test/test-files/cargo/workspace_paths/subpath/Cargo.toml b/test/test-files/cargo/workspace_paths/subpath/Cargo.toml new file mode 100644 index 00000000..e69de29b diff --git a/test/test-files/ccls/with_build_dir/unusual_build_dir_name/compile_commands.json b/test/test-files/ccls/with_build_dir/unusual_build_dir_name/compile_commands.json new file mode 100644 index 00000000..e69de29b diff --git a/test/test-files/ccls/with_ccls-root/.ccls-root b/test/test-files/ccls/with_ccls-root/.ccls-root new file mode 100644 index 00000000..e69de29b diff --git a/test/test-files/ccls/with_ccls/.ccls b/test/test-files/ccls/with_ccls/.ccls new file mode 100644 index 00000000..e69de29b diff --git a/test/test-files/ccls/with_compile_commands_json/compile_commands.json b/test/test-files/ccls/with_compile_commands_json/compile_commands.json new file mode 100644 index 00000000..e69de29b diff --git a/test/test-files/checkstyle/other_config.xml b/test/test-files/checkstyle/other_config.xml new file mode 100644 index 00000000..e69de29b diff --git a/test/test-files/clangd/with_build_dir/unusual_build_dir_name/compile_commands.json b/test/test-files/clangd/with_build_dir/unusual_build_dir_name/compile_commands.json new file mode 100644 index 00000000..e69de29b diff --git a/test/test-files/clangd/with_compile_commands/compile_commands.json b/test/test-files/clangd/with_compile_commands/compile_commands.json new file mode 100644 index 00000000..e69de29b diff --git a/test/test-files/clangformat/with_clangformat/.clang-format b/test/test-files/clangformat/with_clangformat/.clang-format new file mode 100644 index 00000000..e69de29b diff --git a/test/test-files/cpp/.astylerc b/test/test-files/cpp/.astylerc new file mode 100644 index 00000000..e69de29b diff --git a/test/test-files/cpp/dummy.cpp b/test/test-files/cpp/dummy.cpp new file mode 100644 index 00000000..e69de29b diff --git a/test/test-files/cppcheck/one/compile_commands.json b/test/test-files/cppcheck/one/compile_commands.json new file mode 100644 index 00000000..e69de29b diff --git a/test/test-files/cppcheck/one/two/three/file.c b/test/test-files/cppcheck/one/two/three/file.c new file mode 100644 index 00000000..e69de29b diff --git a/test/test-files/cppcheck/one/two/three/file.cpp b/test/test-files/cppcheck/one/two/three/file.cpp new file mode 100644 index 00000000..e69de29b diff --git a/test/test-files/cppcheck/with_build_dir/build/compile_commands.json b/test/test-files/cppcheck/with_build_dir/build/compile_commands.json new file mode 100644 index 00000000..e69de29b diff --git a/test/test-files/cquery/build/compile_commands.json b/test/test-files/cquery/build/compile_commands.json new file mode 100644 index 00000000..e69de29b diff --git a/test/test-files/cquery/with_cquery/.cquery b/test/test-files/cquery/with_cquery/.cquery new file mode 100644 index 00000000..e69de29b diff --git a/test/test-files/csslint/other-app/testfile.css b/test/test-files/csslint/other-app/testfile.css new file mode 100644 index 00000000..e69de29b diff --git a/test/test-files/csslint/some-app/.csslintrc b/test/test-files/csslint/some-app/.csslintrc new file mode 100644 index 00000000..e69de29b diff --git a/test/test-files/csslint/some-app/subdir/testfile.css b/test/test-files/csslint/some-app/subdir/testfile.css new file mode 100644 index 00000000..e69de29b diff --git a/test/test-files/cucumber/features/cuke.feature b/test/test-files/cucumber/features/cuke.feature new file mode 100644 index 00000000..e69de29b diff --git a/test/test-files/cucumber/features/step_definitions/base_steps.rb b/test/test-files/cucumber/features/step_definitions/base_steps.rb new file mode 100644 index 00000000..e69de29b diff --git a/test/test-files/d/test.d b/test/test-files/d/test.d new file mode 100644 index 00000000..e69de29b diff --git a/test/test-files/dart/.packages b/test/test-files/dart/.packages new file mode 100644 index 00000000..e69de29b diff --git a/test/test-files/dart/testfile.dart b/test/test-files/dart/testfile.dart new file mode 100644 index 00000000..e69de29b diff --git a/test/test-files/elixir/mix_project/lib/app.ex b/test/test-files/elixir/mix_project/lib/app.ex new file mode 100644 index 00000000..e69de29b diff --git a/test/test-files/elixir/mix_project/mix.exs b/test/test-files/elixir/mix_project/mix.exs new file mode 100644 index 00000000..419685ae --- /dev/null +++ b/test/test-files/elixir/mix_project/mix.exs @@ -0,0 +1,3 @@ +defmodule Test.MixProject do + # fake mix project file +end diff --git a/test/test-files/elixir/testfile.ex b/test/test-files/elixir/testfile.ex new file mode 100644 index 00000000..e69de29b diff --git a/test/test-files/elixir/umbrella_project/apps/app1/lib/app.ex b/test/test-files/elixir/umbrella_project/apps/app1/lib/app.ex new file mode 100644 index 00000000..e69de29b diff --git a/test/test-files/elixir/umbrella_project/apps/app1/mix.exs b/test/test-files/elixir/umbrella_project/apps/app1/mix.exs new file mode 100644 index 00000000..e69de29b diff --git a/test/test-files/elixir/umbrella_project/apps/app2/lib/app.ex b/test/test-files/elixir/umbrella_project/apps/app2/lib/app.ex new file mode 100644 index 00000000..e69de29b diff --git a/test/test-files/elixir/umbrella_project/apps/app2/mix.exs b/test/test-files/elixir/umbrella_project/apps/app2/mix.exs new file mode 100644 index 00000000..e69de29b diff --git a/test/test-files/elixir/umbrella_project/mix.exs b/test/test-files/elixir/umbrella_project/mix.exs new file mode 100644 index 00000000..e69de29b diff --git a/test/test-files/elm/newapp-notests/elm.json b/test/test-files/elm/newapp-notests/elm.json new file mode 100644 index 00000000..e69de29b diff --git a/test/test-files/elm/newapp-notests/node_modules/.bin/elm b/test/test-files/elm/newapp-notests/node_modules/.bin/elm new file mode 100644 index 00000000..e69de29b diff --git a/test/test-files/elm/newapp-notests/tests/TestMain.elm b/test/test-files/elm/newapp-notests/tests/TestMain.elm new file mode 100644 index 00000000..e69de29b diff --git a/test/test-files/elm/newapp/elm.json b/test/test-files/elm/newapp/elm.json new file mode 100644 index 00000000..e69de29b diff --git a/test/test-files/elm/newapp/node_modules/.bin/elm b/test/test-files/elm/newapp/node_modules/.bin/elm new file mode 100644 index 00000000..e69de29b diff --git a/test/test-files/elm/newapp/node_modules/.bin/elm-test b/test/test-files/elm/newapp/node_modules/.bin/elm-test new file mode 100644 index 00000000..e69de29b diff --git a/test/test-files/elm/newapp/src/Main.elm b/test/test-files/elm/newapp/src/Main.elm new file mode 100644 index 00000000..e69de29b diff --git a/test/test-files/elm/newapp/tests/TestSuite.elm b/test/test-files/elm/newapp/tests/TestSuite.elm new file mode 100644 index 00000000..e69de29b diff --git a/test/test-files/elm/node_modules/.bin/elm-format b/test/test-files/elm/node_modules/.bin/elm-format new file mode 100644 index 00000000..e69de29b diff --git a/test/test-files/elm/oldapp/elm-package.json b/test/test-files/elm/oldapp/elm-package.json new file mode 100644 index 00000000..e69de29b diff --git a/test/test-files/elm/oldapp/node_modules/.bin/elm b/test/test-files/elm/oldapp/node_modules/.bin/elm new file mode 100644 index 00000000..e69de29b diff --git a/test/test-files/elm/oldapp/node_modules/.bin/elm-test b/test/test-files/elm/oldapp/node_modules/.bin/elm-test new file mode 100644 index 00000000..e69de29b diff --git a/test/test-files/elm/oldapp/src/Main.elm b/test/test-files/elm/oldapp/src/Main.elm new file mode 100644 index 00000000..e69de29b diff --git a/test/test-files/elm/oldapp/tests/TestSuite.elm b/test/test-files/elm/oldapp/tests/TestSuite.elm new file mode 100644 index 00000000..e69de29b diff --git a/test/test-files/elm/src/subdir/testfile.elm b/test/test-files/elm/src/subdir/testfile.elm new file mode 100644 index 00000000..e69de29b diff --git a/test/test-files/eslint/app-with-eslint-d/node_modules/.bin/eslint_d b/test/test-files/eslint/app-with-eslint-d/node_modules/.bin/eslint_d new file mode 100644 index 00000000..e69de29b diff --git a/test/test-files/eslint/node_modules/.bin/eslint b/test/test-files/eslint/node_modules/.bin/eslint new file mode 100644 index 00000000..e69de29b diff --git a/test/test-files/eslint/other-app/subdir/testfile.js b/test/test-files/eslint/other-app/subdir/testfile.js new file mode 100644 index 00000000..e69de29b diff --git a/test/test-files/eslint/package.json b/test/test-files/eslint/package.json new file mode 100644 index 00000000..e69de29b diff --git a/test/test-files/eslint/react-app/.eslintrc.js b/test/test-files/eslint/react-app/.eslintrc.js new file mode 100644 index 00000000..e69de29b diff --git a/test/test-files/eslint/react-app/node_modules/eslint/bin/eslint.js b/test/test-files/eslint/react-app/node_modules/eslint/bin/eslint.js new file mode 100644 index 00000000..e69de29b diff --git a/test/test-files/eslint/react-app/node_modules/standard/bin/cmd.js b/test/test-files/eslint/react-app/node_modules/standard/bin/cmd.js new file mode 100644 index 00000000..e69de29b diff --git a/test/test-files/eslint/react-app/node_modules/stylelint/bin/stylelint.js b/test/test-files/eslint/react-app/node_modules/stylelint/bin/stylelint.js new file mode 100644 index 00000000..e69de29b diff --git a/test/test-files/eslint/react-app/node_modules/xo/cli.js b/test/test-files/eslint/react-app/node_modules/xo/cli.js new file mode 100644 index 00000000..e69de29b diff --git a/test/test-files/eslint/react-app/subdir-with-config/.eslintrc b/test/test-files/eslint/react-app/subdir-with-config/.eslintrc new file mode 100644 index 00000000..e69de29b diff --git a/test/test-files/eslint/react-app/subdir-with-package-json/node_modules/.gitkeep b/test/test-files/eslint/react-app/subdir-with-package-json/node_modules/.gitkeep new file mode 100644 index 00000000..e69de29b diff --git a/test/test-files/eslint/react-app/subdir-with-package-json/package.json b/test/test-files/eslint/react-app/subdir-with-package-json/package.json new file mode 100644 index 00000000..e69de29b diff --git a/test/test-files/eslint/react-app/subdir/testfile.css b/test/test-files/eslint/react-app/subdir/testfile.css new file mode 100644 index 00000000..e69de29b diff --git a/test/test-files/eslint/react-app/subdir/testfile.js b/test/test-files/eslint/react-app/subdir/testfile.js new file mode 100644 index 00000000..e69de29b diff --git a/test/test-files/eslint/react-app/subdir/testfile.ts b/test/test-files/eslint/react-app/subdir/testfile.ts new file mode 100644 index 00000000..e69de29b diff --git a/test/test-files/fecs/fecs b/test/test-files/fecs/fecs new file mode 100755 index 00000000..e69de29b diff --git a/test/test-files/fecs/fecs.exe b/test/test-files/fecs/fecs.exe new file mode 100755 index 00000000..e69de29b diff --git a/test/test-files/fish/testfile.fish b/test/test-files/fish/testfile.fish new file mode 100644 index 00000000..e69de29b diff --git a/test/test-files/flow/a/.flowconfig b/test/test-files/flow/a/.flowconfig new file mode 100644 index 00000000..e69de29b diff --git a/test/test-files/flow/a/sub/dummy b/test/test-files/flow/a/sub/dummy new file mode 100644 index 00000000..e69de29b diff --git a/test/test-files/flow/b/sub/dummy b/test/test-files/flow/b/sub/dummy new file mode 100644 index 00000000..e69de29b diff --git a/test/test-files/fortls-project/.fortls b/test/test-files/fortls-project/.fortls new file mode 100644 index 00000000..2c63c085 --- /dev/null +++ b/test/test-files/fortls-project/.fortls @@ -0,0 +1,2 @@ +{ +} diff --git a/test/test-files/go/go.mod b/test/test-files/go/go.mod new file mode 100644 index 00000000..8b137891 --- /dev/null +++ b/test/test-files/go/go.mod @@ -0,0 +1 @@ + diff --git a/test/test-files/go/go1/prj1/file.go b/test/test-files/go/go1/prj1/file.go new file mode 100644 index 00000000..e69de29b diff --git a/test/test-files/go/go2/prj2/file.go b/test/test-files/go/go2/prj2/file.go new file mode 100644 index 00000000..e69de29b diff --git a/test/test-files/go/testfile.go b/test/test-files/go/testfile.go new file mode 100644 index 00000000..e69de29b diff --git a/test/test-files/go/testfile2.go b/test/test-files/go/testfile2.go new file mode 100644 index 00000000..e69de29b diff --git a/test/test-files/gradle/build-gradle-project/build.gradle b/test/test-files/gradle/build-gradle-project/build.gradle new file mode 100644 index 00000000..e69de29b diff --git a/test/test-files/gradle/build-gradle-project/src/main/kotlin/dummy.kt b/test/test-files/gradle/build-gradle-project/src/main/kotlin/dummy.kt new file mode 100644 index 00000000..e69de29b diff --git a/test/test-files/gradle/gradle b/test/test-files/gradle/gradle new file mode 100755 index 00000000..e69de29b diff --git a/test/test-files/gradle/non-gradle-project/src/main/kotlin/dummy.kt b/test/test-files/gradle/non-gradle-project/src/main/kotlin/dummy.kt new file mode 100644 index 00000000..e69de29b diff --git a/test/test-files/gradle/settings-gradle-project/settings.gradle b/test/test-files/gradle/settings-gradle-project/settings.gradle new file mode 100644 index 00000000..e69de29b diff --git a/test/test-files/gradle/settings-gradle-project/src/main/kotlin/dummy.kt b/test/test-files/gradle/settings-gradle-project/src/main/kotlin/dummy.kt new file mode 100644 index 00000000..e69de29b diff --git a/test/test-files/gradle/unwrapped-project/build.gradle b/test/test-files/gradle/unwrapped-project/build.gradle new file mode 100644 index 00000000..e69de29b diff --git a/test/test-files/gradle/unwrapped-project/settings.gradle b/test/test-files/gradle/unwrapped-project/settings.gradle new file mode 100644 index 00000000..e69de29b diff --git a/test/test-files/gradle/unwrapped-project/src/main/kotlin/dummy.kt b/test/test-files/gradle/unwrapped-project/src/main/kotlin/dummy.kt new file mode 100644 index 00000000..e69de29b diff --git a/test/test-files/gradle/wrapped-project/build.gradle b/test/test-files/gradle/wrapped-project/build.gradle new file mode 100644 index 00000000..e69de29b diff --git a/test/test-files/gradle/wrapped-project/gradlew b/test/test-files/gradle/wrapped-project/gradlew new file mode 100644 index 00000000..e69de29b diff --git a/test/test-files/gradle/wrapped-project/settings.gradle b/test/test-files/gradle/wrapped-project/settings.gradle new file mode 100644 index 00000000..e69de29b diff --git a/test/test-files/gradle/wrapped-project/src/main/kotlin/dummy.kt b/test/test-files/gradle/wrapped-project/src/main/kotlin/dummy.kt new file mode 100644 index 00000000..e69de29b diff --git a/test/test-files/hamllint/haml-lint-and-rubocop/.haml-lint.yml b/test/test-files/hamllint/haml-lint-and-rubocop/.haml-lint.yml new file mode 100644 index 00000000..e69de29b diff --git a/test/test-files/hamllint/haml-lint-and-rubocop/.rubocop.yml b/test/test-files/hamllint/haml-lint-and-rubocop/.rubocop.yml new file mode 100644 index 00000000..e69de29b diff --git a/test/test-files/hamllint/haml-lint-and-rubocop/subdir/file.haml b/test/test-files/hamllint/haml-lint-and-rubocop/subdir/file.haml new file mode 100644 index 00000000..e69de29b diff --git a/test/test-files/hamllint/haml-lint-yml/.haml-lint.yml b/test/test-files/hamllint/haml-lint-yml/.haml-lint.yml new file mode 100644 index 00000000..e69de29b diff --git a/test/test-files/hamllint/haml-lint-yml/subdir/file.haml b/test/test-files/hamllint/haml-lint-yml/subdir/file.haml new file mode 100644 index 00000000..e69de29b diff --git a/test/test-files/hamllint/rubocop-yml/.rubocop.yml b/test/test-files/hamllint/rubocop-yml/.rubocop.yml new file mode 100644 index 00000000..e69de29b diff --git a/test/test-files/hamllint/rubocop-yml/subdir/file.haml b/test/test-files/hamllint/rubocop-yml/subdir/file.haml new file mode 100644 index 00000000..e69de29b diff --git a/test/test-files/hdl_server/foo.vhd b/test/test-files/hdl_server/foo.vhd new file mode 100644 index 00000000..e69de29b diff --git a/test/test-files/hdl_server/with_config_file/.hdl_checker.config b/test/test-files/hdl_server/with_config_file/.hdl_checker.config new file mode 100644 index 00000000..e69de29b diff --git a/test/test-files/hdl_server/with_config_file/_hdl_checker.config b/test/test-files/hdl_server/with_config_file/_hdl_checker.config new file mode 100644 index 00000000..e69de29b diff --git a/test/test-files/hdl_server/with_config_file/foo.vhd b/test/test-files/hdl_server/with_config_file/foo.vhd new file mode 100644 index 00000000..e69de29b diff --git a/test/test-files/hdl_server/with_git/files/foo.vhd b/test/test-files/hdl_server/with_git/files/foo.vhd new file mode 100644 index 00000000..8b137891 --- /dev/null +++ b/test/test-files/hdl_server/with_git/files/foo.vhd @@ -0,0 +1 @@ + diff --git a/test/test-files/html_beautify/html-beautify b/test/test-files/html_beautify/html-beautify new file mode 100755 index 00000000..e69de29b diff --git a/test/test-files/html_beautify/test.html b/test/test-files/html_beautify/test.html new file mode 100644 index 00000000..e69de29b diff --git a/test/test-files/htmlhint/node_modules/.bin/htmlhint b/test/test-files/htmlhint/node_modules/.bin/htmlhint new file mode 100755 index 00000000..e69de29b diff --git a/test/test-files/htmlhint/with_config/.htmlhintrc b/test/test-files/htmlhint/with_config/.htmlhintrc new file mode 100644 index 00000000..e69de29b diff --git a/test/test-files/ink/story/main.ink b/test/test-files/ink/story/main.ink new file mode 100644 index 00000000..e69de29b diff --git a/test/test-files/inko/test.inko b/test/test-files/inko/test.inko new file mode 100644 index 00000000..e69de29b diff --git a/test/test-files/inko/tests/test/test_foo.inko b/test/test-files/inko/tests/test/test_foo.inko new file mode 100644 index 00000000..e69de29b diff --git a/test/test-files/java/no_main/src/test/java/com/something/dummy b/test/test-files/java/no_main/src/test/java/com/something/dummy new file mode 100644 index 00000000..e69de29b diff --git a/test/test-files/java/with_jaxb/src/main/java/com/something/dummy b/test/test-files/java/with_jaxb/src/main/java/com/something/dummy new file mode 100644 index 00000000..e69de29b diff --git a/test/test-files/java/with_jaxb/src/main/jaxb/com/something/dummy b/test/test-files/java/with_jaxb/src/main/jaxb/com/something/dummy new file mode 100644 index 00000000..e69de29b diff --git a/test/test-files/java/with_main/build/gen/main/java/com/something/dummy b/test/test-files/java/with_main/build/gen/main/java/com/something/dummy new file mode 100644 index 00000000..e69de29b diff --git a/test/test-files/java/with_main/build/gen2/main/java/com/something/dummy b/test/test-files/java/with_main/build/gen2/main/java/com/something/dummy new file mode 100644 index 00000000..e69de29b diff --git a/test/test-files/java/with_main/src/main/java/com/something/dummy b/test/test-files/java/with_main/src/main/java/com/something/dummy new file mode 100644 index 00000000..e69de29b diff --git a/test/test-files/java/with_main/src/test/java/com/something/dummy b/test/test-files/java/with_main/src/test/java/com/something/dummy new file mode 100644 index 00000000..e69de29b diff --git a/test/test-files/javascript/test.js b/test/test-files/javascript/test.js new file mode 100644 index 00000000..e69de29b diff --git a/test/test-files/json/testfile.json b/test/test-files/json/testfile.json new file mode 100644 index 00000000..fe317ebb --- /dev/null +++ b/test/test-files/json/testfile.json @@ -0,0 +1 @@ +{"answer":42} diff --git a/test/test-files/jsonlint/app-without-jsonlint/src/app.json b/test/test-files/jsonlint/app-without-jsonlint/src/app.json new file mode 100644 index 00000000..e69de29b diff --git a/test/test-files/jsonlint/app/node_modules/.bin/jsonlint b/test/test-files/jsonlint/app/node_modules/.bin/jsonlint new file mode 100644 index 00000000..e69de29b diff --git a/test/test-files/jsonlint/app/src/app.json b/test/test-files/jsonlint/app/src/app.json new file mode 100644 index 00000000..e69de29b diff --git a/test/test-files/jsonlint/node_modules/jsonlint/lib/cli.js b/test/test-files/jsonlint/node_modules/jsonlint/lib/cli.js new file mode 100644 index 00000000..e69de29b diff --git a/test/test-files/julia/REQUIRE b/test/test-files/julia/REQUIRE new file mode 100644 index 00000000..e69de29b diff --git a/test/test-files/julia/test.jl b/test/test-files/julia/test.jl new file mode 100644 index 00000000..e69de29b diff --git a/test/test-files/kotlin/testfile.kt b/test/test-files/kotlin/testfile.kt new file mode 100644 index 00000000..e69de29b diff --git a/test/test-files/lessc/node_modules/.bin/lessc b/test/test-files/lessc/node_modules/.bin/lessc new file mode 100755 index 00000000..e69de29b diff --git a/test/test-files/long-line/setup.cfg b/test/test-files/long-line/setup.cfg new file mode 100644 index 00000000..43d7a3a1 --- /dev/null +++ b/test/test-files/long-line/setup.cfg @@ -0,0 +1,2 @@ +[flake8] +max-line-length = 90 diff --git a/test/test-files/lua/testfile.lua b/test/test-files/lua/testfile.lua new file mode 100644 index 00000000..e69de29b diff --git a/test/test-files/markdown/testfile.md b/test/test-files/markdown/testfile.md new file mode 100644 index 00000000..e69de29b diff --git a/test/test-files/maven/maven-java-project/module1/mvnw b/test/test-files/maven/maven-java-project/module1/mvnw new file mode 100755 index 00000000..e69de29b diff --git a/test/test-files/maven/maven-java-project/module1/mvnw.cmd b/test/test-files/maven/maven-java-project/module1/mvnw.cmd new file mode 100755 index 00000000..e69de29b diff --git a/test/test-files/maven/maven-java-project/module1/pom.xml b/test/test-files/maven/maven-java-project/module1/pom.xml new file mode 100644 index 00000000..8b137891 --- /dev/null +++ b/test/test-files/maven/maven-java-project/module1/pom.xml @@ -0,0 +1 @@ + diff --git a/test/test-files/maven/maven-java-project/module1/src/main/java/dummy1.java b/test/test-files/maven/maven-java-project/module1/src/main/java/dummy1.java new file mode 100644 index 00000000..e69de29b diff --git a/test/test-files/maven/maven-java-project/module2/pom.xml b/test/test-files/maven/maven-java-project/module2/pom.xml new file mode 100644 index 00000000..8b137891 --- /dev/null +++ b/test/test-files/maven/maven-java-project/module2/pom.xml @@ -0,0 +1 @@ + diff --git a/test/test-files/maven/maven-java-project/module2/src/main/java/dummy2.java b/test/test-files/maven/maven-java-project/module2/src/main/java/dummy2.java new file mode 100644 index 00000000..e69de29b diff --git a/test/test-files/maven/maven-kotlin-project/pom.xml b/test/test-files/maven/maven-kotlin-project/pom.xml new file mode 100644 index 00000000..8b137891 --- /dev/null +++ b/test/test-files/maven/maven-kotlin-project/pom.xml @@ -0,0 +1 @@ + diff --git a/test/test-files/maven/maven-kotlin-project/src/main/kotlin/dummy.kt b/test/test-files/maven/maven-kotlin-project/src/main/kotlin/dummy.kt new file mode 100644 index 00000000..8b137891 --- /dev/null +++ b/test/test-files/maven/maven-kotlin-project/src/main/kotlin/dummy.kt @@ -0,0 +1 @@ + diff --git a/test/test-files/maven/mvn b/test/test-files/maven/mvn new file mode 100755 index 00000000..e69de29b diff --git a/test/test-files/maven/non-maven-project/src/main/java/dummy.java b/test/test-files/maven/non-maven-project/src/main/java/dummy.java new file mode 100644 index 00000000..e69de29b diff --git a/test/test-files/nim/with-git/src/source.nim b/test/test-files/nim/with-git/src/source.nim new file mode 100644 index 00000000..e69de29b diff --git a/test/test-files/ocaml/testfile.ml b/test/test-files/ocaml/testfile.ml new file mode 100644 index 00000000..e69de29b diff --git a/test/test-files/ocamllsp/dune-project b/test/test-files/ocamllsp/dune-project new file mode 100644 index 00000000..e69de29b diff --git a/test/test-files/ols/.merlin b/test/test-files/ols/.merlin new file mode 100644 index 00000000..e69de29b diff --git a/test/test-files/ols/node_modules/.bin/ocaml-language-server b/test/test-files/ols/node_modules/.bin/ocaml-language-server new file mode 100644 index 00000000..e69de29b diff --git a/test/test-files/php/project-with-php-cs-fixer/test.php b/test/test-files/php/project-with-php-cs-fixer/test.php new file mode 100644 index 00000000..e69de29b diff --git a/test/test-files/php/project-with-php-cs-fixer/vendor/bin/php-cs-fixer b/test/test-files/php/project-with-php-cs-fixer/vendor/bin/php-cs-fixer new file mode 100644 index 00000000..e69de29b diff --git a/test/test-files/php/project-with-phpcbf/foo/test.php b/test/test-files/php/project-with-phpcbf/foo/test.php new file mode 100644 index 00000000..e69de29b diff --git a/test/test-files/php/project-with-phpcbf/vendor/bin/phpcbf b/test/test-files/php/project-with-phpcbf/vendor/bin/phpcbf new file mode 100644 index 00000000..e69de29b diff --git a/test/test-files/php/project-without-php-cs-fixer/test.php b/test/test-files/php/project-without-php-cs-fixer/test.php new file mode 100644 index 00000000..e69de29b diff --git a/test/test-files/php/project-without-phpcbf/foo/test.php b/test/test-files/php/project-without-phpcbf/foo/test.php new file mode 100644 index 00000000..e69de29b diff --git a/test/test-files/php/vendor/bin/php-language-server.php b/test/test-files/php/vendor/bin/php-language-server.php new file mode 100755 index 00000000..e69de29b diff --git a/test/test-files/php/with-composer/composer.json b/test/test-files/php/with-composer/composer.json new file mode 100644 index 00000000..e69de29b diff --git a/test/test-files/php/with-composer/vendor/bin/php-language-server.php b/test/test-files/php/with-composer/vendor/bin/php-language-server.php new file mode 100755 index 00000000..e69de29b diff --git a/test/test-files/php/with-git/vendor/bin/php-language-server.php b/test/test-files/php/with-git/vendor/bin/php-language-server.php new file mode 100755 index 00000000..e69de29b diff --git a/test/test-files/phpcs/project-with-phpcs/foo/test.php b/test/test-files/phpcs/project-with-phpcs/foo/test.php new file mode 100644 index 00000000..e69de29b diff --git a/test/test-files/phpcs/project-with-phpcs/vendor/bin/phpcs b/test/test-files/phpcs/project-with-phpcs/vendor/bin/phpcs new file mode 100644 index 00000000..e69de29b diff --git a/test/test-files/phpcs/project-without-phpcs/foo/test.php b/test/test-files/phpcs/project-without-phpcs/foo/test.php new file mode 100644 index 00000000..e69de29b diff --git a/test/test-files/prettier/testfile b/test/test-files/prettier/testfile new file mode 100644 index 00000000..e69de29b diff --git a/test/test-files/prettier/testfile.css b/test/test-files/prettier/testfile.css new file mode 100644 index 00000000..e69de29b diff --git a/test/test-files/prettier/testfile.js b/test/test-files/prettier/testfile.js new file mode 100644 index 00000000..e69de29b diff --git a/test/test-files/prettier/testfile.json b/test/test-files/prettier/testfile.json new file mode 100644 index 00000000..e69de29b diff --git a/test/test-files/prettier/testfile.scss b/test/test-files/prettier/testfile.scss new file mode 100644 index 00000000..e69de29b diff --git a/test/test-files/prettier/testfile.ts b/test/test-files/prettier/testfile.ts new file mode 100644 index 00000000..e69de29b diff --git a/test/test-files/prettier/with_config/.prettierrc b/test/test-files/prettier/with_config/.prettierrc new file mode 100644 index 00000000..e69de29b diff --git a/test/test-files/prettier/with_config/testfile.js b/test/test-files/prettier/with_config/testfile.js new file mode 100644 index 00000000..e69de29b diff --git a/test/test-files/prettier/with_prettierignore/.prettierignore b/test/test-files/prettier/with_prettierignore/.prettierignore new file mode 100644 index 00000000..e69de29b diff --git a/test/test-files/prettier/with_prettierignore/src/testfile.js b/test/test-files/prettier/with_prettierignore/src/testfile.js new file mode 100644 index 00000000..e69de29b diff --git a/test/test-files/psalm/vendor/bin/psalm b/test/test-files/psalm/vendor/bin/psalm new file mode 100755 index 00000000..e69de29b diff --git a/test/test-files/puglint/node_modules/.bin/pug-lint b/test/test-files/puglint/node_modules/.bin/pug-lint new file mode 100644 index 00000000..e69de29b diff --git a/test/test-files/puglint/package.json b/test/test-files/puglint/package.json new file mode 100644 index 00000000..e69de29b diff --git a/test/test-files/puglint/puglint_rc_dir/.pug-lintrc b/test/test-files/puglint/puglint_rc_dir/.pug-lintrc new file mode 100644 index 00000000..e69de29b diff --git a/test/test-files/puglint/puglint_rc_js_dir/.pug-lintrc.js b/test/test-files/puglint/puglint_rc_js_dir/.pug-lintrc.js new file mode 100644 index 00000000..e69de29b diff --git a/test/test-files/puglint/puglint_rc_json_dir/.pug-lintrc.json b/test/test-files/puglint/puglint_rc_json_dir/.pug-lintrc.json new file mode 100644 index 00000000..e69de29b diff --git a/test/test-files/puppet/dummy.pp b/test/test-files/puppet/dummy.pp new file mode 100644 index 00000000..e69de29b diff --git a/test/test-files/puppet/new-style-module/lib/puppet/types/exampletype.rb b/test/test-files/puppet/new-style-module/lib/puppet/types/exampletype.rb new file mode 100644 index 00000000..e69de29b diff --git a/test/test-files/puppet/new-style-module/metadata.json b/test/test-files/puppet/new-style-module/metadata.json new file mode 100644 index 00000000..e69de29b diff --git a/test/test-files/puppet/new-style-module/template/template.epp b/test/test-files/puppet/new-style-module/template/template.epp new file mode 100644 index 00000000..e69de29b diff --git a/test/test-files/puppet/old-style-module/manifests/init.pp b/test/test-files/puppet/old-style-module/manifests/init.pp new file mode 100644 index 00000000..e69de29b diff --git a/test/test-files/puppet/old-style-module/templates/template.epp b/test/test-files/puppet/old-style-module/templates/template.epp new file mode 100644 index 00000000..e69de29b diff --git a/test/test-files/purescript/bower/Foo.purs b/test/test-files/purescript/bower/Foo.purs new file mode 100644 index 00000000..e69de29b diff --git a/test/test-files/purescript/bower/bower.json b/test/test-files/purescript/bower/bower.json new file mode 100644 index 00000000..e69de29b diff --git a/test/test-files/purescript/psc-package/Foo.purs b/test/test-files/purescript/psc-package/Foo.purs new file mode 100644 index 00000000..e69de29b diff --git a/test/test-files/purescript/psc-package/psc-package.json b/test/test-files/purescript/psc-package/psc-package.json new file mode 100644 index 00000000..e69de29b diff --git a/test/test-files/purescript/spago/Foo.purs b/test/test-files/purescript/spago/Foo.purs new file mode 100644 index 00000000..e69de29b diff --git a/test/test-files/purescript/spago/spago.dhall b/test/test-files/purescript/spago/spago.dhall new file mode 100644 index 00000000..e69de29b diff --git a/test/test-files/python/namespace_package_manifest/MANIFEST.in b/test/test-files/python/namespace_package_manifest/MANIFEST.in new file mode 100644 index 00000000..4617b0eb --- /dev/null +++ b/test/test-files/python/namespace_package_manifest/MANIFEST.in @@ -0,0 +1,3 @@ +include README.md +include *.ini *.cfg *.txt +include requirements/*.txt diff --git a/test/test-files/python/namespace_package_manifest/namespace/foo/__init__.py b/test/test-files/python/namespace_package_manifest/namespace/foo/__init__.py new file mode 100644 index 00000000..e69de29b diff --git a/test/test-files/python/namespace_package_manifest/namespace/foo/bar.py b/test/test-files/python/namespace_package_manifest/namespace/foo/bar.py new file mode 100644 index 00000000..e69de29b diff --git a/test/test-files/python/namespace_package_pytest/namespace/foo/__init__.py b/test/test-files/python/namespace_package_pytest/namespace/foo/__init__.py new file mode 100644 index 00000000..e69de29b diff --git a/test/test-files/python/namespace_package_pytest/namespace/foo/bar.py b/test/test-files/python/namespace_package_pytest/namespace/foo/bar.py new file mode 100644 index 00000000..e69de29b diff --git a/test/test-files/python/namespace_package_pytest/pytest.ini b/test/test-files/python/namespace_package_pytest/pytest.ini new file mode 100644 index 00000000..1433c6c6 --- /dev/null +++ b/test/test-files/python/namespace_package_pytest/pytest.ini @@ -0,0 +1,2 @@ +[pytest] +DJANGO_SETTINGS_MODULE=foo.settings diff --git a/test/test-files/python/namespace_package_setup/namespace/foo/__init__.py b/test/test-files/python/namespace_package_setup/namespace/foo/__init__.py new file mode 100644 index 00000000..e69de29b diff --git a/test/test-files/python/namespace_package_setup/namespace/foo/bar.py b/test/test-files/python/namespace_package_setup/namespace/foo/bar.py new file mode 100644 index 00000000..e69de29b diff --git a/test/test-files/python/namespace_package_setup/setup.cfg b/test/test-files/python/namespace_package_setup/setup.cfg new file mode 100644 index 00000000..791f075d --- /dev/null +++ b/test/test-files/python/namespace_package_setup/setup.cfg @@ -0,0 +1,2 @@ +[flake8] +max-line-length = 119 diff --git a/test/test-files/python/namespace_package_tox/namespace/foo/__init__.py b/test/test-files/python/namespace_package_tox/namespace/foo/__init__.py new file mode 100644 index 00000000..e69de29b diff --git a/test/test-files/python/namespace_package_tox/namespace/foo/bar.py b/test/test-files/python/namespace_package_tox/namespace/foo/bar.py new file mode 100644 index 00000000..e69de29b diff --git a/test/test-files/python/namespace_package_tox/tox.ini b/test/test-files/python/namespace_package_tox/tox.ini new file mode 100644 index 00000000..edd8788c --- /dev/null +++ b/test/test-files/python/namespace_package_tox/tox.ini @@ -0,0 +1,3 @@ +[tox] +envlist = + py352 diff --git a/test/test-files/python/no_virtualenv/subdir/foo/COMMIT_EDITMSG b/test/test-files/python/no_virtualenv/subdir/foo/COMMIT_EDITMSG new file mode 100644 index 00000000..e69de29b diff --git a/test/test-files/python/no_virtualenv/subdir/foo/__init__.py b/test/test-files/python/no_virtualenv/subdir/foo/__init__.py new file mode 100644 index 00000000..e69de29b diff --git a/test/test-files/python/no_virtualenv/subdir/foo/bar.py b/test/test-files/python/no_virtualenv/subdir/foo/bar.py new file mode 100644 index 00000000..e69de29b diff --git a/test/test-files/python/pipenv/Pipfile.lock b/test/test-files/python/pipenv/Pipfile.lock new file mode 100644 index 00000000..e69de29b diff --git a/test/test-files/python/python-package-project/.flake8 b/test/test-files/python/python-package-project/.flake8 new file mode 100644 index 00000000..e69de29b diff --git a/test/test-files/python/python-package-project/package-name/module.py b/test/test-files/python/python-package-project/package-name/module.py new file mode 100644 index 00000000..e69de29b diff --git a/test/test-files/python/with_bandit/.bandit b/test/test-files/python/with_bandit/.bandit new file mode 100644 index 00000000..e69de29b diff --git a/test/test-files/python/with_bandit/namespace/foo/__init__.py b/test/test-files/python/with_bandit/namespace/foo/__init__.py new file mode 100644 index 00000000..e69de29b diff --git a/test/test-files/python/with_bandit/namespace/foo/bar.py b/test/test-files/python/with_bandit/namespace/foo/bar.py new file mode 100644 index 00000000..e69de29b diff --git a/test/test-files/python/with_mypy_ini_and_pytest_ini/mypy.ini b/test/test-files/python/with_mypy_ini_and_pytest_ini/mypy.ini new file mode 100644 index 00000000..e69de29b diff --git a/test/test-files/python/with_mypy_ini_and_pytest_ini/tests/pytest.ini b/test/test-files/python/with_mypy_ini_and_pytest_ini/tests/pytest.ini new file mode 100644 index 00000000..e69de29b diff --git a/test/test-files/python/with_mypy_ini_and_pytest_ini/tests/testsubfolder/my_tests.py b/test/test-files/python/with_mypy_ini_and_pytest_ini/tests/testsubfolder/my_tests.py new file mode 100644 index 00000000..e69de29b diff --git a/test/test-files/python/with_virtualenv/dir_with_yapf_config/.style.yapf b/test/test-files/python/with_virtualenv/dir_with_yapf_config/.style.yapf new file mode 100644 index 00000000..e69de29b diff --git a/test/test-files/python/with_virtualenv/env/Scripts/activate b/test/test-files/python/with_virtualenv/env/Scripts/activate new file mode 100644 index 00000000..e69de29b diff --git a/test/test-files/python/with_virtualenv/env/Scripts/autoimport.exe b/test/test-files/python/with_virtualenv/env/Scripts/autoimport.exe new file mode 100755 index 00000000..e69de29b diff --git a/test/test-files/python/with_virtualenv/env/Scripts/autopep8.exe b/test/test-files/python/with_virtualenv/env/Scripts/autopep8.exe new file mode 100755 index 00000000..e69de29b diff --git a/test/test-files/python/with_virtualenv/env/Scripts/black.exe b/test/test-files/python/with_virtualenv/env/Scripts/black.exe new file mode 100755 index 00000000..e69de29b diff --git a/test/test-files/python/with_virtualenv/env/Scripts/flake8.exe b/test/test-files/python/with_virtualenv/env/Scripts/flake8.exe new file mode 100755 index 00000000..e69de29b diff --git a/test/test-files/python/with_virtualenv/env/Scripts/gitlint.exe b/test/test-files/python/with_virtualenv/env/Scripts/gitlint.exe new file mode 100755 index 00000000..e69de29b diff --git a/test/test-files/python/with_virtualenv/env/Scripts/isort.exe b/test/test-files/python/with_virtualenv/env/Scripts/isort.exe new file mode 100755 index 00000000..e69de29b diff --git a/test/test-files/python/with_virtualenv/env/Scripts/mypy.exe b/test/test-files/python/with_virtualenv/env/Scripts/mypy.exe new file mode 100755 index 00000000..e69de29b diff --git a/test/test-files/python/with_virtualenv/env/Scripts/pyflakes.exe b/test/test-files/python/with_virtualenv/env/Scripts/pyflakes.exe new file mode 100755 index 00000000..e69de29b diff --git a/test/test-files/python/with_virtualenv/env/Scripts/pylama.exe b/test/test-files/python/with_virtualenv/env/Scripts/pylama.exe new file mode 100755 index 00000000..e69de29b diff --git a/test/test-files/python/with_virtualenv/env/Scripts/pylint.exe b/test/test-files/python/with_virtualenv/env/Scripts/pylint.exe new file mode 100755 index 00000000..e69de29b diff --git a/test/test-files/python/with_virtualenv/env/Scripts/pyls.exe b/test/test-files/python/with_virtualenv/env/Scripts/pyls.exe new file mode 100755 index 00000000..e69de29b diff --git a/test/test-files/python/with_virtualenv/env/Scripts/pyre.exe b/test/test-files/python/with_virtualenv/env/Scripts/pyre.exe new file mode 100755 index 00000000..e69de29b diff --git a/test/test-files/python/with_virtualenv/env/Scripts/reorder-python-imports.exe b/test/test-files/python/with_virtualenv/env/Scripts/reorder-python-imports.exe new file mode 100755 index 00000000..e69de29b diff --git a/test/test-files/python/with_virtualenv/env/Scripts/vulture.exe b/test/test-files/python/with_virtualenv/env/Scripts/vulture.exe new file mode 100755 index 00000000..e69de29b diff --git a/test/test-files/python/with_virtualenv/env/Scripts/yamlfix.exe b/test/test-files/python/with_virtualenv/env/Scripts/yamlfix.exe new file mode 100644 index 00000000..e69de29b diff --git a/test/test-files/python/with_virtualenv/env/Scripts/yapf.exe b/test/test-files/python/with_virtualenv/env/Scripts/yapf.exe new file mode 100755 index 00000000..e69de29b diff --git a/test/test-files/python/with_virtualenv/env/bin/activate b/test/test-files/python/with_virtualenv/env/bin/activate new file mode 100644 index 00000000..e69de29b diff --git a/test/test-files/python/with_virtualenv/env/bin/autoimport b/test/test-files/python/with_virtualenv/env/bin/autoimport new file mode 100755 index 00000000..e69de29b diff --git a/test/test-files/python/with_virtualenv/env/bin/autopep8 b/test/test-files/python/with_virtualenv/env/bin/autopep8 new file mode 100755 index 00000000..e69de29b diff --git a/test/test-files/python/with_virtualenv/env/bin/black b/test/test-files/python/with_virtualenv/env/bin/black new file mode 100755 index 00000000..e69de29b diff --git a/test/test-files/python/with_virtualenv/env/bin/flake8 b/test/test-files/python/with_virtualenv/env/bin/flake8 new file mode 100755 index 00000000..e69de29b diff --git a/test/test-files/python/with_virtualenv/env/bin/gitlint b/test/test-files/python/with_virtualenv/env/bin/gitlint new file mode 100755 index 00000000..e69de29b diff --git a/test/test-files/python/with_virtualenv/env/bin/isort b/test/test-files/python/with_virtualenv/env/bin/isort new file mode 100755 index 00000000..e69de29b diff --git a/test/test-files/python/with_virtualenv/env/bin/mypy b/test/test-files/python/with_virtualenv/env/bin/mypy new file mode 100755 index 00000000..e69de29b diff --git a/test/test-files/python/with_virtualenv/env/bin/pyflakes b/test/test-files/python/with_virtualenv/env/bin/pyflakes new file mode 100755 index 00000000..e69de29b diff --git a/test/test-files/python/with_virtualenv/env/bin/pylama b/test/test-files/python/with_virtualenv/env/bin/pylama new file mode 100755 index 00000000..e69de29b diff --git a/test/test-files/python/with_virtualenv/env/bin/pylint b/test/test-files/python/with_virtualenv/env/bin/pylint new file mode 100755 index 00000000..e69de29b diff --git a/test/test-files/python/with_virtualenv/env/bin/pyls b/test/test-files/python/with_virtualenv/env/bin/pyls new file mode 100755 index 00000000..e69de29b diff --git a/test/test-files/python/with_virtualenv/env/bin/pyre b/test/test-files/python/with_virtualenv/env/bin/pyre new file mode 100755 index 00000000..e69de29b diff --git a/test/test-files/python/with_virtualenv/env/bin/reorder-python-imports b/test/test-files/python/with_virtualenv/env/bin/reorder-python-imports new file mode 100755 index 00000000..e69de29b diff --git a/test/test-files/python/with_virtualenv/env/bin/vulture b/test/test-files/python/with_virtualenv/env/bin/vulture new file mode 100755 index 00000000..e69de29b diff --git a/test/test-files/python/with_virtualenv/env/bin/yamlfix b/test/test-files/python/with_virtualenv/env/bin/yamlfix new file mode 100755 index 00000000..e69de29b diff --git a/test/test-files/python/with_virtualenv/env/bin/yapf b/test/test-files/python/with_virtualenv/env/bin/yapf new file mode 100755 index 00000000..e69de29b diff --git a/test/test-files/python/with_virtualenv/subdir/foo/COMMIT_EDITMSG b/test/test-files/python/with_virtualenv/subdir/foo/COMMIT_EDITMSG new file mode 100644 index 00000000..e69de29b diff --git a/test/test-files/python/with_virtualenv/subdir/foo/__init__.py b/test/test-files/python/with_virtualenv/subdir/foo/__init__.py new file mode 100644 index 00000000..e69de29b diff --git a/test/test-files/python/with_virtualenv/subdir/foo/bar.py b/test/test-files/python/with_virtualenv/subdir/foo/bar.py new file mode 100644 index 00000000..e69de29b diff --git a/test/test-files/python/with_virtualenv/subdir/foo/bar.pyi b/test/test-files/python/with_virtualenv/subdir/foo/bar.pyi new file mode 100644 index 00000000..e69de29b diff --git a/test/test-files/r/.Rprofile b/test/test-files/r/.Rprofile new file mode 100644 index 00000000..e69de29b diff --git a/test/test-files/reasonml/bsconfig.json b/test/test-files/reasonml/bsconfig.json new file mode 100644 index 00000000..e69de29b diff --git a/test/test-files/reasonml/testfile.re b/test/test-files/reasonml/testfile.re new file mode 100644 index 00000000..e69de29b diff --git a/test/test-files/remark_lint/with_bin_path/node_modules/.bin/remark b/test/test-files/remark_lint/with_bin_path/node_modules/.bin/remark new file mode 100755 index 00000000..e69de29b diff --git a/test/test-files/ruby/dummy.rb b/test/test-files/ruby/dummy.rb new file mode 100644 index 00000000..e69de29b diff --git a/test/test-files/ruby/not_a_rails_app/file.rb b/test/test-files/ruby/not_a_rails_app/file.rb new file mode 100644 index 00000000..e69de29b diff --git a/test/test-files/ruby/valid_rails_app/app/dummy.rb b/test/test-files/ruby/valid_rails_app/app/dummy.rb new file mode 100644 index 00000000..e69de29b diff --git a/test/test-files/ruby/valid_rails_app/app/models/thing.rb b/test/test-files/ruby/valid_rails_app/app/models/thing.rb new file mode 100644 index 00000000..e69de29b diff --git a/test/test-files/ruby/valid_rails_app/app/views/my_great_view.html.erb b/test/test-files/ruby/valid_rails_app/app/views/my_great_view.html.erb new file mode 100644 index 00000000..e69de29b diff --git a/test/test-files/ruby/valid_rails_app/config/dummy.rb b/test/test-files/ruby/valid_rails_app/config/dummy.rb new file mode 100644 index 00000000..e69de29b diff --git a/test/test-files/ruby/valid_rails_app/db/dummy.rb b/test/test-files/ruby/valid_rails_app/db/dummy.rb new file mode 100644 index 00000000..e69de29b diff --git a/test/test-files/ruby/valid_ruby_app1/Rakefile b/test/test-files/ruby/valid_ruby_app1/Rakefile new file mode 100644 index 00000000..e69de29b diff --git a/test/test-files/ruby/valid_ruby_app1/lib/file.rb b/test/test-files/ruby/valid_ruby_app1/lib/file.rb new file mode 100644 index 00000000..e69de29b diff --git a/test/test-files/ruby/valid_ruby_app2/Gemfile b/test/test-files/ruby/valid_ruby_app2/Gemfile new file mode 100644 index 00000000..e69de29b diff --git a/test/test-files/ruby/valid_ruby_app2/lib/file.rb b/test/test-files/ruby/valid_ruby_app2/lib/file.rb new file mode 100644 index 00000000..e69de29b diff --git a/test/test-files/ruby/valid_ruby_app3/.solargraph.yml b/test/test-files/ruby/valid_ruby_app3/.solargraph.yml new file mode 100644 index 00000000..e69de29b diff --git a/test/test-files/ruby/valid_ruby_app3/lib/file.rb b/test/test-files/ruby/valid_ruby_app3/lib/file.rb new file mode 100644 index 00000000..e69de29b diff --git a/test/test-files/ruby/with_config/.rubocop.yml b/test/test-files/ruby/with_config/.rubocop.yml new file mode 100644 index 00000000..e69de29b diff --git a/test/test-files/ruby/with_config/.standard.yml b/test/test-files/ruby/with_config/.standard.yml new file mode 100644 index 00000000..e69de29b diff --git a/test/test-files/rust/Cargo.toml b/test/test-files/rust/Cargo.toml new file mode 100644 index 00000000..e69de29b diff --git a/test/test-files/rust/testfile.rs b/test/test-files/rust/testfile.rs new file mode 100644 index 00000000..e69de29b diff --git a/test/test-files/sasslint/with-bin/node_modules/.bin/sass-lint b/test/test-files/sasslint/with-bin/node_modules/.bin/sass-lint new file mode 100755 index 00000000..e69de29b diff --git a/test/test-files/sasslint/with-source/node_modules/sass-lint/bin/sass-lint.js b/test/test-files/sasslint/with-source/node_modules/sass-lint/bin/sass-lint.js new file mode 100755 index 00000000..e69de29b diff --git a/test/test-files/scala/dummy.scala b/test/test-files/scala/dummy.scala new file mode 100644 index 00000000..e69de29b diff --git a/test/test-files/scala/invalid_sbt_project/Main.scala b/test/test-files/scala/invalid_sbt_project/Main.scala new file mode 100644 index 00000000..e69de29b diff --git a/test/test-files/scala/valid_sbt_project/Main.scala b/test/test-files/scala/valid_sbt_project/Main.scala new file mode 100644 index 00000000..e69de29b diff --git a/test/test-files/scala/valid_sbt_project/build.sbt b/test/test-files/scala/valid_sbt_project/build.sbt new file mode 100644 index 00000000..e69de29b diff --git a/test/test-files/slimlint/.rubocop.yml b/test/test-files/slimlint/.rubocop.yml new file mode 100644 index 00000000..e69de29b diff --git a/test/test-files/slimlint/subdir/file.slim b/test/test-files/slimlint/subdir/file.slim new file mode 100644 index 00000000..e69de29b diff --git a/test/test-files/smlnj/cm/foo.sml b/test/test-files/smlnj/cm/foo.sml new file mode 100644 index 00000000..e69de29b diff --git a/test/test-files/smlnj/cm/path/to/bar.sml b/test/test-files/smlnj/cm/path/to/bar.sml new file mode 100644 index 00000000..e69de29b diff --git a/test/test-files/smlnj/cm/sources.cm b/test/test-files/smlnj/cm/sources.cm new file mode 100644 index 00000000..e69de29b diff --git a/test/test-files/smlnj/file/qux.sml b/test/test-files/smlnj/file/qux.sml new file mode 100644 index 00000000..e69de29b diff --git a/test/test-files/spectral/node_modules/.bin/spectral b/test/test-files/spectral/node_modules/.bin/spectral new file mode 100644 index 00000000..e69de29b diff --git a/test/test-files/spectral/openapi.yaml b/test/test-files/spectral/openapi.yaml new file mode 100644 index 00000000..e69de29b diff --git a/test/test-files/stack/stack.yaml b/test/test-files/stack/stack.yaml new file mode 100644 index 00000000..e69de29b diff --git a/test/test-files/standard/with-bin/node_modules/.bin/standard b/test/test-files/standard/with-bin/node_modules/.bin/standard new file mode 100755 index 00000000..e69de29b diff --git a/test/test-files/standard/with-cmd/node_modules/standard/bin/cmd.js b/test/test-files/standard/with-cmd/node_modules/standard/bin/cmd.js new file mode 100755 index 00000000..e69de29b diff --git a/test/test-files/stylelint/node_modules/.bin/stylelint b/test/test-files/stylelint/node_modules/.bin/stylelint new file mode 100755 index 00000000..e69de29b diff --git a/test/test-files/swaglint/docs/swagger.yaml b/test/test-files/swaglint/docs/swagger.yaml new file mode 100644 index 00000000..e69de29b diff --git a/test/test-files/swaglint/node_modules/.bin/swaglint b/test/test-files/swaglint/node_modules/.bin/swaglint new file mode 100644 index 00000000..e69de29b diff --git a/test/test-files/swift/dummy.swift b/test/test-files/swift/dummy.swift new file mode 100644 index 00000000..e69de29b diff --git a/test/test-files/swift/non-swift-package-project/src/folder/dummy.swift b/test/test-files/swift/non-swift-package-project/src/folder/dummy.swift new file mode 100644 index 00000000..e69de29b diff --git a/test/test-files/swift/swift-package-project/Package.swift b/test/test-files/swift/swift-package-project/Package.swift new file mode 100644 index 00000000..e69de29b diff --git a/test/test-files/swift/swift-package-project/src/folder/dummy.swift b/test/test-files/swift/swift-package-project/src/folder/dummy.swift new file mode 100644 index 00000000..e69de29b diff --git a/test/test-files/swiftlint/cocoapods-and-react-native/Pods/SwiftLint/swiftlint b/test/test-files/swiftlint/cocoapods-and-react-native/Pods/SwiftLint/swiftlint new file mode 100644 index 00000000..e69de29b diff --git a/test/test-files/swiftlint/cocoapods-and-react-native/ios/Pods/SwiftLint/swiftlint b/test/test-files/swiftlint/cocoapods-and-react-native/ios/Pods/SwiftLint/swiftlint new file mode 100644 index 00000000..e69de29b diff --git a/test/test-files/swiftlint/cocoapods/Pods/SwiftLint/swiftlint b/test/test-files/swiftlint/cocoapods/Pods/SwiftLint/swiftlint new file mode 100644 index 00000000..e69de29b diff --git a/test/test-files/swiftlint/react-native/ios/Pods/SwiftLint/swiftlint b/test/test-files/swiftlint/react-native/ios/Pods/SwiftLint/swiftlint new file mode 100644 index 00000000..e69de29b diff --git a/test/test-files/terraform/main.tf b/test/test-files/terraform/main.tf new file mode 100644 index 00000000..e69de29b diff --git a/test/test-files/tex/sample1.tex b/test/test-files/tex/sample1.tex new file mode 100644 index 00000000..e69de29b diff --git a/test/test-files/tex/sample2.tex b/test/test-files/tex/sample2.tex new file mode 100644 index 00000000..e69de29b diff --git a/test/test-files/tex/testfile.tex b/test/test-files/tex/testfile.tex new file mode 100644 index 00000000..e69de29b diff --git a/test/test-files/textlint/with_bin_path/node_modules/.bin/textlint b/test/test-files/textlint/with_bin_path/node_modules/.bin/textlint new file mode 100755 index 00000000..e69de29b diff --git a/test/test-files/textlint/with_textlint_bin_path/node_modules/textlint/bin/textlint.js b/test/test-files/textlint/with_textlint_bin_path/node_modules/textlint/bin/textlint.js new file mode 100755 index 00000000..e69de29b diff --git a/test/test-files/tflint/foo/.tflint.hcl b/test/test-files/tflint/foo/.tflint.hcl new file mode 100644 index 00000000..e69de29b diff --git a/test/test-files/tflint/foo/bar.tf b/test/test-files/tflint/foo/bar.tf new file mode 100644 index 00000000..e69de29b diff --git a/test/test-files/tidy/.tidyrc b/test/test-files/tidy/.tidyrc new file mode 100644 index 00000000..e69de29b diff --git a/test/test-files/tidy/test.html b/test/test-files/tidy/test.html new file mode 100644 index 00000000..e69de29b diff --git a/test/test-files/tidy/tidy b/test/test-files/tidy/tidy new file mode 100755 index 00000000..e69de29b diff --git a/test/test-files/tidy/tidy.exe b/test/test-files/tidy/tidy.exe new file mode 100755 index 00000000..e69de29b diff --git a/test/test-files/top/ale-special-directory-name-dont-use-this-please/empty-file b/test/test-files/top/ale-special-directory-name-dont-use-this-please/empty-file new file mode 100644 index 00000000..e69de29b diff --git a/test/test-files/top/example.ini b/test/test-files/top/example.ini new file mode 100644 index 00000000..e69de29b diff --git a/test/test-files/top/middle/bottom/dummy.txt b/test/test-files/top/middle/bottom/dummy.txt new file mode 100644 index 00000000..e69de29b diff --git a/test/test-files/tsserver/src/file1.ts b/test/test-files/tsserver/src/file1.ts new file mode 100644 index 00000000..e69de29b diff --git a/test/test-files/tsserver/src/level-1/file2.ts b/test/test-files/tsserver/src/level-1/file2.ts new file mode 100644 index 00000000..e69de29b diff --git a/test/test-files/tsserver/src/level-1/level-2/file3.ts b/test/test-files/tsserver/src/level-1/level-2/file3.ts new file mode 100644 index 00000000..e69de29b diff --git a/test/test-files/tsserver/src/level-1/tsconfig.json b/test/test-files/tsserver/src/level-1/tsconfig.json new file mode 100644 index 00000000..e69de29b diff --git a/test/test-files/tsserver/tsconfig.json b/test/test-files/tsserver/tsconfig.json new file mode 100644 index 00000000..e69de29b diff --git a/test/test-files/typescript/test.ts b/test/test-files/typescript/test.ts new file mode 100644 index 00000000..e69de29b diff --git a/test/test-files/typescript/tsconfig.json b/test/test-files/typescript/tsconfig.json new file mode 100644 index 00000000..e69de29b diff --git a/test/test-files/vim/invalid_vim_project/test.vim b/test/test-files/vim/invalid_vim_project/test.vim new file mode 100644 index 00000000..e69de29b diff --git a/test/test-files/vim/node_modules/.bin/vim-language-server b/test/test-files/vim/node_modules/.bin/vim-language-server new file mode 100644 index 00000000..e69de29b diff --git a/test/test-files/vim/path_with_autoload/autoload/test.vim b/test/test-files/vim/path_with_autoload/autoload/test.vim new file mode 100644 index 00000000..e69de29b diff --git a/test/test-files/vim/path_with_autoload/test.vim b/test/test-files/vim/path_with_autoload/test.vim new file mode 100644 index 00000000..e69de29b diff --git a/test/test-files/vim/path_with_initvim/init.vim b/test/test-files/vim/path_with_initvim/init.vim new file mode 100644 index 00000000..e69de29b diff --git a/test/test-files/vim/path_with_plugin/plugin/test.vim b/test/test-files/vim/path_with_plugin/plugin/test.vim new file mode 100644 index 00000000..e69de29b diff --git a/test/test-files/vim/path_with_plugin/test.vim b/test/test-files/vim/path_with_plugin/test.vim new file mode 100644 index 00000000..e69de29b diff --git a/test/test-files/vim/path_with_vimrc/.vimrc b/test/test-files/vim/path_with_vimrc/.vimrc new file mode 100644 index 00000000..e69de29b diff --git a/test/test-files/write-good/node-modules-2/node_modules/write-good/bin/write-good.js b/test/test-files/write-good/node-modules-2/node_modules/write-good/bin/write-good.js new file mode 100644 index 00000000..e69de29b diff --git a/test/test-files/write-good/node-modules/node_modules/.bin/write-good b/test/test-files/write-good/node-modules/node_modules/.bin/write-good new file mode 100644 index 00000000..e69de29b diff --git a/test/test-files/xo/monorepo/node_modules/xo/cli.js b/test/test-files/xo/monorepo/node_modules/xo/cli.js new file mode 100644 index 00000000..e69de29b diff --git a/test/test-files/xo/monorepo/package.json b/test/test-files/xo/monorepo/package.json new file mode 100644 index 00000000..e69de29b diff --git a/test/test-files/xo/monorepo/packages/a/index.js b/test/test-files/xo/monorepo/packages/a/index.js new file mode 100644 index 00000000..e69de29b diff --git a/test/test-files/xo/monorepo/packages/a/index.ts b/test/test-files/xo/monorepo/packages/a/index.ts new file mode 100644 index 00000000..e69de29b diff --git a/test/test-files/xo/monorepo/packages/a/package.json b/test/test-files/xo/monorepo/packages/a/package.json new file mode 100644 index 00000000..e69de29b diff --git a/test/test-files/zig/build.zig b/test/test-files/zig/build.zig new file mode 100644 index 00000000..e69de29b diff --git a/test/test-projects/angular/node_modules/@angular/language-server/bin/ngserver b/test/test-projects/angular/node_modules/@angular/language-server/bin/ngserver deleted file mode 100644 index e69de29b..00000000 diff --git a/test/test-projects/angular/node_modules/@angular/language-service/dummy b/test/test-projects/angular/node_modules/@angular/language-service/dummy deleted file mode 100644 index e69de29b..00000000 diff --git a/test/test_ant_build_classpath_command.vader b/test/test_ant_build_classpath_command.vader index 72a7688d..b97dc594 100644 --- a/test/test_ant_build_classpath_command.vader +++ b/test/test_ant_build_classpath_command.vader @@ -3,7 +3,7 @@ Before: runtime ale_linters/java/javac.vim Save $PATH - let $PATH = ale#path#Simplify(g:dir . '/ant-test-files/bin') + let $PATH = ale#path#Simplify(g:dir . '/test-files/ant/bin') After: Restore @@ -12,16 +12,16 @@ After: call ale#linter#Reset() Execute(Should return `cd '[dir]' && 'ant' classpath -S -q`): - call ale#test#SetFilename('ant-test-files/ant-project/Main.java') + call ale#test#SetFilename('test-files/ant/ant-project/Main.java') AssertEqual \ [ - \ ale#path#Simplify(g:dir . '/ant-test-files/ant-project'), + \ ale#path#Simplify(g:dir . '/test-files/ant/ant-project'), \ ale#Escape('ant') . ' classpath' . ' -S' . ' -q', \ ], \ ale#ant#BuildClasspathCommand(bufnr('')) Execute(Should return empty string if ant cannot be executed): - call ale#test#SetFilename('ant-test-files/not-an-ant-project/Main.java') + call ale#test#SetFilename('test-files/ant/not-an-ant-project/Main.java') AssertEqual ['', ''], ale#ant#BuildClasspathCommand(bufnr('')) diff --git a/test/test_ant_find_project_root.vader b/test/test_ant_find_project_root.vader index bde33f00..b0868ad7 100644 --- a/test/test_ant_find_project_root.vader +++ b/test/test_ant_find_project_root.vader @@ -7,28 +7,28 @@ After: call ale#linter#Reset() Execute(Should return current directory if called on the project root): - call ale#test#SetFilename('ant-test-files/ant-project/Main.java') + call ale#test#SetFilename('test-files/ant/ant-project/Main.java') AssertEqual - \ ale#path#Simplify(g:dir . '/ant-test-files/ant-project'), + \ ale#path#Simplify(g:dir . '/test-files/ant/ant-project'), \ ale#ant#FindProjectRoot(bufnr('')) Execute(Should return root directory if called on a deeply nested source file): - call ale#test#SetFilename('ant-test-files/ant-project/src/several/namespace/layers/A.java') + call ale#test#SetFilename('test-files/ant/ant-project/src/several/namespace/layers/A.java') AssertEqual - \ ale#path#Simplify(g:dir . '/ant-test-files/ant-project'), + \ ale#path#Simplify(g:dir . '/test-files/ant/ant-project'), \ ale#ant#FindProjectRoot(bufnr('')) Execute(Should return empty string if called on a non-ant project): - call ale#test#SetFilename('ant-test-files/non-ant-project/Main.java') + call ale#test#SetFilename('test-files/ant/non-ant-project/Main.java') AssertEqual \ '', \ ale#ant#FindProjectRoot(bufnr('')) Execute(Should return empty string if called on a file in a non-ant project): - call ale#test#SetFilename('ant-test-files/non-ant-project/several/namespace/layers/A.java') + call ale#test#SetFilename('test-files/ant/non-ant-project/several/namespace/layers/A.java') AssertEqual \ '', diff --git a/test/test_c_flag_parsing.vader b/test/test_c_flag_parsing.vader index 4329b573..4204d8ea 100644 --- a/test/test_c_flag_parsing.vader +++ b/test/test_c_flag_parsing.vader @@ -23,11 +23,11 @@ After: call ale#test#RestoreDirectory() Execute(The make command should be correct): - call ale#test#SetFilename('test_c_projects/makefile_project/subdir/file.c') + call ale#test#SetFilename('test-files/c/makefile_project/subdir/file.c') AssertEqual \ [ - \ ale#path#Simplify(g:dir. '/test_c_projects/makefile_project'), + \ ale#path#Simplify(g:dir. '/test-files/c/makefile_project'), \ 'make -n --always-make', \ ], \ ale#c#GetMakeCommand(bufnr('')) @@ -37,26 +37,26 @@ Execute(The make command should be correct): AssertEqual \ [ - \ ale#path#Simplify(g:dir. '/test_c_projects/makefile_project'), + \ ale#path#Simplify(g:dir. '/test-files/c/makefile_project'), \ 'make -n', \ ], \ ale#c#GetMakeCommand(bufnr('')) Execute(Should recognize GNUmakefile as a makefile): - call ale#test#SetFilename('test_c_projects/gnumakefile_project/file.c') + call ale#test#SetFilename('test-files/c/gnumakefile_project/file.c') AssertEqual \ [ - \ ale#path#Simplify(g:dir. '/test_c_projects/gnumakefile_project'), + \ ale#path#Simplify(g:dir. '/test-files/c/gnumakefile_project'), \ 'make -n --always-make', \ ], \ ale#c#GetMakeCommand(bufnr('')) Execute(The CFlags parser should be able to parse include directives): - call ale#test#SetFilename('test_c_projects/makefile_project/subdir/file.c') + call ale#test#SetFilename('test-files/c/makefile_project/subdir/file.c') AssertEqual - \ '-I' . ' ' . ale#Escape(ale#path#Simplify(g:dir. '/test_c_projects/makefile_project/subdir')), + \ '-I' . ' ' . ale#Escape(ale#path#Simplify(g:dir. '/test-files/c/makefile_project/subdir')), \ ale#c#ParseCFlagsFromMakeOutput(bufnr(''), ['gcc -Isubdir -c file.c']) AssertEqual @@ -64,43 +64,43 @@ Execute(The CFlags parser should be able to parse include directives): \ ale#c#ParseCFlagsFromMakeOutput(bufnr(''), ['gcc -isystem /usr/include/dir -c file.c']) Execute(ParseCFlags should ignore -c and -o): - call ale#test#SetFilename('test_c_projects/makefile_project/subdir/file.c') + call ale#test#SetFilename('test-files/c/makefile_project/subdir/file.c') AssertEqual - \ '-I' . ' ' . ale#Escape(ale#path#Simplify(g:dir. '/test_c_projects/makefile_project/subdir')), + \ '-I' . ' ' . ale#Escape(ale#path#Simplify(g:dir. '/test-files/c/makefile_project/subdir')), \ ale#c#ParseCFlagsFromMakeOutput(bufnr(''), ['gcc -Isubdir -c file.c -o a.out']) Execute(The CFlags parser should be able to parse macro directives): - call ale#test#SetFilename('test_c_projects/makefile_project/subdir/file.c') + call ale#test#SetFilename('test-files/c/makefile_project/subdir/file.c') AssertEqual - \ '-I' . ' ' . ale#Escape(ale#path#Simplify(g:dir. '/test_c_projects/makefile_project/subdir')) + \ '-I' . ' ' . ale#Escape(ale#path#Simplify(g:dir. '/test-files/c/makefile_project/subdir')) \ . ' -DTEST=1', \ ale#c#ParseCFlagsFromMakeOutput(bufnr(''), ['gcc -Isubdir -DTEST=1 -c file.c']) Execute(The CFlags parser should be able to parse macro directives with spaces): - call ale#test#SetFilename('test_c_projects/makefile_project/subdir/file.c') + call ale#test#SetFilename('test-files/c/makefile_project/subdir/file.c') AssertEqual - \ '-I' . ' ' . ale#Escape(ale#path#Simplify(g:dir. '/test_c_projects/makefile_project/subdir')) + \ '-I' . ' ' . ale#Escape(ale#path#Simplify(g:dir. '/test-files/c/makefile_project/subdir')) \ . ' -DTEST=$(( 2 * 4 ))', \ ale#c#ParseCFlagsFromMakeOutput(bufnr(''), ['gcc -Isubdir -DTEST=$(( 2 * 4 )) -c file.c']) Execute(The CFlags parser should be able to parse shell directives with spaces): - call ale#test#SetFilename('test_c_projects/makefile_project/subdir/file.c') + call ale#test#SetFilename('test-files/c/makefile_project/subdir/file.c') AssertEqual - \ '-I' . ' ' . ale#Escape(ale#path#Simplify(g:dir. '/test_c_projects/makefile_project/subdir')) + \ '-I' . ' ' . ale#Escape(ale#path#Simplify(g:dir. '/test-files/c/makefile_project/subdir')) \ . ' -DTEST=`date +%s`', \ ale#c#ParseCFlagsFromMakeOutput(bufnr(''), ['gcc -Isubdir -DTEST=`date +%s` -c file.c']) Execute(ParseCFlags should be able to parse flags with relative paths): AssertEqual - \ '-I' . ' ' . ale#Escape(ale#path#Simplify(g:dir. '/test_c_projects/makefile_project/subdir')) - \ . ' ' . '-I' . ' ' . ale#Escape(ale#path#Simplify(g:dir. '/test_c_projects/makefile_project/kernel/include')) + \ '-I' . ' ' . ale#Escape(ale#path#Simplify(g:dir. '/test-files/c/makefile_project/subdir')) + \ . ' ' . '-I' . ' ' . ale#Escape(ale#path#Simplify(g:dir. '/test-files/c/makefile_project/kernel/include')) \ . ' -DTEST=`date +%s`', \ SplitAndParse( - \ ale#path#Simplify(g:dir. '/test_c_projects/makefile_project'), + \ ale#path#Simplify(g:dir. '/test-files/c/makefile_project'), \ 'gcc -Isubdir ' \ . '-I'. ale#path#Simplify('kernel/include') \ . ' -DTEST=`date +%s` -c file.c' @@ -109,12 +109,12 @@ Execute(ParseCFlags should be able to parse flags with relative paths): Execute(We should handle paths with spaces in double quotes): AssertEqual \ '-Dgoal=9' - \ . ' ' . '-I' . ' ' . ale#Escape(ale#path#Simplify(g:dir. '/test_c_projects/makefile_project/subdir')) - \ . ' ' . '-I' . ' ' . ale#Escape(ale#path#Simplify(g:dir. '/test_c_projects/makefile_project/dir with spaces')) - \ . ' ' . '-I' . ' ' . ale#Escape(ale#path#Simplify(g:dir. '/test_c_projects/makefile_project/kernel/include')) + \ . ' ' . '-I' . ' ' . ale#Escape(ale#path#Simplify(g:dir. '/test-files/c/makefile_project/subdir')) + \ . ' ' . '-I' . ' ' . ale#Escape(ale#path#Simplify(g:dir. '/test-files/c/makefile_project/dir with spaces')) + \ . ' ' . '-I' . ' ' . ale#Escape(ale#path#Simplify(g:dir. '/test-files/c/makefile_project/kernel/include')) \ . ' -DTEST=`date +%s`', \ SplitAndParse( - \ ale#path#Simplify(g:dir. '/test_c_projects/makefile_project'), + \ ale#path#Simplify(g:dir. '/test-files/c/makefile_project'), \ 'gcc -Dgoal=9 -Tlinkerfile.ld blabla -Isubdir ' \ . '-I"dir with spaces"' . ' -I'. ale#path#Simplify('kernel/include') \ . ' -DTEST=`date +%s` -c file.c' @@ -123,12 +123,12 @@ Execute(We should handle paths with spaces in double quotes): Execute(ParseCFlags should handle paths with spaces in single quotes): AssertEqual \ '-Dgoal=9' - \ . ' ' . '-I' . ' ' . ale#Escape(ale#path#Simplify(g:dir. '/test_c_projects/makefile_project/subdir')) - \ . ' ' . '-I' . ' ' . ale#Escape(ale#path#Simplify(g:dir. '/test_c_projects/makefile_project/dir with spaces')) - \ . ' ' . '-I' . ' ' . ale#Escape(ale#path#Simplify(g:dir. '/test_c_projects/makefile_project/kernel/include')) + \ . ' ' . '-I' . ' ' . ale#Escape(ale#path#Simplify(g:dir. '/test-files/c/makefile_project/subdir')) + \ . ' ' . '-I' . ' ' . ale#Escape(ale#path#Simplify(g:dir. '/test-files/c/makefile_project/dir with spaces')) + \ . ' ' . '-I' . ' ' . ale#Escape(ale#path#Simplify(g:dir. '/test-files/c/makefile_project/kernel/include')) \ . ' -DTEST=`date +%s`', \ SplitAndParse( - \ ale#path#Simplify(g:dir. '/test_c_projects/makefile_project'), + \ ale#path#Simplify(g:dir. '/test-files/c/makefile_project'), \ 'gcc -Dgoal=9 -Tlinkerfile.ld blabla -Isubdir ' \ . '-I''dir with spaces''' . ' -I'. ale#path#Simplify('kernel/include') \ . ' -DTEST=`date +%s` -c file.c' @@ -137,13 +137,13 @@ Execute(ParseCFlags should handle paths with spaces in single quotes): Execute(ParseCFlags should handle paths with minuses): AssertEqual \ '-Dgoal=9' - \ . ' ' . '-I' . ' ' . ale#Escape(ale#path#Simplify(g:dir. '/test_c_projects/makefile_project/subdir')) - \ . ' ' . '-I' . ' ' . ale#Escape(ale#path#Simplify(g:dir. '/test_c_projects/makefile_project/dir with spaces')) - \ . ' ' . '-I' . ' ' . ale#Escape(ale#path#Simplify(g:dir. '/test_c_projects/makefile_project/dir-with-dash')) - \ . ' ' . '-I' . ' ' . ale#Escape(ale#path#Simplify(g:dir. '/test_c_projects/makefile_project/kernel/include')) + \ . ' ' . '-I' . ' ' . ale#Escape(ale#path#Simplify(g:dir. '/test-files/c/makefile_project/subdir')) + \ . ' ' . '-I' . ' ' . ale#Escape(ale#path#Simplify(g:dir. '/test-files/c/makefile_project/dir with spaces')) + \ . ' ' . '-I' . ' ' . ale#Escape(ale#path#Simplify(g:dir. '/test-files/c/makefile_project/dir-with-dash')) + \ . ' ' . '-I' . ' ' . ale#Escape(ale#path#Simplify(g:dir. '/test-files/c/makefile_project/kernel/include')) \ . ' -DTEST=`date +%s`', \ SplitAndParse( - \ ale#path#Simplify(g:dir. '/test_c_projects/makefile_project'), + \ ale#path#Simplify(g:dir. '/test-files/c/makefile_project'), \ 'gcc -Dgoal=9 -Tlinkerfile.ld blabla -Isubdir ' \ . '-I''dir with spaces''' . ' -Idir-with-dash' \ . ' -I'. ale#path#Simplify('kernel/include') @@ -153,14 +153,14 @@ Execute(ParseCFlags should handle paths with minuses): Execute(We should handle -D with minuses): AssertEqual \ '-Dgoal=9' - \ . ' ' . '-I' . ' ' . ale#Escape(ale#path#Simplify(g:dir. '/test_c_projects/makefile_project/subdir')) + \ . ' ' . '-I' . ' ' . ale#Escape(ale#path#Simplify(g:dir. '/test-files/c/makefile_project/subdir')) \ . ' -Dmacro-with-dash' - \ . ' ' . '-I' . ' ' . ale#Escape(ale#path#Simplify(g:dir. '/test_c_projects/makefile_project/dir with spaces')) - \ . ' ' . '-I' . ' ' . ale#Escape(ale#path#Simplify(g:dir. '/test_c_projects/makefile_project/dir-with-dash')) - \ . ' ' . '-I' . ' ' . ale#Escape(ale#path#Simplify(g:dir. '/test_c_projects/makefile_project/kernel/include')) + \ . ' ' . '-I' . ' ' . ale#Escape(ale#path#Simplify(g:dir. '/test-files/c/makefile_project/dir with spaces')) + \ . ' ' . '-I' . ' ' . ale#Escape(ale#path#Simplify(g:dir. '/test-files/c/makefile_project/dir-with-dash')) + \ . ' ' . '-I' . ' ' . ale#Escape(ale#path#Simplify(g:dir. '/test-files/c/makefile_project/kernel/include')) \ . ' -DTEST=`date +%s`', \ SplitAndParse( - \ ale#path#Simplify(g:dir. '/test_c_projects/makefile_project'), + \ ale#path#Simplify(g:dir. '/test-files/c/makefile_project'), \ 'gcc -Dgoal=9 -Tlinkerfile.ld blabla -Isubdir ' \ . '-Dmacro-with-dash ' \ . '-I''dir with spaces''' . ' -Idir-with-dash' @@ -171,13 +171,13 @@ Execute(We should handle -D with minuses): Execute(We should handle flags at the end of the line): AssertEqual \ '-Dgoal=9' - \ . ' ' . '-I' . ' ' . ale#Escape(ale#path#Simplify(g:dir. '/test_c_projects/makefile_project/subdir')) + \ . ' ' . '-I' . ' ' . ale#Escape(ale#path#Simplify(g:dir. '/test-files/c/makefile_project/subdir')) \ . ' -Dmacro-with-dash' - \ . ' ' . '-I' . ' ' . ale#Escape(ale#path#Simplify(g:dir. '/test_c_projects/makefile_project/dir with spaces')) - \ . ' ' . '-I' . ' ' . ale#Escape(ale#path#Simplify(g:dir. '/test_c_projects/makefile_project/dir-with-dash')) - \ . ' ' . '-I' . ' ' . ale#Escape(ale#path#Simplify(g:dir. '/test_c_projects/makefile_project/kernel/include')), + \ . ' ' . '-I' . ' ' . ale#Escape(ale#path#Simplify(g:dir. '/test-files/c/makefile_project/dir with spaces')) + \ . ' ' . '-I' . ' ' . ale#Escape(ale#path#Simplify(g:dir. '/test-files/c/makefile_project/dir-with-dash')) + \ . ' ' . '-I' . ' ' . ale#Escape(ale#path#Simplify(g:dir. '/test-files/c/makefile_project/kernel/include')), \ SplitAndParse( - \ ale#path#Simplify(g:dir. '/test_c_projects/makefile_project'), + \ ale#path#Simplify(g:dir. '/test-files/c/makefile_project'), \ 'gcc -Dgoal=9 -Tlinkerfile.ld blabla -Isubdir ' \ . '-Dmacro-with-dash ' \ . '-I''dir with spaces''' . ' -Idir-with-dash' @@ -489,14 +489,14 @@ Execute(ShellSplit should handle parenthesis and quotes): Execute(We should include several important flags): AssertEqual - \ '-I ' . ale#Escape(ale#path#Simplify(g:dir . '/test_c_projects/makefile_project/inc')) - \ . ' -I ' . ale#Escape(ale#path#Simplify(g:dir . '/test_c_projects/makefile_project/include')) - \ . ' -iquote ' . ale#Escape(ale#path#Simplify(g:dir . '/test_c_projects/makefile_project/incquote')) - \ . ' -isystem ' . ale#Escape(ale#path#Simplify(g:dir . '/test_c_projects/makefile_project/incsystem')) - \ . ' -idirafter ' . ale#Escape(ale#path#Simplify(g:dir. '/test_c_projects/makefile_project/incafter')) - \ . ' -iframework ' . ale#Escape(ale#path#Simplify(g:dir . '/test_c_projects/makefile_project/incframework')) - \ . ' -include ' . ale#Escape(ale#path#Simplify(g:dir . '/test_c_projects/makefile_project/foo bar')) - \ . ' -imacros ' . ale#Escape(ale#path#Simplify(g:dir . '/test_c_projects/makefile_project/incmacros')) + \ '-I ' . ale#Escape(ale#path#Simplify(g:dir . '/test-files/c/makefile_project/inc')) + \ . ' -I ' . ale#Escape(ale#path#Simplify(g:dir . '/test-files/c/makefile_project/include')) + \ . ' -iquote ' . ale#Escape(ale#path#Simplify(g:dir . '/test-files/c/makefile_project/incquote')) + \ . ' -isystem ' . ale#Escape(ale#path#Simplify(g:dir . '/test-files/c/makefile_project/incsystem')) + \ . ' -idirafter ' . ale#Escape(ale#path#Simplify(g:dir. '/test-files/c/makefile_project/incafter')) + \ . ' -iframework ' . ale#Escape(ale#path#Simplify(g:dir . '/test-files/c/makefile_project/incframework')) + \ . ' -include ' . ale#Escape(ale#path#Simplify(g:dir . '/test-files/c/makefile_project/foo bar')) + \ . ' -imacros ' . ale#Escape(ale#path#Simplify(g:dir . '/test-files/c/makefile_project/incmacros')) \ . ' -Dmacro="value"' \ . ' -DGoal=9' \ . ' -D macro2' @@ -509,7 +509,7 @@ Execute(We should include several important flags): \ . ' -foption -O2 -C -CC -trigraphs -nostdinc -nostdinc++' \ . ' -iplugindir=dir -march=native -w', \ ale#c#ParseCFlags( - \ ale#path#Simplify(g:dir. '/test_c_projects/makefile_project'), + \ ale#path#Simplify(g:dir. '/test-files/c/makefile_project'), \ 0, \ [ \ 'gcc', @@ -569,14 +569,14 @@ Execute(We should include several important flags): Execute(We should quote the flags we need to quote): AssertEqual - \ '-I ' . ale#Escape(ale#path#Simplify(g:dir . '/test_c_projects/makefile_project/inc')) - \ . ' -I ' . ale#Escape(ale#path#Simplify(g:dir . '/test_c_projects/makefile_project/include')) - \ . ' -iquote ' . ale#Escape(ale#path#Simplify(g:dir . '/test_c_projects/makefile_project/incquote')) - \ . ' -isystem ' . ale#Escape(ale#path#Simplify(g:dir . '/test_c_projects/makefile_project/incsystem')) - \ . ' -idirafter ' . ale#Escape(ale#path#Simplify(g:dir. '/test_c_projects/makefile_project/incafter')) - \ . ' -iframework ' . ale#Escape(ale#path#Simplify(g:dir . '/test_c_projects/makefile_project/incframework')) - \ . ' -include ' . ale#Escape(ale#path#Simplify(g:dir . '/test_c_projects/makefile_project/foo bar')) - \ . ' -imacros ' . ale#Escape(ale#path#Simplify(g:dir . '/test_c_projects/makefile_project/incmacros')) + \ '-I ' . ale#Escape(ale#path#Simplify(g:dir . '/test-files/c/makefile_project/inc')) + \ . ' -I ' . ale#Escape(ale#path#Simplify(g:dir . '/test-files/c/makefile_project/include')) + \ . ' -iquote ' . ale#Escape(ale#path#Simplify(g:dir . '/test-files/c/makefile_project/incquote')) + \ . ' -isystem ' . ale#Escape(ale#path#Simplify(g:dir . '/test-files/c/makefile_project/incsystem')) + \ . ' -idirafter ' . ale#Escape(ale#path#Simplify(g:dir. '/test-files/c/makefile_project/incafter')) + \ . ' -iframework ' . ale#Escape(ale#path#Simplify(g:dir . '/test-files/c/makefile_project/incframework')) + \ . ' -include ' . ale#Escape(ale#path#Simplify(g:dir . '/test-files/c/makefile_project/foo bar')) + \ . ' -imacros ' . ale#Escape(ale#path#Simplify(g:dir . '/test-files/c/makefile_project/incmacros')) \ . ' ' . ale#Escape('-Dmacro="value"') \ . ' -DGoal=9' \ . ' -D macro2' @@ -592,7 +592,7 @@ Execute(We should quote the flags we need to quote): \ . ' -foption -O2 -C -CC -trigraphs -nostdinc -nostdinc++' \ . ' -iplugindir=dir -march=native -w', \ ale#c#ParseCFlags( - \ ale#path#Simplify(g:dir. '/test_c_projects/makefile_project'), + \ ale#path#Simplify(g:dir. '/test-files/c/makefile_project'), \ 1, \ [ \ 'gcc', @@ -656,7 +656,7 @@ Execute(We should exclude other flags that cause problems): AssertEqual \ '', \ ale#c#ParseCFlags( - \ ale#path#Simplify(g:dir. '/test_c_projects/makefile_project'), + \ ale#path#Simplify(g:dir. '/test-files/c/makefile_project'), \ 0, \ [ \ 'gcc', @@ -678,7 +678,7 @@ Execute(We should expand @file in CFlags): AssertEqual \ '-DARGS1 -DARGS2 -O2', \ ale#c#ParseCFlags( - \ ale#path#Simplify(g:dir. '/test_c_projects/makefile_project'), + \ ale#path#Simplify(g:dir. '/test-files/c/makefile_project'), \ 0, \ [ \ 'gcc', diff --git a/test/test_c_projects/build_compile_commands_project/build/bad_folder_to_test_priority b/test/test_c_projects/build_compile_commands_project/build/bad_folder_to_test_priority deleted file mode 100644 index e69de29b..00000000 diff --git a/test/test_c_projects/build_compile_commands_project/build/compile_commands.json b/test/test_c_projects/build_compile_commands_project/build/compile_commands.json deleted file mode 100644 index e69de29b..00000000 diff --git a/test/test_c_projects/configure_project/Makefile b/test/test_c_projects/configure_project/Makefile deleted file mode 100644 index e69de29b..00000000 diff --git a/test/test_c_projects/configure_project/configure b/test/test_c_projects/configure_project/configure deleted file mode 100644 index e69de29b..00000000 diff --git a/test/test_c_projects/configure_project/include/test.h b/test/test_c_projects/configure_project/include/test.h deleted file mode 100644 index e69de29b..00000000 diff --git a/test/test_c_projects/configure_project/subdir/Makefile b/test/test_c_projects/configure_project/subdir/Makefile deleted file mode 100644 index e69de29b..00000000 diff --git a/test/test_c_projects/git_and_nested_makefiles/include/test.h b/test/test_c_projects/git_and_nested_makefiles/include/test.h deleted file mode 100644 index e69de29b..00000000 diff --git a/test/test_c_projects/git_and_nested_makefiles/src/Makefile b/test/test_c_projects/git_and_nested_makefiles/src/Makefile deleted file mode 100644 index e69de29b..00000000 diff --git a/test/test_c_projects/gnumakefile_project/GNUmakefile b/test/test_c_projects/gnumakefile_project/GNUmakefile deleted file mode 100644 index e69de29b..00000000 diff --git a/test/test_c_projects/gnumakefile_project/file.c b/test/test_c_projects/gnumakefile_project/file.c deleted file mode 100644 index e69de29b..00000000 diff --git a/test/test_c_projects/h_file_project/Makefile b/test/test_c_projects/h_file_project/Makefile deleted file mode 100644 index e69de29b..00000000 diff --git a/test/test_c_projects/h_file_project/subdir/dummy b/test/test_c_projects/h_file_project/subdir/dummy deleted file mode 100644 index e69de29b..00000000 diff --git a/test/test_c_projects/h_file_project/test.h b/test/test_c_projects/h_file_project/test.h deleted file mode 100644 index e69de29b..00000000 diff --git a/test/test_c_projects/hpp_file_project/Makefile b/test/test_c_projects/hpp_file_project/Makefile deleted file mode 100644 index e69de29b..00000000 diff --git a/test/test_c_projects/hpp_file_project/subdir/dummy b/test/test_c_projects/hpp_file_project/subdir/dummy deleted file mode 100644 index e69de29b..00000000 diff --git a/test/test_c_projects/hpp_file_project/test.hpp b/test/test_c_projects/hpp_file_project/test.hpp deleted file mode 100644 index e69de29b..00000000 diff --git a/test/test_c_projects/json_project/build/compile_commands.json b/test/test_c_projects/json_project/build/compile_commands.json deleted file mode 100644 index e69de29b..00000000 diff --git a/test/test_c_projects/json_project/include/test.h b/test/test_c_projects/json_project/include/test.h deleted file mode 100644 index e69de29b..00000000 diff --git a/test/test_c_projects/json_project/subdir/dummy b/test/test_c_projects/json_project/subdir/dummy deleted file mode 100644 index e69de29b..00000000 diff --git a/test/test_c_projects/makefile_project/Makefile b/test/test_c_projects/makefile_project/Makefile deleted file mode 100644 index e69de29b..00000000 diff --git a/test/test_c_projects/makefile_project/_astylerc b/test/test_c_projects/makefile_project/_astylerc deleted file mode 100644 index e69de29b..00000000 diff --git a/test/test_c_projects/makefile_project/args b/test/test_c_projects/makefile_project/args deleted file mode 100644 index ccaf82ad..00000000 --- a/test/test_c_projects/makefile_project/args +++ /dev/null @@ -1,3 +0,0 @@ -foolib.a --DARGS1 -@subdir/args diff --git a/test/test_c_projects/makefile_project/include/test.h b/test/test_c_projects/makefile_project/include/test.h deleted file mode 100644 index e69de29b..00000000 diff --git a/test/test_c_projects/makefile_project/subdir/args b/test/test_c_projects/makefile_project/subdir/args deleted file mode 100644 index 3fe9c3fe..00000000 --- a/test/test_c_projects/makefile_project/subdir/args +++ /dev/null @@ -1 +0,0 @@ --DARGS2 diff --git a/test/test_c_projects/makefile_project/subdir/dummy b/test/test_c_projects/makefile_project/subdir/dummy deleted file mode 100644 index e69de29b..00000000 diff --git a/test/test_c_projects/makefile_project/subdir/file.c b/test/test_c_projects/makefile_project/subdir/file.c deleted file mode 100644 index e69de29b..00000000 diff --git a/test/test_cpp_project/.astylerc b/test/test_cpp_project/.astylerc deleted file mode 100644 index e69de29b..00000000 diff --git a/test/test_cpp_project/dummy.cpp b/test/test_cpp_project/dummy.cpp deleted file mode 100644 index e69de29b..00000000 diff --git a/test/test_csslint_config_detection.vader b/test/test_csslint_config_detection.vader index 47e80d09..c8e5fa98 100644 --- a/test/test_csslint_config_detection.vader +++ b/test/test_csslint_config_detection.vader @@ -8,18 +8,18 @@ After: call ale#linter#Reset() Execute(--config should be set when the .csslintrc file is found): - call ale#test#SetFilename('csslint-test-files/some-app/subdir/testfile.js') + call ale#test#SetFilename('test-files/csslint/some-app/subdir/testfile.js') AssertEqual \ ( \ 'csslint --format=compact ' - \ . '--config=' . ale#Escape(ale#path#Simplify(g:dir . '/csslint-test-files/some-app/.csslintrc')) + \ . '--config=' . ale#Escape(ale#path#Simplify(g:dir . '/test-files/csslint/some-app/.csslintrc')) \ . ' %t' \ ), \ ale_linters#css#csslint#GetCommand(bufnr('')) Execute(--config should not be used when no .csslintrc file exists): - call ale#test#SetFilename('csslint-test-files/other-app/testfile.css') + call ale#test#SetFilename('test-files/csslint/other-app/testfile.css') AssertEqual \ ( diff --git a/test/test_find_nearest_directory.vader b/test/test_find_nearest_directory.vader index 2529950f..740668da 100644 --- a/test/test_find_nearest_directory.vader +++ b/test/test_find_nearest_directory.vader @@ -5,10 +5,10 @@ After: call ale#test#RestoreDirectory() Execute(We should be able to find a directory some directory down): - call ale#test#SetFilename('top/middle/bottom/dummy.txt') + call ale#test#SetFilename('test-files/top/middle/bottom/dummy.txt') AssertEqual - \ ale#path#Simplify(expand('%:p:h:h:h:h') . '/top/ale-special-directory-name-dont-use-this-please/'), + \ ale#path#Simplify(expand('%:p:h:h:h:h:h') . '/test-files/top/ale-special-directory-name-dont-use-this-please/'), \ ale#path#FindNearestDirectory(bufnr('%'), 'ale-special-directory-name-dont-use-this-please') Execute(We shouldn't find anything for files which don't match): diff --git a/test/test_flow_command.vader b/test/test_flow_command.vader deleted file mode 100644 index 4805e121..00000000 --- a/test/test_flow_command.vader +++ /dev/null @@ -1,46 +0,0 @@ -Before: - runtime ale_linters/javascript/flow.vim - - call ale#assert#SetUpLinterTest('javascript', 'flow') - call ale#test#SetDirectory('/testplugin/test/') - -After: - unlet! b:ale_javascript_flow_use_respect_pragma - call ale#assert#TearDownLinterTest() - -Execute(flow should return a command to run if a .flowconfig file exists): - call ale#test#SetFilename('flow/a/sub/dummy') - - AssertLinter 'flow', - \ ale#Escape('flow') - \ . ' check-contents --respect-pragma --json --from ale %s < %t' - \ . (!has('win32') ? '; echo' : '') - -Execute(flow should not use the respect pragma argument if the option is off): - call ale#test#SetFilename('flow/a/sub/dummy') - - let b:ale_javascript_flow_use_respect_pragma = 0 - - AssertLinter 'flow', - \ ale#Escape('flow') - \ . ' check-contents --json --from ale %s < %t' - \ . (!has('win32') ? '; echo' : '') - -Execute(flow should should not use --respect-pragma for old versions): - call ale#test#SetFilename('flow/a/sub/dummy') - - GivenCommandOutput [ - \ 'Warning: `flow --version` is deprecated in favor of `flow version`', - \ 'Flow, a static type checker for JavaScript, version 0.27.0', - \] - AssertLinter 'flow', [ - \ ale#Escape('flow') . ' --version', - \ ale#Escape('flow') - \ . ' check-contents --json --from ale %s < %t' - \ . (!has('win32') ? '; echo' : ''), - \] - -Execute(flow should not return a command to run if no .flowconfig file exists): - call ale#test#SetFilename('flow/b/sub/dummy') - - AssertLinterNotExecuted diff --git a/test/test_gradle_build_classpath_command.vader b/test/test_gradle_build_classpath_command.vader index e274797d..9557aa0d 100644 --- a/test/test_gradle_build_classpath_command.vader +++ b/test/test_gradle_build_classpath_command.vader @@ -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 \ ['', ''], diff --git a/test/test_gradle_find_executable.vader b/test/test_gradle_find_executable.vader index 5daa4906..f874748c 100644 --- a/test/test_gradle_find_executable.vader +++ b/test/test_gradle_find_executable.vader @@ -15,22 +15,22 @@ After: call ale#linter#Reset() Execute(Should return 'gradlew' if found in parent directory): - 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/gradlew'), + \ ale#path#Simplify(g:dir . '/test-files/gradle/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 .= (has('win32') ? ';': ':') . ale#path#Simplify(g:dir . '/gradle-test-files') + call ale#test#SetFilename('test-files/gradle/unwrapped-project/src/main/kotlin/dummy.kt') + let $PATH .= (has('win32') ? ';': ':') . ale#path#Simplify(g:dir . '/test-files/gradle') AssertEqual \ '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') + call ale#test#SetFilename('test-files/gradle/unwrapped-project/src/main/kotlin/dummy.kt') AssertEqual \ '', diff --git a/test/test_gradle_find_project_root.vader b/test/test_gradle_find_project_root.vader index 8305bba5..b6159188 100644 --- a/test/test_gradle_find_project_root.vader +++ b/test/test_gradle_find_project_root.vader @@ -7,28 +7,28 @@ After: call ale#linter#Reset() Execute(Should return directory for 'gradlew' if found in parent directory): - 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#path#Simplify(g:dir . '/test-files/gradle/wrapped-project'), \ ale#gradle#FindProjectRoot(bufnr('')) Execute(Should return directory for 'settings.gradle' if found in parent directory): - call ale#test#SetFilename('gradle-test-files/settings-gradle-project/src/main/kotlin/dummy.kt') + call ale#test#SetFilename('test-files/gradle/settings-gradle-project/src/main/kotlin/dummy.kt') AssertEqual - \ ale#path#Simplify(g:dir . '/gradle-test-files/settings-gradle-project'), + \ ale#path#Simplify(g:dir . '/test-files/gradle/settings-gradle-project'), \ ale#gradle#FindProjectRoot(bufnr('')) Execute(Should return directory for 'build.gradle' if found in parent directory): - call ale#test#SetFilename('gradle-test-files/build-gradle-project/src/main/kotlin/dummy.kt') + call ale#test#SetFilename('test-files/gradle/build-gradle-project/src/main/kotlin/dummy.kt') AssertEqual - \ ale#path#Simplify(g:dir . '/gradle-test-files/build-gradle-project'), + \ ale#path#Simplify(g:dir . '/test-files/gradle/build-gradle-project'), \ ale#gradle#FindProjectRoot(bufnr('')) Execute(Should return empty string if gradle files are not found in parent directory): - 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 \ '', diff --git a/test/test_hdl_checker_options.vader b/test/test_hdl_checker_options.vader index f93e3c1a..6e7eef46 100644 --- a/test/test_hdl_checker_options.vader +++ b/test/test_hdl_checker_options.vader @@ -50,20 +50,20 @@ Execute(Customize executable): \ ale#handlers#hdl_checker#GetCommand(bufnr('')) Execute(Get project root based on .git): - call ale#test#SetFilename('hdl_server/with_git/files/foo.vhd') + call ale#test#SetFilename('../test-files/hdl_server/with_git/files/foo.vhd') " Create .git file - silent! call mkdir(g:dir . '/hdl_server/with_git/.git') - AssertNotEqual '', glob(g:dir . '/hdl_server/with_git/.git') + silent! call mkdir(g:dir . '/../test-files/hdl_server/with_git/.git') + AssertNotEqual '', glob(g:dir . '/../test-files/hdl_server/with_git/.git') AssertEqual - \ ale#path#Simplify(g:dir . '/hdl_server/with_git'), + \ ale#path#Simplify(g:dir . '/../test-files/hdl_server/with_git'), \ ale#handlers#hdl_checker#GetProjectRoot(bufnr('')) Execute(Get project root based on config file): - call ale#test#SetFilename('hdl_server/with_config_file/foo.vhd') + call ale#test#SetFilename('../test-files/hdl_server/with_config_file/foo.vhd') AssertEqual - \ ale#path#Simplify(g:dir . '/hdl_server/with_config_file'), + \ ale#path#Simplify(g:dir . '/../test-files/hdl_server/with_config_file'), \ ale#handlers#hdl_checker#GetProjectRoot(bufnr('')) Execute(Return no project root if neither .git or config file are found): @@ -75,7 +75,7 @@ Execute(Return no project root if neither .git or config file are found): return 0 endfunction - call ale#test#SetFilename('hdl_server/foo.vhd') + call ale#test#SetFilename('../test-files/hdl_server/foo.vhd') AssertEqual \ '', diff --git a/test/test_jsonlint_executable_detection.vader b/test/test_jsonlint_executable_detection.vader index de52f846..60bc6d75 100644 --- a/test/test_jsonlint_executable_detection.vader +++ b/test/test_jsonlint_executable_detection.vader @@ -11,23 +11,23 @@ After: call ale#linter#Reset() Execute(local executable should be detected correctly): - call ale#test#SetFilename('jsonlint-test-files/app/src/app.json') + call ale#test#SetFilename('test-files/jsonlint/app/src/app.json') AssertEqual - \ ale#path#Simplify(g:dir . '/jsonlint-test-files/app/node_modules/.bin/jsonlint'), + \ ale#path#Simplify(g:dir . '/test-files/jsonlint/app/node_modules/.bin/jsonlint'), \ ale_linters#json#jsonlint#GetExecutable(bufnr('')) Execute(recursively executable should be detected correctly): - call ale#test#SetFilename('jsonlint-test-files/app-without-jsonlint/src/app.json') + call ale#test#SetFilename('test-files/jsonlint/app-without-jsonlint/src/app.json') AssertEqual - \ ale#path#Simplify(g:dir . '/jsonlint-test-files/node_modules/jsonlint/lib/cli.js'), + \ ale#path#Simplify(g:dir . '/test-files/jsonlint/node_modules/jsonlint/lib/cli.js'), \ ale_linters#json#jsonlint#GetExecutable(bufnr('')) Execute(use_global should override project executable): let g:ale_json_jsonlint_use_global = 1 - call ale#test#SetFilename('jsonlint-test-files/app/src/app.json') + call ale#test#SetFilename('test-files/jsonlint/app/src/app.json') AssertEqual \ 'jsonlint', @@ -37,7 +37,7 @@ Execute(manually defined should override default executable): let g:ale_json_jsonlint_use_global = 1 let g:ale_json_jsonlint_executable = 'custom_jsonlint' - call ale#test#SetFilename('jsonlint-test-files/app/src/app.json') + call ale#test#SetFilename('test-files/jsonlint/app/src/app.json') AssertEqual \ 'custom_jsonlint', diff --git a/test/test_kotlin_languageserver_path_detection.vader b/test/test_kotlin_languageserver_path_detection.vader deleted file mode 100644 index 36e6368e..00000000 --- a/test/test_kotlin_languageserver_path_detection.vader +++ /dev/null @@ -1,25 +0,0 @@ -Before: - call ale#test#SetDirectory('/testplugin/test') - runtime ale_linters/kotlin/languageserver.vim - -After: - call ale#test#RestoreDirectory() - call ale#linter#Reset() - -Execute(Detect root of gradle project with build.gradle correctly): - call ale#test#SetFilename('gradle-test-files/build-gradle-project/src/main/kotlin/dummy.kt') - AssertEqual - \ ale#path#Simplify(g:dir . '/gradle-test-files/build-gradle-project'), - \ ale_linters#kotlin#languageserver#GetProjectRoot(bufnr('')) - -Execute(Detect root of maven project with pom.xml correctly): - call ale#test#SetFilename('maven-test-files/maven-kotlin-project/src/main/kotlin/dummy.kt') - AssertEqual - \ ale#path#Simplify(g:dir . '/maven-test-files/maven-kotlin-project'), - \ ale_linters#kotlin#languageserver#GetProjectRoot(bufnr('')) - -Execute(Detect no root in case of non maven/gradle project): - call ale#test#SetFilename('gradle-test-files/non-gradle-project/src/main/kotlin/dummy.kt') - AssertEqual - \ '', - \ ale_linters#kotlin#languageserver#GetProjectRoot(bufnr('')) diff --git a/test/test_maven_build_classpath_command.vader b/test/test_maven_build_classpath_command.vader index 633bb2a1..c10f457b 100644 --- a/test/test_maven_build_classpath_command.vader +++ b/test/test_maven_build_classpath_command.vader @@ -22,31 +22,31 @@ After: call ale#linter#Reset() Execute(Should use 'mvnw' in classpath command if available): - call ale#test#SetFilename('maven-test-files/maven-java-project/module1/src/main/java/dummy1.java') + call ale#test#SetFilename('test-files/maven/maven-java-project/module1/src/main/java/dummy1.java') AssertEqual \ [ - \ ale#path#Simplify(g:dir . '/maven-test-files/maven-java-project/module1'), - \ ale#Escape(ale#path#Simplify(g:dir . '/maven-test-files/maven-java-project/module1/' . g:expected_wrapper)) + \ ale#path#Simplify(g:dir . '/test-files/maven/maven-java-project/module1'), + \ ale#Escape(ale#path#Simplify(g:dir . '/test-files/maven/maven-java-project/module1/' . g:expected_wrapper)) \ . ' dependency:build-classpath', \ ], \ ale#maven#BuildClasspathCommand(bufnr('')) Execute(Should use 'mvn' in classpath command if it is executable and 'mvnw' is unavailable): - call ale#test#SetFilename('maven-test-files/maven-java-project/module2/src/main/java/dummy2.java') + call ale#test#SetFilename('test-files/maven/maven-java-project/module2/src/main/java/dummy2.java') let $PATH .= (has('win32') ? ';' : ':') - \ . ale#path#Simplify(g:dir . '/maven-test-files') + \ . ale#path#Simplify(g:dir . '/test-files/maven') AssertEqual \ [ - \ ale#path#Simplify(g:dir . '/maven-test-files/maven-java-project/module2'), + \ ale#path#Simplify(g:dir . '/test-files/maven/maven-java-project/module2'), \ ale#Escape('mvn') \ . ' dependency:build-classpath', \ ], \ ale#maven#BuildClasspathCommand(bufnr('')) Execute(Should return empty string if maven cannot be executed): - call ale#test#SetFilename('maven-test-files/non-maven-project/src/main/java/dummy.java') + call ale#test#SetFilename('test-files/maven/non-maven-project/src/main/java/dummy.java') AssertEqual \ ['', ''], diff --git a/test/test_maven_find_executable.vader b/test/test_maven_find_executable.vader index 1d2f6da2..f0f06b12 100644 --- a/test/test_maven_find_executable.vader +++ b/test/test_maven_find_executable.vader @@ -23,16 +23,16 @@ After: call ale#linter#Reset() Execute(Should return 'mvnw' if found in parent directory): - call ale#test#SetFilename('maven-test-files/maven-java-project/module1/src/main/java/dummy1.java') + call ale#test#SetFilename('test-files/maven/maven-java-project/module1/src/main/java/dummy1.java') AssertEqual - \ ale#path#Simplify(g:dir . '/maven-test-files/maven-java-project/module1/' . g:expected_wrapper), + \ ale#path#Simplify(g:dir . '/test-files/maven/maven-java-project/module1/' . g:expected_wrapper), \ ale#maven#FindExecutable(bufnr('')) Execute(Should return 'mvn' if 'mvnw' not found in parent directory): - call ale#test#SetFilename('maven-test-files/maven-java-project/module2/src/main/java/dummy2.java') + call ale#test#SetFilename('test-files/maven/maven-java-project/module2/src/main/java/dummy2.java') let $PATH .= (has('win32') ? ';' : ':') - \ . ale#path#Simplify(g:dir . '/maven-test-files') + \ . ale#path#Simplify(g:dir . '/test-files/maven') AssertEqual \ 'mvn', diff --git a/test/test_maven_find_project_root.vader b/test/test_maven_find_project_root.vader index 3a2138d1..f761b2ef 100644 --- a/test/test_maven_find_project_root.vader +++ b/test/test_maven_find_project_root.vader @@ -7,21 +7,21 @@ After: call ale#linter#Reset() Execute(Should return directory for 'mvnw' if found in parent directory): - call ale#test#SetFilename('maven-test-files/maven-java-project/module1/src/main/java/dummy1.java') + call ale#test#SetFilename('test-files/maven/maven-java-project/module1/src/main/java/dummy1.java') AssertEqual - \ ale#path#Simplify(g:dir . '/maven-test-files/maven-java-project/module1'), + \ ale#path#Simplify(g:dir . '/test-files/maven/maven-java-project/module1'), \ ale#maven#FindProjectRoot(bufnr('')) Execute(Should return directory for 'pom.xml' if found in parent directory): - call ale#test#SetFilename('maven-test-files/maven-java-project/module2/src/main/java/dummy2.java') + call ale#test#SetFilename('test-files/maven/maven-java-project/module2/src/main/java/dummy2.java') AssertEqual - \ ale#path#Simplify(g:dir . '/maven-test-files/maven-java-project/module2'), + \ ale#path#Simplify(g:dir . '/test-files/maven/maven-java-project/module2'), \ ale#maven#FindProjectRoot(bufnr('')) Execute(Should return empty string if maven files are not found in parent directory): - call ale#test#SetFilename('maven-test-files/non-maven-project/src/main/java/dummy.java') + call ale#test#SetFilename('test-files/maven/non-maven-project/src/main/java/dummy.java') AssertEqual \ '', diff --git a/test/test_nearest_file_search.vader b/test/test_nearest_file_search.vader index 10d2cb36..f5c12de4 100644 --- a/test/test_nearest_file_search.vader +++ b/test/test_nearest_file_search.vader @@ -5,10 +5,10 @@ After: call ale#test#RestoreDirectory() Execute(We should be able to find a configuration file further up): - call ale#test#SetFilename('top/middle/bottom/dummy.txt') + call ale#test#SetFilename('test-files/top/middle/bottom/dummy.txt') AssertEqual - \ ale#path#Simplify(expand('%:p:h:h:h:h') . '/top/example.ini'), + \ ale#path#Simplify(expand('%:p:h:h:h:h:h') . '/test-files/top/example.ini'), \ ale#path#FindNearestFile(bufnr('%'), 'example.ini') Execute(We shouldn't find anything for files which don't match): diff --git a/test/test_nimlsp_project_root.vader b/test/test_nimlsp_project_root.vader index e7027575..d10989b3 100644 --- a/test/test_nimlsp_project_root.vader +++ b/test/test_nimlsp_project_root.vader @@ -12,7 +12,7 @@ After: Execute(Detect root of nim project with .git/ correctly): - call ale#test#SetFilename('nim-test-files/with-git/src/source.nim') + call ale#test#SetFilename('test-files/nim/with-git/src/source.nim') call mkdir(g:dir . '/.git') AssertEqual \ ale#path#Simplify(g:dir), diff --git a/test/test_puppet_path_detection.vader b/test/test_puppet_path_detection.vader index f8d3a0fa..e918e916 100644 --- a/test/test_puppet_path_detection.vader +++ b/test/test_puppet_path_detection.vader @@ -8,15 +8,15 @@ After: call ale#linter#Reset() Execute(old-style module should find its root correctly): - call ale#test#SetFilename('puppet-test-files/old-style-module/manifests/init.pp') + call ale#test#SetFilename('test-files/puppet/old-style-module/manifests/init.pp') AssertEqual - \ ale#path#Simplify(g:dir . '/puppet-test-files/old-style-module'), + \ ale#path#Simplify(g:dir . '/test-files/puppet/old-style-module'), \ ale_linters#puppet#languageserver#GetProjectRoot(bufnr('')) Execute(new-style module should find its root correctly): - call ale#test#SetFilename('puppet-test-files/new-style-module/lib/puppet/types/exampletype.rb') + call ale#test#SetFilename('test-files/puppet/new-style-module/lib/puppet/types/exampletype.rb') AssertEqual - \ ale#path#Simplify(g:dir . '/puppet-test-files/new-style-module'), + \ ale#path#Simplify(g:dir . '/test-files/puppet/new-style-module'), \ ale_linters#puppet#languageserver#GetProjectRoot(bufnr('')) diff --git a/test/test_python_find_project_root.vader b/test/test_python_find_project_root.vader index 176e819a..e323c866 100644 --- a/test/test_python_find_project_root.vader +++ b/test/test_python_find_project_root.vader @@ -5,7 +5,7 @@ After: call ale#test#RestoreDirectory() Execute(Detect root of Python project with .flake8 correctly): - call ale#test#SetFilename('python-test-files/python-package-project/package-name/module.py') + call ale#test#SetFilename('test-files/python/python-package-project/package-name/module.py') AssertEqual - \ ale#path#Simplify(g:dir . '/python-test-files/python-package-project'), + \ ale#path#Simplify(g:dir . '/test-files/python/python-package-project'), \ ale#python#FindProjectRoot(bufnr('')) diff --git a/test/test_python_pipenv.vader b/test/test_python_pipenv.vader index 91d957f8..8b1e9ab0 100644 --- a/test/test_python_pipenv.vader +++ b/test/test_python_pipenv.vader @@ -1,12 +1,18 @@ +Before: + call ale#test#SetDirectory('/testplugin/test') + +After: + call ale#test#RestoreDirectory() + Execute(ale#python#PipenvPresent is true when a pipenv environment is present): - call ale#test#SetFilename('/testplugin/test/python_fixtures/pipenv/whatever.py') + call ale#test#SetFilename('test-files/python/pipenv/whatever.py') AssertEqual \ ale#python#PipenvPresent(bufnr('%')), \ 1 Execute(ale#python#PipenvPresent is false true when no pipenv environment is present): - call ale#test#SetFilename('/testplugin/test/python_fixtures/no_pipenv/whatever.py') + call ale#test#SetFilename('test-files/python/no_pipenv/whatever.py') AssertEqual \ ale#python#PipenvPresent(bufnr('%')), diff --git a/test/test_resolve_local_path.vader b/test/test_resolve_local_path.vader index 3f0fb20a..d8a8ec52 100644 --- a/test/test_resolve_local_path.vader +++ b/test/test_resolve_local_path.vader @@ -5,10 +5,10 @@ After: call ale#test#RestoreDirectory() Execute(We should be able to find the local version of a file): - call ale#test#SetFilename('top/middle/bottom/dummy.txt') + call ale#test#SetFilename('test-files/top/middle/bottom/dummy.txt') AssertEqual - \ ale#path#Simplify(expand('%:p:h:h:h:h') . '/top/example.ini'), + \ ale#path#Simplify(expand('%:p:h:h:h:h:h') . '/test-files/top/example.ini'), \ ale#path#ResolveLocalPath(bufnr('%'), 'example.ini', '/global/config.ini') Execute(We shouldn't find anything for files which don't match): diff --git a/test/test_sml_command.vader b/test/test_sml_command.vader index d26f650f..e89486c4 100644 --- a/test/test_sml_command.vader +++ b/test/test_sml_command.vader @@ -6,40 +6,40 @@ After: call ale#linter#Reset() Execute(smlnj finds CM file if it exists): - call ale#test#SetFilename('smlnj/cm/foo.sml') + call ale#test#SetFilename('test-files/smlnj/cm/foo.sml') AssertEqual - \ ale#path#Simplify(g:dir . '/smlnj/cm/sources.cm'), + \ ale#test#GetFilename('test-files/smlnj/cm/sources.cm'), \ ale#handlers#sml#GetCmFile(bufnr('%')) Execute(smlnj finds CM file by searching upwards): - call ale#test#SetFilename('smlnj/cm/path/to/bar.sml') + call ale#test#SetFilename('test-files/smlnj/cm/path/to/bar.sml') AssertEqual - \ ale#path#Simplify(g:dir . '/smlnj/cm/sources.cm'), + \ ale#test#GetFilename('test-files/smlnj/cm/sources.cm'), \ ale#handlers#sml#GetCmFile(bufnr('%')) Execute(smlnj returns '' when no CM file found): - call ale#test#SetFilename('smlnj/file/qux.sml') + call ale#test#SetFilename('test-files/smlnj/file/qux.sml') AssertEqual '', ale#handlers#sml#GetCmFile(bufnr('%')) Execute(CM-project mode enabled when CM file found): - call ale#test#SetFilename('smlnj/cm/foo.sml') + call ale#test#SetFilename('test-files/smlnj/cm/foo.sml') AssertEqual 'sml', ale#handlers#sml#GetExecutableSmlnjCm(bufnr('%')) Execute(single-file mode disabled when CM file found): - call ale#test#SetFilename('smlnj/cm/foo.sml') + call ale#test#SetFilename('test-files/smlnj/cm/foo.sml') AssertEqual '', ale#handlers#sml#GetExecutableSmlnjFile(bufnr('%')) Execute(CM-project mode disabled when CM file not found): - call ale#test#SetFilename('smlnj/file/qux.sml') + call ale#test#SetFilename('test-files/smlnj/file/qux.sml') AssertEqual '', ale#handlers#sml#GetExecutableSmlnjCm(bufnr('%')) Execute(single-file mode enabled when CM file found): - call ale#test#SetFilename('smlnj/file/qux.sml') + call ale#test#SetFilename('test-files/smlnj/file/qux.sml') AssertEqual 'sml', ale#handlers#sml#GetExecutableSmlnjFile(bufnr('%')) diff --git a/test/test_socket_connections.vader b/test/test_socket_connections.vader index 9ea5580d..c59b942d 100644 --- a/test/test_socket_connections.vader +++ b/test/test_socket_connections.vader @@ -30,13 +30,13 @@ Before: let g:port = 10347 let g:pid_tcp = str2nr(system( \ 'python' - \ . ' ' . ale#Escape(g:dir . '/dumb_tcp_server.py') + \ . ' ' . ale#Escape(g:dir . '/script/dumb_tcp_server.py') \ . ' ' . g:port \)) - let g:pipe_path = 'tmp_named_pipe' + let g:pipe_path = tempname() let g:pid_pipe = str2nr(system( \ 'python' - \ . ' ' . ale#Escape(g:dir . '/dumb_named_pipe_server.py') + \ . ' ' . ale#Escape(g:dir . '/script/dumb_named_pipe_server.py') \ . ' ' . g:pipe_path \)) endif @@ -104,7 +104,7 @@ Execute(Sending and receiving connections to tcp sockets should work): endif Execute(Sending and receiving connections to named pipe sockets should work): - if g:can_run_socket_tests && has('nvim') + if g:can_run_socket_tests && has('nvim-0.4') let g:channel_id = ale#socket#Open( \ g:pipe_path, \ {'callback': function('TestCallback')} @@ -131,9 +131,9 @@ Execute(Sending and receiving connections to named pipe sockets should work): endif " NeoVim versions which can't connect to sockets should just fail. - if has('nvim') && !exists('*chanclose') + if has('nvim-0.4') && !exists('*chanclose') AssertEqual -1, ale#socket#Open( - \ 'tmp_named_pipe', + \ g:pipe_path, \ {'callback': function('function')} \) endif diff --git a/test/test_swift_find_project_root.vader b/test/test_swift_find_project_root.vader index 7cb1cc29..88a26021 100644 --- a/test/test_swift_find_project_root.vader +++ b/test/test_swift_find_project_root.vader @@ -5,13 +5,13 @@ After: call ale#test#RestoreDirectory() Execute(Detect root of Swift project with Package.swift correctly): - call ale#test#SetFilename('swift-test-files/swift-package-project/src/folder/dummy.swift') + call ale#test#SetFilename('test-files/swift/swift-package-project/src/folder/dummy.swift') AssertEqual - \ ale#path#Simplify(g:dir . '/swift-test-files/swift-package-project'), + \ ale#path#Simplify(g:dir . '/test-files/swift/swift-package-project'), \ ale#swift#FindProjectRoot(bufnr('')) Execute(Detect no root in case of non-Package.swift project): - call ale#test#SetFilename('swift-test-files/non-swift-package-project/src/folder/dummy.swift') + call ale#test#SetFilename('test-files/swift/non-swift-package-project/src/folder/dummy.swift') AssertEqual \ '', \ ale#swift#FindProjectRoot(bufnr('')) diff --git a/test/test_swiftlint_executable_detection.vader b/test/test_swiftlint_executable_detection.vader deleted file mode 100644 index ac83ff8f..00000000 --- a/test/test_swiftlint_executable_detection.vader +++ /dev/null @@ -1,49 +0,0 @@ -Before: - let g:ale_swift_swiftlint_executable = 'swiftlint_d' - - call ale#test#SetDirectory('/testplugin/test') - - runtime ale_linters/swift/swiftlint.vim - -After: - let g:ale_swift_swiftlint_executable = 'swiftlint' - let g:ale_swift_swiftlint_use_global = 0 - - call ale#test#RestoreDirectory() - call ale#linter#Reset() - -Execute(Global installation should be the default executable): - call ale#test#SetFilename('swiftlint-test-files/global/testfile.swift') - - AssertEqual - \ 'swiftlint_d', - \ ale_linters#swift#swiftlint#GetExecutable(bufnr('')) - -Execute(React Native apps using CocoaPods should take precedence over the default executable): - call ale#test#SetFilename('swiftlint-test-files/react-native/testfile.swift') - - AssertEqual - \ tolower(ale#path#Simplify(g:dir . '/swiftlint-test-files/react-native/ios/Pods/SwiftLint/swiftlint')), - \ tolower(ale_linters#swift#swiftlint#GetExecutable(bufnr(''))) - -Execute(CocoaPods installation should take precedence over the default executable): - call ale#test#SetFilename('swiftlint-test-files/cocoapods/testfile.swift') - - AssertEqual - \ tolower(ale#path#Simplify(g:dir . '/swiftlint-test-files/cocoapods/Pods/SwiftLint/swiftlint')), - \ tolower(ale_linters#swift#swiftlint#GetExecutable(bufnr(''))) - -Execute(Top level CocoaPods installation should take precedence over React Native installation): - call ale#test#SetFilename('swiftlint-test-files/cocoapods-and-react-native/testfile.swift') - - AssertEqual - \ tolower(ale#path#Simplify(g:dir . '/swiftlint-test-files/cocoapods-and-react-native/Pods/SwiftLint/swiftlint')), - \ tolower(ale_linters#swift#swiftlint#GetExecutable(bufnr(''))) - -Execute(use-global should override other versions): - let g:ale_swift_swiftlint_use_global = 1 - call ale#test#SetFilename('swiftlint-test-files/cocoapods-and-react-native/testfile.swift') - - AssertEqual - \ 'swiftlint_d', - \ ale_linters#swift#swiftlint#GetExecutable(bufnr('')) diff --git a/test/tex_files/testfile.tex b/test/tex_files/testfile.tex deleted file mode 100644 index e69de29b..00000000 diff --git a/test/tflint-test-files/foo/.tflint.hcl b/test/tflint-test-files/foo/.tflint.hcl deleted file mode 100644 index e69de29b..00000000 diff --git a/test/tflint-test-files/foo/bar.tf b/test/tflint-test-files/foo/bar.tf deleted file mode 100644 index e69de29b..00000000 diff --git a/test/top/ale-special-directory-name-dont-use-this-please/empty-file b/test/top/ale-special-directory-name-dont-use-this-please/empty-file deleted file mode 100644 index e69de29b..00000000 diff --git a/test/top/example.ini b/test/top/example.ini deleted file mode 100644 index e69de29b..00000000 diff --git a/test/top/middle/bottom/dummy.txt b/test/top/middle/bottom/dummy.txt deleted file mode 100644 index e69de29b..00000000 diff --git a/test/typescript/test.ts b/test/typescript/test.ts deleted file mode 100644 index e69de29b..00000000 diff --git a/test/typescript/tsconfig.json b/test/typescript/tsconfig.json deleted file mode 100644 index e69de29b..00000000 diff --git a/test/xo-test-files/monorepo/node_modules/xo/cli.js b/test/xo-test-files/monorepo/node_modules/xo/cli.js deleted file mode 100644 index e69de29b..00000000 diff --git a/test/xo-test-files/monorepo/package.json b/test/xo-test-files/monorepo/package.json deleted file mode 100644 index e69de29b..00000000 diff --git a/test/xo-test-files/monorepo/packages/a/index.js b/test/xo-test-files/monorepo/packages/a/index.js deleted file mode 100644 index e69de29b..00000000 diff --git a/test/xo-test-files/monorepo/packages/a/index.ts b/test/xo-test-files/monorepo/packages/a/index.ts deleted file mode 100644 index e69de29b..00000000 diff --git a/test/xo-test-files/monorepo/packages/a/package.json b/test/xo-test-files/monorepo/packages/a/package.json deleted file mode 100644 index e69de29b..00000000 -- cgit v1.2.3