Skip to content

Add unit test suite, disable test-checks#507

Merged
vemv merged 1 commit intomasterfrom
ci
Nov 18, 2021
Merged

Add unit test suite, disable test-checks#507
vemv merged 1 commit intomasterfrom
ci

Conversation

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

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

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

Choose a reason for hiding this comment

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

Comment thread test/test-checks.el Outdated

(let ((files (directory-files default-directory t
"\\`[^.].*\\.el\\'" t)))
(when nil ;; See https://github.com/clojure-emacs/clj-refactor.el/issues/491
Copy link
Copy Markdown
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.

Comment thread tests/unit-test.el
(require 'paredit)
(require 'clj-refactor)

;; NOTE: please remember, without an `it` block, your tests will not be run!
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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