Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Backport of eosio-tester to 2.0.x #2

Closed
tbfleming opened this issue Apr 7, 2021 · 1 comment
Closed

Backport of eosio-tester to 2.0.x #2

tbfleming opened this issue Apr 7, 2021 · 1 comment
Assignees
Labels
eosio EOSIO foundation work tester Tester

Comments

@tbfleming
Copy link
Member

tbfleming commented Apr 7, 2021

This is to support unit and integration testing for the Eden contract, and as a potential tool for testing other projects.

eosio-tester Overview

eosio-tester runs non-contract WASM files which drive testing. It gives those WASM files access to the local system, similar to what a scripting environment does, but also gives them the following abilities:

  • Create, stop, start, and clone chains, including running several at once, all running in a single fully-synchronous process. This does not interfere with any running nodeos instances. (striked-out features aren't currently present, but can be added)
  • Push transactions to these chains and get results back.
  • Full control over timing. If a test needs a set of transactions to be in a specific block and in a specific order, it can do it. If a test needs to jump to a specific block several years in the future, it can do it.
  • Include contract code directly in the test wasm. This simplifies pushing transactions, reading tables, and even calling individual functions from the contract's source without having to go through a transaction.

Where lives

There are 3 parts to this:

@tbfleming tbfleming self-assigned this Apr 7, 2021
@sparkplug0025 sparkplug0025 added the eosio EOSIO foundation work label Apr 13, 2021
@tbfleming
Copy link
Member Author

Alpha release is available. See https://github.com/eoscommunity/demo-clsdk .

@tbfleming tbfleming added the tester Tester label May 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
eosio EOSIO foundation work tester Tester
Projects
None yet
Development

No branches or pull requests

2 participants