File tree 2 files changed +11
-3
lines changed
2 files changed +11
-3
lines changed Original file line number Diff line number Diff line change 29
29
with :
30
30
lein : 2.11.2
31
31
32
+ - run : sudo apt install -y neovim
33
+
32
34
- name : Cache m2
33
35
uses : actions/cache@v3
34
36
env :
Original file line number Diff line number Diff line change 31
31
:actual (slurp actual)
32
32
:actual-file actual})))
33
33
34
- ; ; TODO: do this parallisation more intelligently with agents.
35
- (deftest test-indent
36
- " Runs all indentation tests in parallel"
34
+ (defn- run-tests []
37
35
(let [test-case-dir (io/file (io/resource " indent-test-cases" ))
38
36
test-cases (get-test-cases test-case-dir)]
39
37
(doseq [{:keys [test-case expected expected-file actual actual-file]}
40
38
(pmap (partial run-test-case test-case-dir) test-cases)]
41
39
(testing test-case
42
40
(is (= expected actual)
43
41
(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