docs/test/integration/cli.bats

16 lines
300 B
Bash

#!/usr/bin/env bats
load helpers
@test "create doesn't accept any arugments" {
run swarm create derpderpderp
[ "$status" -ne 0 ]
}
@test "version string should contain a proper number with git commit" {
run swarm -v
[ "$status" -eq 0 ]
[[ ${lines[0]} =~ version\ [0-9]+\.[0-9]+\.[0-9]+ ]]
}