Dark mode switch icon Light mode switch icon

Running tests sequentially with Ava

1 min read

Overview

I spend the majority of my time building atop the Agoric blockchain. While I’m developing a lending platform that exists atop of the Agoric blockchain, there’s a broader tech stack that I work with each and every day. Now due to the fickle nature of secure ECMAScript, there’s a limited number of third-party libraries that are easy to plug into my development workflow. So in this post, I’m going to be quickly discussing AVA.

Seriously sequential, support by.serial

So the AVA test runner is what I use to write unit tests, integrated tests, any and all types of tests are written using the AVA testing library. Now there is a special wrapper that the team at Agoric has created in order for AVA to work seamlessly with the different packages within the Agoric SDK as well as packages within the Endo repository that said AVA tests run concurrently by default and well today I’ve learned that this does not have to be the case. Specifically I learned about the test.serial assertion which can be used to explicitly define a test, explicitly define the order in which a specific test will execute.

Originally published on by Thomas Greco