Skip to content

web3j/web3j-unit-docker-compose-example

master
Switch branches/tags
Code

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
src
 
 
 
 
 
 
 
 
 
 
 
 

Example to use Web3j-unit to test against docker-compose file

Contains a simple test with required dependencies for you to get started with web3j-unit testing with custom docker-compose file.

Web3j-unit is a Junit 5 extension to streamline the creation of Ethereum contract tests.

Getting started

This example runs Greeter contract against a network of VMWare Concord nodes defined using a docker-compose file.

To get started, we need to build the images of Concord locally.

Once you have Docker installed, checkout the Concord repository:

git clone https://github.com/vmware/concord.git

After that, from the Concord directory, run the build script for the Docker images:

cd concord
docker/build.images.sh

We’re ready to test using Concord.

Usage

To run the tests in this project, run

./gradlew clean build test

About

Example to spin up VMWare Concord using docker-compose to test contracts in web3j-unit

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published