Run a test with several "it blocks"

96 views
Skip to first unread message

Rom4ik Tesla

unread,
Dec 9, 2019, 6:06:22 PM12/9/19
to Jasmine

How to run a test with several it blocks so that they are called in the declaration order
Exaple

We have:
1 IT - logger.trace (Find discount)
2. IT - logger.trace (Start Check game)
But when run we have
1.IT - logger.trace (Start Check game)
2.IT - logger.trace (Find discount)
---

I want to execute the first IT block, then the second

Gregg Van Hove

unread,
Dec 18, 2019, 5:06:10 PM12/18/19
to jasmi...@googlegroups.com
As of Jasmine 3.0, Jasmine now defaults to running your specs in a random order to help surface accidental coupling between different specs. You can turn this off either for a specific run or in the relevant configuration file. It looks like you're using the Node.js package, so take a look at the Jasmine docs for that (https://jasmine.github.io/setup/nodejs.html), to figure out how you want to configure Jasmine.

Hope this helps. Thanks for using Jasmine!

- Gregg

--
You received this message because you are subscribed to the Google Groups "Jasmine" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jasmine-js+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jasmine-js/2a2f5c1f-82df-417c-8240-297f19996b3f%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages