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

Run all |> within a fact irrelevant of if a previous one failed #64

Open
josephwilk opened this issue Jul 31, 2013 · 3 comments
Open

Run all |> within a fact irrelevant of if a previous one failed #64

josephwilk opened this issue Jul 31, 2013 · 3 comments
Milestone

Comments

@josephwilk
Copy link
Owner

This requires some serious macro magic which may not be worth it...

fact "test" do
  10 |> 11

  10 |> 22
end

Would result in 2 failures rather than 1.

@josephwilk
Copy link
Owner Author

Only used for internal testing but the idea is realised here in the fail predicate:

6dbeac5

In fail its a little simpler since we only need to wrap asserts in exception catchers.

@josephwilk
Copy link
Owner Author

First prototype for using this for all facts:

https://github.com/josephwilk/amrita/compare/multiple_runs_per_test?expand=1#L0R203

@josephwilk
Copy link
Owner Author

Completed in: https://github.com/josephwilk/amrita/tree/multiple_runs_per_test

One core problem is the alternative provided syntax and the errors mocks make.

Now we can, should we :)

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

1 participant