Examples: Unit testing solidity code using both Truffle and Remix IDE Unit Testing Plugin
Category: tools
Ethereum Lottery Example Part 2: Participant Aggregation and Winner Selection
Part 1 of this series: Ethereum Lottery Example Part 1: Setting Up Environment Develop Functionality to Randomly Select a Winner Before we jump into handling the monetary or scheduling part of things, let’s break this project down by first implementing and manually testing a contract that is able to aggregate a list of lottery entrants, […]
Ethereum Lottery Example Part 1: Setting Up Environment
Recommended Prerequisites To get the most out of this example series, it’s best to have a general understanding of: Blockchain Basics The Ethereum Virtual Machine Step 1: Open Remix https://remix.ethereum.org/ Remix is a web based IDE allow us to develop and execute the Ethereum contract we are developing using the Solidity language. I recommend using […]
Integration Testing: MockServer
The Need to Mock External Resources When designing comprehensive integration tests to run in a test environment, one common blocker is the need to mock the behavior of an external API that is outside the control of your team. Sometimes external vendors do not maintain a working test environment for us to test our code […]
Extract Method and Inline Variable in IntelliJ
Introduction This blog post will show, using videos, how to perform basic refactorings in IntelliJ. I’m using the IntelliJ 2020 community edition and OBS Studio to create these videos. The philosophy contained in these articles will largely be drawing from my favorite book on refactoring: Refactoring: Improving the Design of Existing Code by Martin Fowler. […]