Releases: EthereumRemix/ts-sol-test
Releases · EthereumRemix/ts-sol-test
Support web3 v4
- Fixed bugs introduced by migrating remix provider to web3 v4.
- Fix loading dependencies using remix-url-resolver
Options
evm-version:
description: 'set evm version (e.g: istanbul, berlin etc)'
required: false
optimize:
description: 'set optimize (e.g: true, false)'
required: false
default: 'false'
optimizer-runs:
description: 'set optimizer runs (e.g: 200)'
required: false
default: '0'
node-url:
description: 'set node url (e.g: https://mainnet.infura.io/v3/your-api-key)'
required: false
block-number:
description: 'set block number (e.g: 123456)'
required: false
default: 'latest'
hard-fork:
description: 'set hard fork (e.g: istanbul, berlin etc. See full list of hard forks here: https://github.com/ethereumjs/ethereumjs-monorepo/tree/master/packages/common/src/hardforks)'
required: falseExample
name: sol-test-js
on: [push]
jobs:
run_sample_test_job:
runs-on: ubuntu-latest
name: A job to run solidity tests in js
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Run Custom Fork Test
uses: EthereumRemix/[email protected]
with:
test-path: 'sample/tests/custom/hardFork.test.ts'
contract-path: 'sample/contracts/custom/mainnet_ens.sol'
compiler-version: '0.8.17'
hard-fork: 'merge'
node-url: 'https://rpc.archivenode.io/e50zmkroshle2e2e50zm0044i7ao04ym'Contributors
Yann Levreau @yann300, David Disu @ioedeveloper
New options to customize test runner
This release introduces new options to customize contract compilation and simulator provider.
Options
evm-version:
description: 'set evm version (e.g: istanbul, berlin etc)'
required: false
optimize:
description: 'set optimize (e.g: true, false)'
required: false
default: 'false'
optimizer-runs:
description: 'set optimizer runs (e.g: 200)'
required: false
default: '0'
node-url:
description: 'set node url (e.g: https://mainnet.infura.io/v3/your-api-key)'
required: false
block-number:
description: 'set block number (e.g: 123456)'
required: false
default: 'latest'
hard-fork:
description: 'set hard fork (e.g: istanbul, berlin etc. See full list of hard forks here: https://github.com/ethereumjs/ethereumjs-monorepo/tree/master/packages/common/src/hardforks)'
required: falseExample
name: sol-test-js
on: [push]
jobs:
run_sample_test_job:
runs-on: ubuntu-latest
name: A job to run solidity tests in js
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Run Custom Fork Test
uses: EthereumRemix/[email protected]
with:
test-path: 'sample/tests/custom/hardFork.test.ts'
contract-path: 'sample/contracts/custom/mainnet_ens.sol'
compiler-version: '0.8.17'
hard-fork: 'merge'
node-url: 'https://rpc.archivenode.io/e50zmkroshle2e2e50zm0044i7ao04ym'Contributors
Yann Levreau @yann300, David Disu @ioedeveloper
Throw exception on compilation failed
Merge pull request #7 from EthereumRemix/bug-fix Bug fix
Fixed Unintialized Repository Bug
Merge pull request #5 from EthereumRemix/setup Fix Uninitialize Repo Bug
JS & TS Solidity Unit Tests Action
Action For Running JS and TS Unit Tests on Solidity Contracts
This GitHub action enables you to run JS and TS unit tests on solidity smart contracts as part of your continuous integration and deployment process.
To know more about Remix IDE Solidity Unit Testing, visit Remix IDE official documentation, Remix Tests Library.
Example workflow: Sample
name: ts-sol-test
on: [push]
jobs:
run_sample_test_job:
runs-on: ubuntu-latest
name: A job to run mocha and chai tests for solidity on github actions CI
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Run SUT Action
uses: EthereumRemix/ts-sol-test@v1
with:
test-path: 'sample/tests'
contract-path: 'sample/contracts'
compiler-version: '0.8.7'
License
MIT © 2018-23 Remix Team