UNPKG

323 Bapplication/x-shView Raw
1#!/bin/bash
2set -e
3
4# Set up submodule if not already present
5git submodule init
6git submodule update
7
8# Run all bats tests
9
10if [ $1 ];
11then
12 target=$1
13else
14 target='tests/system/*'
15fi
16
17echo "Running unit tests"
18./node_modules/tape/bin/tape tests/unit/*
19
20echo "Running system tests"
21./tests/vendor/bats/bin/bats $target