File tree Expand file tree Collapse file tree 2 files changed +11
-3
lines changed Expand file tree Collapse file tree 2 files changed +11
-3
lines changed Original file line number Diff line number Diff line change 2929 with :
3030 lein : 2.11.2
3131
32+ - run : sudo apt install -y neovim
33+
3234 - name : Cache m2
3335 uses : actions/cache@v3
3436 env :
Original file line number Diff line number Diff line change 3131 :actual (slurp actual)
3232 :actual-file actual})))
3333
34- ; ; TODO: do this parallisation more intelligently with agents.
35- (deftest test-indent
36- " Runs all indentation tests in parallel"
34+ (defn- run-tests []
3735 (let [test-case-dir (io/file (io/resource " indent-test-cases" ))
3836 test-cases (get-test-cases test-case-dir)]
3937 (doseq [{:keys [test-case expected expected-file actual actual-file]}
4038 (pmap (partial run-test-case test-case-dir) test-cases)]
4139 (testing test-case
4240 (is (= expected actual)
4341 (format " (not= \" %s\"\n \" %s\" )" expected-file actual-file))))))
42+
43+ (deftest test-indent-vim
44+ " Runs all indentation tests in parallel against Vim"
45+ (run-tests ))
46+
47+ (deftest test-indent-nvim
48+ " Runs all indentation tests in parallel against Neovim"
49+ (binding [h/*vim* " nvim" ] (run-tests )))
You can’t perform that action at this time.
0 commit comments