Skip to content

Latest commit

 

History

History
42 lines (22 loc) · 1.24 KB

DEVELOPMENT.md

File metadata and controls

42 lines (22 loc) · 1.24 KB

Development

This document highlights the required tools and workflows to develop for Conftest.

Tools

Go

Conftest is written in the Go programming language, and can be installed from their installation page.

If you are not familiar with Go we recommend you read through the How to Write Go Code article to familiarize yourself with the standard Go development environment.

Make

Make is used for local development and assists with running the builds and tests.

Windows users can download Make from here if not already installed.

Bats

Bats is used for running the acceptance tests.

There are a few ways to install Bats:

  • Brew: brew install bats-core
  • npm: npm install -g bats

GolangCI-lint

golangci-lint is a Go linters aggregator and is used for running lint tasks.

Building and Testing

All build and testing workflows have make commands.

  • Build: make build

  • Test: make test

  • Acceptance: make test-acceptance

  • Run everything! make all