[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] master e3f8908 186/399: ivy-test.el: Make friendlier
From: |
Oleh Krehel |
Subject: |
[elpa] master e3f8908 186/399: ivy-test.el: Make friendlier |
Date: |
Sat, 20 Jul 2019 14:57:20 -0400 (EDT) |
branch: master
commit e3f89081fe853eb26d822690d352efc01a3d0af1
Author: Basil L. Contovounesios <address@hidden>
Commit: Basil L. Contovounesios <address@hidden>
ivy-test.el: Make friendlier
Do not pass arbitrary text as first argument to message. Do not
clone remote Git repositories at toplevel. Cloning repositories
shouldn't be needed at all for the purpose of accessing test data,
but even if it were, those commands belong in Makefile or similar,
not at the test suite's toplevel.
For discussion, see:
https://github.com/abo-abo/swiper/commit/7e735808e966d70340b5a2cef0430f913151d9b6
https://github.com/abo-abo/swiper/commit/fa87b977aecbc7ee5f3b77ddf94c6f040e17c348
https://github.com/abo-abo/swiper/commit/4171364ab3cdb21eabb45657a8d20bd85f3ecc9b
(counsel-find-file-with-dollars, counsel-find-file-with-dollars):
Use skip-unless.
---
ivy-test.el | 30 ++++++++++++++----------------
1 file changed, 14 insertions(+), 16 deletions(-)
diff --git a/ivy-test.el b/ivy-test.el
index 4091738..f4d727e 100644
--- a/ivy-test.el
+++ b/ivy-test.el
@@ -35,7 +35,7 @@
(require 'ivy)
(require 'counsel)
-(message (emacs-version))
+(message "%s" (emacs-version))
(defvar ivy-expr nil
"Holds a test expression to evaluate with `ivy-eval'.")
@@ -1095,10 +1095,8 @@ a buffer visiting a file."
"C-p C-m")
""))))
-(unless (file-exists-p "test")
- (shell-command "git clone -b test --single-branch
https://github.com/abo-abo/swiper/ test"))
-
(ert-deftest counsel-find-file-with-dollars ()
+ (skip-unless (file-exists-p "test"))
(should (string=
(file-relative-name
(ivy-with '(counsel-find-file) "fo C-m"
@@ -1106,18 +1104,18 @@ a buffer visiting a file."
"test/find-file/files-with-dollar/foo$")))
(ert-deftest counsel-find-file-with-dotfiles ()
- (when (and (version<= emacs-version "26.2")
- (not (version< emacs-version "26.1")))
- (should (string=
- (file-relative-name
- (ivy-with '(counsel-find-file) "f C-m"
- :dir "test/find-file/dotfiles/"))
- "test/find-file/dotfiles/foo/"))
- (should (string=
- (file-relative-name
- (ivy-with '(counsel-find-file) "foob C-m"
- :dir "test/find-file/dotfiles/"))
- "test/find-file/dotfiles/.foobar1"))))
+ (skip-unless (and (file-exists-p "test")
+ (= emacs-major-version 26)))
+ (should (string=
+ (file-relative-name
+ (ivy-with '(counsel-find-file) "f C-m"
+ :dir "test/find-file/dotfiles/"))
+ "test/find-file/dotfiles/foo/"))
+ (should (string=
+ (file-relative-name
+ (ivy-with '(counsel-find-file) "foob C-m"
+ :dir "test/find-file/dotfiles/"))
+ "test/find-file/dotfiles/.foobar1")))
(provide 'ivy-test)
- [elpa] master d829338 190/399: counsel.el (counsel-recentf): Require match, (continued)
- [elpa] master d829338 190/399: counsel.el (counsel-recentf): Require match, Oleh Krehel, 2019/07/20
- [elpa] master 39f5c24 187/399: ivy-test.el: Use :expected-result, Oleh Krehel, 2019/07/20
- [elpa] master a9f9e41 189/399: Add counsel-descbinds-action-exec, Oleh Krehel, 2019/07/20
- [elpa] master 80d9c17 188/399: Makefile: Clone tests/ if needed, Oleh Krehel, 2019/07/20
- [elpa] master 6516265 192/399: ivy-overlay.el: Do not assume in-buffer completion, Oleh Krehel, 2019/07/20
- [elpa] master 6263d04 193/399: counsel.el (counsel-find-file): Improve mkdir action with ivy-call, Oleh Krehel, 2019/07/20
- [elpa] master 31e57e7 181/399: ivy-test.el (counsel-find-file-with-dotfiles): Disable for older Emacs, Oleh Krehel, 2019/07/20
- [elpa] master f52b0ac 175/399: ivy.el (ivy--filter): Don't cache if ivy--old-cands is empty, Oleh Krehel, 2019/07/20
- [elpa] master 2221a5c 177/399: ivy-test.el (counsel-find-file-with-dotfiles): Add test, Oleh Krehel, 2019/07/20
- [elpa] master 0467f5b 191/399: doc/ivy.org: Correct typo, Oleh Krehel, 2019/07/20
- [elpa] master e3f8908 186/399: ivy-test.el: Make friendlier,
Oleh Krehel <=
- [elpa] master 891be1d 199/399: counsel.el (counsel-org-file): Handle ATTACH_DIR property, Oleh Krehel, 2019/07/20
- [elpa] master 4f12a59 196/399: counsel.el (counsel-find-file-mkdir-action): Add trailing "/", Oleh Krehel, 2019/07/20
- [elpa] master 62a2c7e 195/399: counsel.el (counsel-find-file): Improve copy and move actions, Oleh Krehel, 2019/07/20
- [elpa] master d8136a2 200/399: doc/ivy.org: Remove outdated magit customization, Oleh Krehel, 2019/07/20
- [elpa] master ca8d5ba 197/399: ivy.el (ivy-partial): Adjust ivy-tab-space when one candidate, Oleh Krehel, 2019/07/20
- [elpa] master f28e00c 194/399: counsel.el (counsel-find-file): Improve delete action with ivy-call, Oleh Krehel, 2019/07/20
- [elpa] master afeda97 198/399: counsel.el (counsel-company): Add :caller, Oleh Krehel, 2019/07/20
- [elpa] master 3b25d30 206/399: counsel.el (counsel-compile): Add predicate to counsel-compile-env, Oleh Krehel, 2019/07/20
- [elpa] master 3d0887f 204/399: counsel.el (counsel-compile): Add counsel-compile-env, Oleh Krehel, 2019/07/20
- [elpa] master 605cee0 202/399: counsel.el (counsel-compile): Fix saving of blddir, Oleh Krehel, 2019/07/20