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

make assertion errors not fatal errors #4

Open
janl opened this issue Mar 29, 2014 · 4 comments
Open

make assertion errors not fatal errors #4

janl opened this issue Mar 29, 2014 · 4 comments
Labels

Comments

@janl
Copy link
Contributor

janl commented Mar 29, 2014

with the setup up tear down of a full hoodie instance for hook and browser tests, it’s not very fun to have things bail on assertion errors, as the whole tear down phase is skipped and one has to kill hoodie manually afterwards. I couldn’t easily find out where this is configured.

@svnlto
Copy link
Contributor

svnlto commented Mar 29, 2014

I'd say that's expected behaviour of any testing framework, to bail on error.

@janl
Copy link
Contributor Author

janl commented Mar 29, 2014

Bail to the point of where test setup is left dangling, I'd strongly disagree with.

The things I usually work with run all tests and report the errors at the end with an option to do a full halt of you want to inspect things for debugging. I'd expect this to work the same way.

We certainly can't have plugin authors chase node and couch pids to kill them manually while trying to write tests.

On 29.03.2014, at 14:31, Sven Lito [email protected] wrote

I'd say that's expected behaviour of any testing framework, to bail on error.


Reply to this email directly or view it on GitHub.

@svnlto
Copy link
Contributor

svnlto commented Mar 29, 2014

Yeah I get that and I agree, but what I'm saying is - my understanding is that's down to the test framework to provide a hook or something, right?

I believe we have a stop task on the grunt-hoodie plugin that forces a "cleanup"

@janl
Copy link
Contributor Author

janl commented Mar 29, 2014

Yeah, I am not saying we should invent anything, I'm just saying the current situation is broken and I don't know how any of this works, so I am filing a bug for the authors :)

On 29.03.2014, at 15:15, Sven Lito [email protected] wrote:

Yeah I get that and I agree, but what I'm saying is - my understanding is that's down to the test framework to provide a hook or something, right?

I believe we have a stop task on the grunt-hoodie plugin that forces a "cleanup"


Reply to this email directly or view it on GitHub.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants