-
Notifications
You must be signed in to change notification settings - Fork 108
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
remove dependency to ExUnit #37
Comments
Hi Chris, What is an equivalent way of checking that the expectation function has been called when using espec? |
Just looking and it doesn't seem like there is an equivalent of the on_exit callback. Honestly, I just pulled this out on a fork because I didn't care about calls that shouldn't have been made because I was confident there were none and the ones I expected to be called would have failed my tests if not anyway because of the behaviour I added to the mock. I understand the value of this though, but could it not be explicitly called i.e. |
Hi Chris, When using Bypass with ExUnit we definitely want to keep the default behavior, but I am open to accepting PRs that make Bypass support espec out of the box. |
Hi, I would love to see support for ESpec added to this library. I've found out about Bypass today and I think it's an incredibly helpful too. It does exactly what I need, and it was a bad surprise to see it crash because it's hard-wired to ExUnit. I think that for the moment I'll just disable that functionality in a fork, like @chrisjowen has done. I only need a simple stubbed HTTP server on localhost and don't really need expectations on the calls. Maybe it would be nice to introduce an
I'm not sure, but perhaps @antonmi, ESpec's author, may be able to give us some pointers. |
Apparently there was another issue (#9) on the same topic. That contains some more info on a possible implementation. Is there any chance or interest in seeing this implemented? What approach should a pull request adopt? Using different adapters probably makes sense. |
Thanks again @tompave - I just released 0.8.0 of bypass with your ESpec support included ❤️ |
Hey,
First off thanks for the library its useful, good work. I was wondering if you could remove the dependency on
ExUnit
, I and several others use https://github.com/antonmi/espec as my testing framework and theExUnit.Callbacks.on_exit
check you do obviously blows up for me as I have no process running forExUnit
.I understand the value this callback and see your verifying calls here and even if the dependency remained it would be nice if this was an explicit call and not wired into the ExUnits on_exit calback
The text was updated successfully, but these errors were encountered: