-
Install Go 1.18.
go version
-
python3 --version pip3 --version
-
Install
unzip
,rpm
andcpio
packages.unzip -v rpm --version cpio --version
-
Install git.
git --version
-
Install docker.
docker --version
-
Install Tarantool (1.10 or 2.x version).
tarantool --version
-
Install mage.
mage --version
If something went wrong, this may help.
export PATH=$(go env GOPATH)/bin:$PATH
-
Install pytest.
python3 -m pytest --version
-
Clone this repo.
git clone [email protected]:tarantool/cartridge-cli.git cd ./cartridge-cli
-
To run tests, git user must be configured. For example,
git config --global user.email "[email protected]" git config --global user.name "Tar Antool"
-
Install pytest dependencies.
pip3 install -r test/requirements.txt
-
Install luacheck.
tarantoolctl rocks install luacheck
-
Install lichen.
go install github.com/uw-labs/lichen@latest
All remaining dependencies (like code generation) will be invoked with mage if needed.
To run all tests, call
mage test
You can run specific test sections.
# Static code analysis (including tests code).
mage lint
# Go unit tests.
mage unit
# pytest integration tests.
mage integration
# Run test example with pytest.
mage testExamples
# pytest end-to-end tests for packages.
mage e2e