Announcing Doppelganger

Antoni Kędracki
Oct 30, 2018 · 1 min read

Automated testing is the cornerstone of modern software engineering. It allows developers to quickly verify if a piece of code works according to specification. This again allows for rapid iteration on both the design and implementation of a work. Mature programming languages come with a selection of test runners, assertion engines and mock libraries.

The Ethereum community made a good job of repurposing some of this tools. But until now we were missing an important piece of the testing puzzle. We were unable to easily create mocks of smart contracts. Which in turn made it almost impossible for us to write proper unit tests quickly. I’m happy to announce that with the release of Doppelganger we now have our first smart contract mocking solution.

To illustrate how Doppelganger can be used to help you test, let’s look at following smart contract:

In our tests we will be using Doppelganger to mock the ERC20 passed into the constructor.

Doppelganger was conceived as a submission for the #Cryptolife hackathon by Status, that took place October 26–29, 2018 in Prague. Where it received special recognition in the infrastructure track.

Follow us GitHub, and stay tuned as work on Doppelganger continues.

Ethworks

On the blockchain, software engineering and running a company.

Sign up for 💡 Waffle News 💡

By Ethworks

Best practices in testing smart contracts with Waffle: our sweeter and simpler library built for Ethereum developers Take a look.

By signing up, you will create a Medium account if you don’t already have one. Review our Privacy Policy for more information about our privacy practices.

Check your inbox
Medium sent you an email at to complete your subscription.

Antoni Kędracki

Written by

CTO at Ethworks

Ethworks

Ethworks

Software is eating the world. Blockchain is eating money. Ethworks is cooking.

Antoni Kędracki

Written by

CTO at Ethworks

Ethworks

Ethworks

Software is eating the world. Blockchain is eating money. Ethworks is cooking.

Medium is an open platform where 170 million readers come to find insightful and dynamic thinking. Here, expert and undiscovered voices alike dive into the heart of any topic and bring new ideas to the surface. Learn more

Follow the writers, publications, and topics that matter to you, and you’ll see them on your homepage and in your inbox. Explore

If you have a story to tell, knowledge to share, or a perspective to offer — welcome home. It’s easy and free to post your thinking on any topic. Write on Medium

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store