Skip to content

Building and Testing

Nimrod Becker edited this page Jan 8, 2020 · 3 revisions

Building NooBaa

NooBaa's Makefile and its targets

NooBaa's Makefile contains several container targets:

builder: This is the image later used to build NooBaa and Tester images from. It contains tools and dependencies for building the next images in the chain.

base: This image already contains NooBaa code, it acts as the common base for both the NooBaa container and the Tester Container.

noobaa: This is the NooBaa image which will be run.

tester/test: Tester is a noobaa image with all the tests (unit and system) loaded into it. Test would run the unit tests on the build tester image.

Testing NooBaa

Unit Tests

Running make test would result in the build of tester and running the unit tests on it. IT is preferable to consume this via minikube. You can easily set minikube to act as the docker env by running minikube docker-env. After setting it, running any make command will result in the image created within minikube itself.

Clone this wiki locally