branch: elpa/buttercup
commit 3deb9a4f4ebf68f3dea264afa4867782a44030b5
Author: Jorgen Schaefer <[email protected]>
Commit: Jorgen Schaefer <[email protected]>
Test discovery: Ignore files in dot directories.
We could find tests in .cask subdirectories, that's not the point.
---
buttercup.el | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/buttercup.el b/buttercup.el
index de07c57..73fe6f0 100644
--- a/buttercup.el
+++ b/buttercup.el
@@ -523,7 +523,8 @@ current directory."
(dolist (dir (or command-line-args-left '(".")))
(dolist (file (directory-files-recursively dir
"\\'test-\\|-test.el\\'"))
- (load file nil t)))
+ (when (not (string-match "/\\." file))
+ (load file nil t))))
(buttercup-run))
;;;###autoload