Matchers #1

Open
davedevelopment opened this Issue Nov 14, 2012 · 2 comments

Projects

None yet

2 participants

@davedevelopment
Owner

I've started working on this, it'll probably take the syntax:


expect($variable)->toEqual("dave");

expect(function() {
    // do stuff
})->toThrow("Exception");

As far as output goes, I intend to have basic string diffing, but will see how it goes.

Hamcrest is ok, but needs a serious overhaul in my opinion, it's not as nice to use as it could be.

@davedevelopment
Owner

http://github.com/yuya-takeyama/esperance looks interesting, might leverage it

@paulodiovani

Espérance is cool.
Still not many assertions, yet.

I'm doing some research in https://github.com/paulodiovani/dspec-example-tests

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