Skip to content

Replace lua tests with vitest#27

Draft
tuler wants to merge 1 commit intofeature/build-clifrom
feature/vitest
Draft

Replace lua tests with vitest#27
tuler wants to merge 1 commit intofeature/build-clifrom
feature/vitest

Conversation

@tuler
Copy link
Member

@tuler tuler commented Jul 24, 2025

This is an experimental PR that replaces the test suite in lua by a test suite in TypeScript using the vitest framework.

It uses the experimental nodejs Cartesi machine binding to execute the machine built by the CLI.

In addition to being experimental, a few bits are missing:

  • loading const addresses from .hpp file
  • stress tests

how to run

The steps below need a "build from source" of the Cartesi CLI from branch prerelease/v2-alpha, linked as cartesi-dev.

cartesi-dev build -c cartesi.toml -c cartesi.mainnet.toml
pnpm i
pnpm run test

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant