HuddleEng / PhantomFlow

Describe and visualise user flows through tests with PhantomJS
MIT License
682 stars 60 forks source link

PASS an assert multiple times #19

Closed jgautheron closed 8 years ago

jgautheron commented 9 years ago

DISCLAIMER: I am not sure if this is related to PhantomFlow or CasperJS. In a flow I use multiple times the same method addRandomProductToCart(), it passes only once, then the next asserts are ignored. Any idea from where this comes?

jamescryer commented 9 years ago

In terms of xUnit output, the CasperJS asserts will need different names, if in the the same branch of the flow. But, in terms of CLI reporting you should see multiple asserts.

It sounds a bit like an Error is being raised. Have you tried setting the debug level to 1, to see the full CLI output?

jgautheron commented 9 years ago

Yes I've tried, nothing to be seen. My app is also configured to stop at the first error met (earlyExit).