emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/buttercup afbaae1 091/340: Document file names for test di


From: ELPA Syncer
Subject: [nongnu] elpa/buttercup afbaae1 091/340: Document file names for test discovery
Date: Thu, 16 Dec 2021 14:59:10 -0500 (EST)

branch: elpa/buttercup
commit afbaae1009d2068a077a583fe65ad9d192f8b694
Author: Jorgen Schaefer <contact@jorgenschaefer.de>
Commit: Jorgen Schaefer <contact@jorgenschaefer.de>

    Document file names for test discovery
    
    Fixes #18
---
 buttercup.el          | 2 +-
 docs/running-tests.md | 7 +++++--
 2 files changed, 6 insertions(+), 3 deletions(-)

diff --git a/buttercup.el b/buttercup.el
index 7a60143..2b80947 100644
--- a/buttercup.el
+++ b/buttercup.el
@@ -661,7 +661,7 @@ current directory."
     (setq command-line-args-left nil)
     (dolist (dir (or dirs '(".")))
       (dolist (file (directory-files-recursively
-                     dir "\\`test-.*\\.el\\'\\|-test\\.el\\'"))
+                     dir "\\`test-.*\\.el\\'\\|-tests?\\.el\\'"))
         (when (not (string-match "/\\." (file-relative-name file)))
           (load file nil t))))
     (when patterns
diff --git a/docs/running-tests.md b/docs/running-tests.md
index 2cbc2e3..ab8ed3a 100644
--- a/docs/running-tests.md
+++ b/docs/running-tests.md
@@ -25,7 +25,7 @@ for tests. It should look roughly like this:
 ```
 feature/feature.el
         Cask
-        tests/feature.el
+        tests/test-feature.el
 ```
 
 **feature.el**
@@ -94,7 +94,10 @@ The feature
 Ran 1 specs, 0 failed, in 0.0 seconds.
 ```
 
-That’s it.
+That’s it. Buttercup’s built-in discover test runner looks for files
+named `test-*.el`, `*-test.el` or `*-tests.el`. You can specify a
+different pattern using the `--pattern` command line argument to the
+`buttercup` program.
 
 You can run this command whichever way you like. Common choices
 include a makefile or shell scripts.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]