elrond-sdk-erdpy icon indicating copy to clipboard operation
elrond-sdk-erdpy copied to clipboard

Modify contract test command to use sc-meta

Open popenta opened this issue 1 year ago • 0 comments

mxpy does not take care of vmtools anymore. The vmtools dependency has been removed. Now, mxpy simply forwards the arguments to sc-meta. When calling mxpy contract test, the sc-meta test command is invoked. One could also use directly sc-meta test since sc-meta is installed when calling mxpy deps install rust.

The parameters have been changed to match the parameters needed by sc-meta.

mxpy contract test now uses the following parameters:

--path PATH  the directory of the contract (default: cwd)
--go         this arg runs rust and go tests (default: false)
--scen       this arg runs scenarios (default: false). If `--scen` and `--go` are both specified, scen overrides the go argument
--nocapture  this arg prints the entire output of the vm (default: false)

popenta avatar Feb 12 '24 11:02 popenta