Skip to content

Releases: EthereumRemix/ts-sol-test

Support web3 v4

15 Dec 14:10
03ee935

Choose a tag to compare

  • 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: false

Example

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

16 Mar 11:57
f25c1b4

Choose a tag to compare

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: false

Example

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

17 Jan 11:54
d699051

Choose a tag to compare

Merge pull request #7 from EthereumRemix/bug-fix

Bug fix

Fixed Unintialized Repository Bug

16 Jan 18:49
7e03a37

Choose a tag to compare

Merge pull request #5 from EthereumRemix/setup

Fix Uninitialize Repo Bug

JS & TS Solidity Unit Tests Action

04 Jan 13:12
d5b3d96

Choose a tag to compare

Action For Running JS and TS Unit Tests on Solidity Contracts

contributions welcome

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