hyperledger / caliper

A blockchain benchmark framework to measure performance of multiple blockchain solutions https://wiki.hyperledger.org/display/caliper
https://hyperledger.github.io/caliper/
Apache License 2.0
651 stars 404 forks source link

`caliper-ethereum` : Add new tests for packages #1559

Closed Sweetdevil144 closed 5 months ago

Sweetdevil144 commented 5 months ago

Adding Test Cases for Ethereum Connector

This pull request introduces a set of test cases for the Ethereum Connector. These tests are currently contradictory in nature, as they are designed to cover various edge cases and potential error conditions, that is, varying results when called from packages/caliper-ethereum/lib/connectorFactory.js v/s that from packages/caliper-ethereum/lib/ethereum-connector.js

Given the complexity of these scenarios, this PR is opened as a draft. The intention is to invite feedback and discussion on the test cases and their expected outcomes. Once the testing has been completed thoroughly and all issues have been addressed, this PR will be marked ready for review.

Checklist

Issue/User story

Steps to Reproduce

  1. cd packages/caliper-ethereum && npm i && npm run dev

Existing issues

Design of the fix

Validation of the fix

Automated Tests

What documentation has been provided for this pull request