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

handle cancelled tests #50

Merged
merged 2 commits into from
Aug 29, 2016
Merged

Conversation

erlanger
Copy link

This covers cancelled tests, which eunit handles but ltest was not. It solves some of the problems mentioned in issue #49.

ltest-listener was ignoring the handle_cancel callback, simply returning the state; which is a little dangerous because it can make you think that all the tests passed. This patch solves that problem.

This patch prints the same messages as eunit.

@erlanger
Copy link
Author

@oubiwann let me know what you think when you get a chance.

It is disabled because normally you want
to see the test suite finishing without
errors.
"
Copy link
Member

@yurrriq yurrriq Aug 28, 2016

Choose a reason for hiding this comment

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

I'd suggest moving this " to the previous line :)

Copy link
Author

Choose a reason for hiding this comment

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

I thought you said to make it a docstring doesn't a module docstring go right after defmodule?

Copy link
Member

Choose a reason for hiding this comment

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

Edited: I mean the ". All my comments are very silly here.

Copy link
Author

Choose a reason for hiding this comment

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

Ahh I finally get it :) hehe; I'll move it up.

@yurrriq
Copy link
Member

yurrriq commented Aug 29, 2016

LGTM

@oubiwann
Copy link
Member

This is fantastic -- thanks for doing this, @erlanger! Such a long time coming ...

@oubiwann oubiwann merged commit 1414e28 into lfex:master Aug 29, 2016
oubiwann added a commit that referenced this pull request Oct 25, 2016
Handle the case of cancelled tests.
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.

3 participants