[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] master 92166ba 13/79: Add no-fixture option.
From: |
Jackson Ray Hamilton |
Subject: |
[elpa] master 92166ba 13/79: Add no-fixture option. |
Date: |
Sun, 14 Jun 2015 00:05:18 +0000 |
branch: master
commit 92166ba9d243aa9cd222dc4cdb0a0551b8988739
Author: Jackson Ray Hamilton <address@hidden>
Commit: Jackson Ray Hamilton <address@hidden>
Add no-fixture option.
---
test/context-coloring-test.el | 25 +++++++++++--------------
1 files changed, 11 insertions(+), 14 deletions(-)
diff --git a/test/context-coloring-test.el b/test/context-coloring-test.el
index b2883e1..b04e90e 100644
--- a/test/context-coloring-test.el
+++ b/test/context-coloring-test.el
@@ -82,7 +82,7 @@ invoke when it is done."
(cl-defmacro context-coloring-test-define-deftest (name
&key mode
&key extension
- &key default-fixture
+ &key no-fixture
&key async
&key post-colorization
&key
enable-context-coloring-mode
@@ -91,10 +91,10 @@ invoke when it is done."
&key after-each)
"Define a deftest defmacro for tests prefixed with NAME. MODE
is called to set up tests' environments. EXTENSION denotes the
-suffix for tests' fixture files. DEFAULT-FIXTURE is used if no
-fixture name is explicitly supplied. If ASYNC is non-nil, pass a
-callback to the defined tests' bodies for them to call when they
-are done. If POST-COLORIZATION is non-nil, the tests run after
+suffix for tests' fixture files. If NO-FIXTURE is non-nil, don't
+use a fixture. If ASYNC is non-nil, pass a callback to the
+defined tests' bodies for them to call when they are done. If
+POST-COLORIZATION is non-nil, the tests run after
`context-coloring-colorize' finishes asynchronously. If
ENABLE-CONTEXT-COLORING-MODE is non-nil, `context-coloring-mode'
is activated before tests. GET-ARGS provides arguments to apply
@@ -125,11 +125,8 @@ BODY is run after `context-coloring-mode' is activated, or
after
initial colorization if colorization should occur."
(cadr mode)
(cond
- (default-fixture
- (format "
-The default fixture is \"%s\", unless FIXTURE is specified to
-override it."
- default-fixture))
+ (no-fixture "
+There is no fixture, unless FIXTURE is specified.")
(t
(format "
The default fixture has a filename matching NAME (plus the
@@ -152,7 +149,7 @@ override it."
(t "sync"))) name)))
(fixture (cond
(fixture (format "./fixtures/%s" fixture))
- (,default-fixture (format "./fixtures/%s"
,default-fixture))
+ (,no-fixture "./fixtures/empty")
(t (format ,(format "./fixtures/%%s.%s" extension)
name)))))
,@(cond
((or async post-colorization)
@@ -203,11 +200,11 @@ override it."
(context-coloring-test-define-deftest nil
:mode 'fundamental-mode
- :default-fixture "empty")
+ :no-fixture t)
(context-coloring-test-define-deftest async
:mode 'fundamental-mode
- :default-fixture "empty"
+ :no-fixture t
:async t)
(context-coloring-test-define-deftest js
@@ -237,7 +234,7 @@ override it."
(context-coloring-test-define-deftest define-theme
:mode 'fundamental-mode
- :default-fixture "empty"
+ :no-fixture t
:get-args (lambda ()
(list (context-coloring-test-get-next-theme)))
:after-each (lambda (theme)
- [elpa] master ac22f0a 02/79: Silence obsolete warnings., (continued)
- [elpa] master ac22f0a 02/79: Silence obsolete warnings., Jackson Ray Hamilton, 2015/06/13
- [elpa] master 57e87f0 04/79: Refactor js test definitions., Jackson Ray Hamilton, 2015/06/13
- [elpa] master cfcf112 03/79: Add define-deftest macro., Jackson Ray Hamilton, 2015/06/13
- [elpa] master ae03324 05/79: Define js and js2 tests simultaneously., Jackson Ray Hamilton, 2015/06/13
- [elpa] master af536a4 07/79: Update coloring assertion syntax., Jackson Ray Hamilton, 2015/06/13
- [elpa] master c1b6b52 06/79: Update function scopes and global tests., Jackson Ray Hamilton, 2015/06/13
- [elpa] master 5e0a0d9 10/79: Newlines., Jackson Ray Hamilton, 2015/06/13
- [elpa] master 23cf7b3 09/79: Refactor derived mode tests., Jackson Ray Hamilton, 2015/06/13
- [elpa] master fd2f2d0 08/79: Refactor remaining js tests., Jackson Ray Hamilton, 2015/06/13
- [elpa] master 1f474d9 11/79: Reorganize functions., Jackson Ray Hamilton, 2015/06/13
- [elpa] master 92166ba 13/79: Add no-fixture option.,
Jackson Ray Hamilton <=
- [elpa] master 8ea8c9c 15/79: Pass defun test with recursive colorizer., Jackson Ray Hamilton, 2015/06/13
- [elpa] master ea6b4ef 14/79: Increase test documentation., Jackson Ray Hamilton, 2015/06/13
- [elpa] master 7975003 18/79: Pass ignored test with recursive colorizer., Jackson Ray Hamilton, 2015/06/13
- [elpa] master d8b5f03 12/79: Remove before-all and after-all., Jackson Ray Hamilton, 2015/06/13
- [elpa] master bc0cb0d 16/79: Pass lambda test with recursive colorizer., Jackson Ray Hamilton, 2015/06/13
- [elpa] master 6090eb3 17/79: Pass quote test with recursive colorizer., Jackson Ray Hamilton, 2015/06/13
- [elpa] master f1ed39f 21/79: Pass comment and string tests with recursive colorizer., Jackson Ray Hamilton, 2015/06/13
- [elpa] master d146af8 23/79: Fix string coloring., Jackson Ray Hamilton, 2015/06/13
- [elpa] master aaf4835 20/79: Remove let-varlist data structure. Cleanup., Jackson Ray Hamilton, 2015/06/13
- [elpa] master 49265ab 25/79: Simplify comment and string parsing., Jackson Ray Hamilton, 2015/06/13