[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.
- [nongnu] elpa/buttercup bdc3721 056/340: Documentation for the buttercup-reporter variable., (continued)
- [nongnu] elpa/buttercup bdc3721 056/340: Documentation for the buttercup-reporter variable., ELPA Syncer, 2021/12/16
- [nongnu] elpa/buttercup 329d2f9 051/340: Add autoload markers to test runners., ELPA Syncer, 2021/12/16
- [nongnu] elpa/buttercup 162b862 060/340: The buttercup--funcall function., ELPA Syncer, 2021/12/16
- [nongnu] elpa/buttercup 638a836 061/340: The batch reporter now displays failures and stack traces., ELPA Syncer, 2021/12/16
- [nongnu] elpa/buttercup c61a69a 066/340: A rudimentary interactive reporter., ELPA Syncer, 2021/12/16
- [nongnu] elpa/buttercup 182a974 068/340: Pending specs and disabled suites., ELPA Syncer, 2021/12/16
- [nongnu] elpa/buttercup b3bb12a 070/340: buttercup-run-discover: Fix regexp., ELPA Syncer, 2021/12/16
- [nongnu] elpa/buttercup 26f8117 071/340: Rename buttercup-test.el and move it to the right directory., ELPA Syncer, 2021/12/16
- [nongnu] elpa/buttercup f593486 092/340: Use pattern _ not t in pcase, as t is deprecated, ELPA Syncer, 2021/12/16
- [nongnu] elpa/buttercup 0a889e2 098/340: Merge pull request #43 from spwhitton/apt-get, ELPA Syncer, 2021/12/16
- [nongnu] elpa/buttercup afbaae1 091/340: Document file names for test discovery,
ELPA Syncer <=
- [nongnu] elpa/buttercup 25cb350 089/340: Rename docs to be more easily understandable, ELPA Syncer, 2021/12/16
- [nongnu] elpa/buttercup 6d96ea3 093/340: Add format specifier to error call with argument, ELPA Syncer, 2021/12/16
- [nongnu] elpa/buttercup cef9988 110/340: Merge pull request #61 from spwhitton/fix-regexp, ELPA Syncer, 2021/12/16
- [nongnu] elpa/buttercup 2b5f53d 121/340: [Fix #72] Add buttercup-minor-mode, ELPA Syncer, 2021/12/16
- [nongnu] elpa/buttercup 5db07c9 112/340: Merge pull request #63 from ebpa/patch-1, ELPA Syncer, 2021/12/16
- [nongnu] elpa/buttercup a05fdcb 117/340: Colorize output, ELPA Syncer, 2021/12/16
- [nongnu] elpa/buttercup ed649d7 125/340: Merge pull request #76 from DamienCassou/make-buttercup--with-cleanup-public, ELPA Syncer, 2021/12/16
- [nongnu] elpa/buttercup ce75b50 115/340: Report load errors in buttercup-run-discover, ELPA Syncer, 2021/12/16
- [nongnu] elpa/buttercup 3deb9a4 053/340: Test discovery: Ignore files in dot directories., ELPA Syncer, 2021/12/16
- [nongnu] elpa/buttercup 444716b 079/340: Handle windows better in interactive runs., ELPA Syncer, 2021/12/16