Skip to content

Latest commit

 

History

History
40 lines (30 loc) · 1.27 KB

readme.MD

File metadata and controls

40 lines (30 loc) · 1.27 KB

Docker image for tarantool with luatest, luacov and metrics

Used original image from tarantool repo official tarantool docker image 2.8.2

In image added useful modules:

Use command to build local image: docker build -t ma3obblu/tarantool-luatest:2.8.2 .

Examples

Run tests

unit() {
    echo "run unit tests"
    docker run -v $(pwd):/work:rw -w /work/src ma3obblu/tarantool-luatest:2.8.2 luatest -v
}

Run test coverage

unit_coverage(){
  echo "run unit tests"
  docker run -v $(pwd):/work:rw -w /work/src ma3obblu/tarantool-luatest:2.8.2 luatest --coverage
  docker run -v $(pwd):/work:rw -w /work/src ma3obblu/tarantool-luatest:2.8.2 luacov .
  grep -A999 '^Summary' ./src/luacov.report.out
  rm -f ./src/luacov.*.out*
}

Links