matter-labs / zksync-cli

CLI tool that simplifies ZKsync development
MIT License
166 stars 96 forks source link

test: cli test solution for zksync-cli #123

Open pcheremu opened 8 months ago

pcheremu commented 8 months ago

What :computer:

This is the long living development branch for zksync-cli automation

Why :hand:

To prepare set of tests to verify zksync-cli in command line on different platforms

Evidence :camera:

image

Notes :memo:

To run CLI tests for zksync-cli do the following:

  1. Make preparation steps 1 and 2 from Building for production, or just run npm i && npm run build

  2. Make sure you see your development build 0.0.0-development using npx zksync-cli --version. If not, install it in depends of your OS settings: npm i -g .or sudo npm i -g . If you have any other zksync-cli package installed globally npm ls -g, just remove it in advance npm remove zksync-cli -g.

  3. Make sure you have Docker on your system.

  4. Rename .env.example to .env in./test/src/ dir and add your wallet private key to this file. F.e.: It may looks like E2E_TESTNET_PK=012345...abcdef

  5. Run npm run test