-
Notifications
You must be signed in to change notification settings - Fork 111
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add unit test suite, disable test-checks
#507
Conversation
unit-tests: | ||
$(CASK) exec buttercup -L . | ||
|
||
test: unit-tests integration-tests |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
refactoring based on https://github.com/clojure-emacs/clj-refactor.el/pull/493/files#r709812770
(@bbatsov)
test/test-checks.el
Outdated
@@ -15,16 +15,17 @@ | |||
(setq checkdoc-arguments-in-order-flag nil) | |||
(setq checkdoc-verb-check-experimental-flag nil) | |||
|
|||
(let ((files (directory-files default-directory t | |||
"\\`[^.].*\\.el\\'" t))) | |||
(when nil ;; See https://github.com/clojure-emacs/clj-refactor.el/issues/491 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think you can also set some env var and just disable this on the CI. I think it's not a bad idea for people to be able to run this locally.
(require 'paredit) | ||
(require 'clj-refactor) | ||
|
||
;; NOTE: please remember, without an `it` block, your tests will not be run! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You also link to buttercup's docs here.
Looks good overall, feel free to ignore my remarks. |
Reflects the decisions we made over #493. Code has been copied as is, except for the unit tests in question, which are for `cljr--ns-name` (as a random example that I picked).
Amended w/ feedback, thanks! |
Reflects the decisions we made over #493 (which I've postponed a bit).
Code has been copied as is, except for the unit tests in question, which are for
cljr--ns-name
(as a random example that I picked).