Testing & Quality Assurance - docker/cli

Testing & Quality Assurance in Docker CLI project

Testing is a crucial stage in the Software Development Life Cycle (SDLC) and Docker CLI project is no exception. The Docker CLI project uses various testing frameworks and tools to ensure the quality and stability of the codebase.

Testing Framework

The Docker CLI project uses gotest.tools/gotestsum as the testing framework. It is a tool for running tests and reporting test results in a human-readable format. It also provides a test summary and displays the number of tests passed, failed, and skipped.

Here’s an example of how to run tests using gotest.tools/gotestsum:

go test -v ./... -count=1 -race -coverprofile=coverage.txt -tags=integration