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

middleware.test: offer fail-fast functionality #783

Merged
merged 2 commits into from
Jul 21, 2023
Merged

middleware.test: offer fail-fast functionality #783

merged 2 commits into from
Jul 21, 2023

Conversation

vemv
Copy link
Member

@vemv vemv commented Jul 21, 2023

Fixes #709

Introduces fail-fast via a "fail-fast" msg param. The default is to not fail-fast, since I cannot guess the desired behavior for all cider-nrepl clients.

For cider-test.el however, I intend to (defcustom cider-test-fail-fast t).

Cheers - V

@vemv vemv requested a review from bbatsov July 21, 2023 11:28
@@ -971,6 +971,7 @@ Optional parameters::

Returns::
* `:elapsed-time` a report of the elapsed time spent running all the given namespaces. The structure is ``:elapsed-time {:ms <integer> :humanized <string>}``.
* `:fail-fast` If true, the tests will be considered complete after the first test has failed or errored.
Copy link
Member

Choose a reason for hiding this comment

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

Just keep in mind there's no boolean type in bencode, so true is probably not the best way to describe this. But I get the idea. :-)

Copy link
Member

Choose a reason for hiding this comment

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

Maybe a small change like When true or the string "true"...

@bbatsov
Copy link
Member

bbatsov commented Jul 21, 2023

Looks good to me overall.

@vemv
Copy link
Member Author

vemv commented Jul 21, 2023

Yeah booleans are a refactor-nrepl custom, wasn't sure if there was anything like that here. Simpler to just expect "true"

@bbatsov
Copy link
Member

bbatsov commented Jul 21, 2023

Potentially with other transports (e.g. EDN) one can have real booleans, but so far I think we always used the string "true". I was too lazy to check the rest of the codebase. Anyways, no particularly important right now.

@vemv vemv merged commit 71fee69 into master Jul 21, 2023
@vemv vemv deleted the fail-fast branch July 21, 2023 13:57
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.

middleware.test: offer fail-fast functionality
2 participants