Skip to content

Latest commit

 

History

History
52 lines (35 loc) · 1.71 KB

File metadata and controls

52 lines (35 loc) · 1.71 KB

Test driven infrastructure

Build Status

This repository contains tests of the metacode.biz infrastructure. These tests always ask external services to assess the state of the infrastructure.

Running tests

Running locally: npm test

Building and running through Docker:

docker build -t metacode/infr . && docker run --rm -i metacode/infr

Or the same via npm alias: npm run start-in-docker

Putting the following script in .git/hooks/pre-push ensures that tests pass locally before pushing them into the repository:

#!/bin/bash

npm run start-in-docker

Tests are executed on each commit to GitHub and additionally on schedule.

Testing the tests: npm test

Test types

Currently tests cover:

See queries.ts for a complete list of supported tests.