summaryrefslogtreecommitdiff
path: root/.emacs.d/lisp/rust-cargo-tests.el
diff options
context:
space:
mode:
Diffstat (limited to '.emacs.d/lisp/rust-cargo-tests.el')
-rw-r--r--.emacs.d/lisp/rust-cargo-tests.el16
1 files changed, 16 insertions, 0 deletions
diff --git a/.emacs.d/lisp/rust-cargo-tests.el b/.emacs.d/lisp/rust-cargo-tests.el
index 1b072ee..a029b2a 100644
--- a/.emacs.d/lisp/rust-cargo-tests.el
+++ b/.emacs.d/lisp/rust-cargo-tests.el
@@ -60,6 +60,22 @@
60 (rust-test--wait-process-exit) 60 (rust-test--wait-process-exit)
61 (should (rust-test--find-string "***run interactive: 1234"))))) 61 (should (rust-test--find-string "***run interactive: 1234")))))
62 62
63(ert-deftest rust-test-test ()
64 (skip-unless (executable-find rust-cargo-bin))
65 (setq rust-cargo-default-arguments "")
66 (rust-test--with-main-file-buffer
67 (with-current-buffer (rust-test)
68 (rust-test--wait-process-exit)
69 (should (rust-test--find-string "running 1 test")))))
70
71(ert-deftest rust-test-test-with-arg ()
72 (skip-unless (executable-find rust-cargo-bin))
73 (setq rust-cargo-default-arguments "")
74 (rust-test--with-main-file-buffer
75 (with-current-buffer (rust-test t t)
76 (rust-test--wait-process-exit)
77 (should (rust-test--find-string "***output test")))))
78
63(ert-deftest rust-test-rustfmt () 79(ert-deftest rust-test-rustfmt ()
64 (skip-unless (executable-find "rustfmt")) 80 (skip-unless (executable-find "rustfmt"))
65 (rust-test--with-main-file-buffer 81 (rust-test--with-main-file-buffer