Skip to content
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

Merged
merged 1 commit into from
Nov 18, 2021
Merged

Add unit test suite, disable test-checks #507

merged 1 commit into from
Nov 18, 2021

Conversation

vemv
Copy link
Member

@vemv vemv commented Nov 17, 2021

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).

unit-tests:
$(CASK) exec buttercup -L .

test: unit-tests integration-tests
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@@ -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
Copy link
Member

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!
Copy link
Member

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.

@bbatsov
Copy link
Member

bbatsov commented Nov 18, 2021

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).
@vemv
Copy link
Member Author

vemv commented Nov 18, 2021

Amended w/ feedback, thanks!

@vemv vemv merged commit 363b95c into master Nov 18, 2021
@vemv vemv deleted the ci branch November 18, 2021 13:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants