Skip to content

Ma3oBblu/docker-tarantool-luatest

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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