Skip to content
This repository has been archived by the owner on Apr 10, 2024. It is now read-only.

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

Notifications You must be signed in to change notification settings

web3j/web3j-unit-docker-compose-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Archive Notice

This project is no longer under active development and has been archived. The repository is kept for historical purposes and read-only access. No further updates or pull requests will be considered.

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