Skip to content
This repository was archived by the owner on May 27, 2019. It is now read-only.
This repository was archived by the owner on May 27, 2019. It is now read-only.

nicer mech integration #8

Description

@benmmurphy

we should have a thing that just automatically unloads all the mechs you have defined in a before or in an example.

for example

describe("foo", fun() ->
  before_each(fun() ->
    %load mech 1
  end),

  it("should do stuff", fun() ->
  end),

  describe("nested", fun() ->
    before_each(fun() ->
      % load mech 2
    end),
    it("should do more stuff", fun() ->
    end),
  end)
end)

is converted to

load mech 1
run "should do stuff"
unload mech 1

load mech 1
load mech 2
run "should do more stuff"
unload mech 2
unload mech 1

we should probably provide an option to auto-verify as well.

not sure if mech already has something to make this easy...

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions