Joseph Wilk

Results 26 comments of Joseph Wilk

Only used for internal testing but the idea is realised here in the fail predicate: https://github.com/josephwilk/amrita/commit/6dbeac50b7ad7ee449e8e5fbc275baccf9c89b89 In fail its a little simpler since we only need to wrap asserts in...

First prototype for using this for all facts: https://github.com/josephwilk/amrita/compare/multiple_runs_per_test?expand=1#L0R203

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 :)

First prototype showing respected scoping for fact within facts. This was hard. https://github.com/josephwilk/amrita/commit/5365e0da1ee04701a3c1e0e8d2ebc6858ebbb00f This still has some odd behaviour. As in running all of amrita tests only 10 facts are...

Its also important to note this example will not compile. Implicit reference of the parent function will not resolve, as in reality they are all different modules and this is...

Another solution which leaves formatting output rather ugly: https://github.com/josephwilk/amrita/commit/4b1dbabb4ba87fbb6316bdf99c48a2c7ab746869

A further question. If you want to stub a module defined inside your test and its wrapped in a facts you would have to write: ``` elixir defmodule PantsFacts do...

Thanks for the detailed report, I'll investigate.

@smpallen99 I'll take a look to day and at least have some guidance as to the problem if I cannot fix it in the time I have. Thanks

Brilliant, thanks! Let me know if you need any help and also feel free to be creative with the exact syntax.