File tree 6 files changed +34
-16
lines changed
6 files changed +34
-16
lines changed Original file line number Diff line number Diff line change @@ -12,8 +12,9 @@ default: &default-steps
12
12
- run : make test
13
13
# Make sure to run test-checks before test-bytecomp, as test-bytecomp autogenerates
14
14
# files which won't pass test-checks.
15
- - run : make test-checks
16
- - run : make test-bytecomp
15
+ # disabled - see https://github.com/clojure-emacs/clj-refactor.el/issues/491
16
+ # - run: make test-checks
17
+ # - run: make test-bytecomp
17
18
18
19
# Enumerated list of Emacs versions
19
20
jobs :
Original file line number Diff line number Diff line change 5
5
6
6
(development
7
7
(depends-on " ecukes" )
8
- (depends-on " espuds" ))
8
+ (depends-on " espuds" )
9
+ (depends-on " buttercup" ))
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ PKGDIR := $(shell EMACS=$(EMACS) $(CASK) package-directory)
7
7
SRCS = $(wildcard * .el)
8
8
OBJS = $(SRCS:.el=.elc )
9
9
10
- .PHONY : compile test clean elpa
10
+ .PHONY : compile unit-tests integration-tests test clean elpa
11
11
12
12
all : compile
13
13
@@ -28,9 +28,14 @@ compile: elpa
28
28
clean :
29
29
rm -f $(OBJS )
30
30
31
- test : $(PKGDIR )
31
+ integration-tests : $(PKGDIR )
32
32
$(CASK ) exec ecukes --no-win
33
33
34
+ unit-tests :
35
+ $(CASK ) exec buttercup -L .
36
+
37
+ test : unit-tests integration-tests
38
+
34
39
test-checks :
35
40
$(CASK ) exec $(EMACS ) --no-site-file --no-site-lisp --batch \
36
41
-l test/test-checks.el ./
Original file line number Diff line number Diff line change
1
+ (provide 'feature )
Original file line number Diff line number Diff line change 15
15
(setq checkdoc-arguments-in-order-flag nil )
16
16
(setq checkdoc-verb-check-experimental-flag nil )
17
17
18
- (let ((files (directory-files default-directory t
19
- " \\ `[^.].*\\.el\\' " t )))
18
+ (when nil ; ; See https://github.com/clojure-emacs/clj-refactor.el/issues/491
19
+ (let ((files (directory-files default-directory t
20
+ " \\ `[^.].*\\.el\\' " t )))
20
21
21
- ; ; `checkdoc-file' was introduced in Emacs 25
22
- (when (fboundp 'checkdoc-file )
23
- (dolist (file files )
24
- (checkdoc-file file))
25
- (when (get-buffer " *Warnings*" )
26
- (message " Failing due to checkdoc warnings... " )
27
- (kill-emacs 1 )))
22
+ ; ; `checkdoc-file' was introduced in Emacs 25
23
+ (when (fboundp 'checkdoc-file )
24
+ (dolist (file files )
25
+ (checkdoc-file file))
26
+ (when (get-buffer " *Warnings*" )
27
+ (message " Failing due to checkdoc warnings... " )
28
+ (kill-emacs 1 )))
28
29
29
- (when (apply #'check-declare-files files )
30
- (kill-emacs 1 )))
30
+ (when (apply #'check-declare-files files )
31
+ (kill-emacs 1 ) )))
Original file line number Diff line number Diff line change
1
+ (require 'paredit )
2
+ (require 'clj-refactor )
3
+
4
+ ; ; NOTE: please remember, without an `it` block, your tests will not be run!
5
+
6
+ (describe " cljr--ns-name"
7
+ (it " returns the ns name of its argument"
8
+ (expect (cljr--ns-name " com.corp.foo" ) :to-equal " foo" )
9
+ (expect (cljr--ns-name " foo" ) :to-equal " foo" )))
You can’t perform that action at this time.
0 commit comments