redux-actions-assertions icon indicating copy to clipboard operation
redux-actions-assertions copied to clipboard

Which assertion frameworks/libraries are you using?

Open dmitry-zaets opened this issue 9 years ago • 7 comments

Will be useful to know all assertion frameworks/libraries which used by users of redux-actions-assertions. Feel free to leave a comment.

dmitry-zaets avatar May 23 '16 10:05 dmitry-zaets

Running tests through Karma with Jasmine and expect. The examples in the test/ folder were really helpful in formulating them. Using faux-jax to intercept client calls but there have been a few hiccups that still need sorting out.

Viewable in this branch: https://github.com/Kitware/HPCCloud/pull/420

TristanWright avatar Jun 07 '16 22:06 TristanWright

NB: With expect + jasmine we're passing our own done() function which calls done.fail(). Otherwise, with just done() the test will slip through.

TristanWright avatar Jul 01 '16 20:07 TristanWright

@TristanWright thanks for the hint. Javascript variant is actually accept fail callback as argument, but it was not used in any assertions wrapper. We can add it in order to make testing with Jasmine easier.

dmitry-zaets avatar Jul 01 '16 20:07 dmitry-zaets

I use https://github.com/substack/tape and https://github.com/michaelrhodes/tape-catch to do assertions.

EDIT: Followed up in #28, works with tape if you set up like this: https://github.com/redux-things/redux-actions-assertions/issues/28#issuecomment-246704362.

adamyonk avatar Sep 12 '16 21:09 adamyonk

I use Jest primarily.

StevenACoffman avatar Dec 20 '16 14:12 StevenACoffman

+1 for Jest. It's really taking off lately, would be really nice to have a shim for that.

adamyonk avatar Jan 10 '17 15:01 adamyonk

Here is the issue: https://github.com/redux-things/redux-actions-assertions/issues/33 @giuband, will you be able to take it over?

dmitry-zaets avatar Jan 10 '17 15:01 dmitry-zaets