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

Using ExCheck with Espec #29

Open
brendanzab opened this issue Jul 18, 2016 · 1 comment
Open

Using ExCheck with Espec #29

brendanzab opened this issue Jul 18, 2016 · 1 comment

Comments

@brendanzab
Copy link

brendanzab commented Jul 18, 2016

So I see that ExCheck is pretty coupled to ExUnit. Is there any way to easily adapt it to work easily with Espec? I'm guessing I would have to make my own implementation of ExUnit.__using__? And my own Espec.Statement module? Anything else I'm missing?

@luc-tielen
Copy link
Contributor

Not too familiar with espec but most likely you would have to create counterparts for the various macros ExCheck uses that generate ExUnit-related code.
In the most generic using statement (excheck.ex), you could provide an argument indicating which testing framework you want to use underneath (default ExUnit for backwards compatibility).
You could then use this argument to switch between which macro you want to use to generate code.

It's been some time since you logged this issue, but better late than never, right? :)

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

No branches or pull requests

2 participants