What is GuardianTest?

GuardianTest is an open source end-to-end testing framework. It extends Playwright to suit the unique demands of crypto organizations and developers.

Is GuardianTest free and open source?

Yes. GuardianTest is completely free to use (Apache 2.0 license).

What is being tested with GuardianTest?

GuardianTest has a wide range of use cases. Notably, it enables developers to perform end-to-end tests of their dApps to ensure their frontends are interacting with the correct smart contracts. For example, making sure transactions point to the correct contracts and approvals give the appropriate addresses access to user funds.

Why does GuardianTest use Playwright instead of other testing frameworks?

The reasons are mostly minor. By and large, many of the testing frameworks have similar functionality.

Playwright's auto-wait functionality is helpful, especially when running against bigger protocol's apps that will have bot detection.

Being able to run across multiple browsers is good from a security perspective for our Frontend Security Monitoring solution as well. It's possible for someone to exploit a frontend and vary what sort of negative impacts happen to users based on the user-agent, or location, etc, so having the ability to do several browsers helps increase coverage.

Why does GuardianTest use Anvil (Foundry)?

Anvil (from Foundry) is designed to be fast, modular, and easy to use. It provides a number of features that make it ideal for developing web3 applications, including:

  • Fast startup time

  • Support for multiple networks

  • EVM compatibility

  • Easy to use API

More devs are adopting to Foundry as well, which increases the likelihood its a dependency devs already have installed.

How can I contribute to the development of GuardianTest?

Everything you need to get started can be found in the GuardianTest repo. Please also be sure to join our discord!

Last updated