Skip to content

grayhemp/container-bats

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

container-bats

Build Status

A Bats testing framework image.

Usage

COPY --from=grayhemp/bats /usr/local /usr/local

For a build-time testing use the following in your test image

COPY test /mnt/test
RUN bats /mnt/test

and build it to trigger the tests. Note that it might be beneficial for immutable tests (like unit tests) due to caching.

For a run-time testing mount /mnt/test to the test image and use

ENTRYPOINT bats
CMD /mnt/test

to invoke the tests when the container is started.

Development

Relies on grayhemp/container-build for image build and push steps.

make
make push