OpenZeppelin / openzeppelin-test-environment

[Not actively maintained] One-line setup for blazing-fast smart contracts tests
https://docs.openzeppelin.com/test-environment
MIT License
90 stars 39 forks source link

Why is it faster than `truffle test`? #164

Closed lcswillems closed 3 years ago

lcswillems commented 3 years ago

It is said everywhere it is faster than truffle test. But why? What is the thing you do differently and allows you to test faster?

frangio commented 3 years ago

Thank you for your question @lcswillems. The claim that it is faster is mostly based on empirical observation.

There are some things we know Truffle does and Test Environment doesn't. For example, Truffle loads all of the artifacts on startup from disk and these are often huge JSON files.

I don't know whether actually running the tests is also faster, as opposed to only startup time, and what this could be attributed to.