Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migrate expect based rpc test suite to bats #4209

Merged
merged 3 commits into from May 1, 2020
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
18 changes: 9 additions & 9 deletions cli/test.sh
@@ -1,19 +1,20 @@
#!/usr/bin/env bats
#
# bats v0.4.0 project
# Integration tests for bisq-cli running against a live bisq-daemon
#
# https://github.com/sstephenson/bats/tree/v0.4.0
# Prerequisites:
#
# Prior to running this script, run:
# - bats v0.4.0 must be installed (brew install bats on macOS)
# see https://github.com/sstephenson/bats/tree/v0.4.0
#
# ./bisq-daemon --apiPassword=xyz
# - Run `./bisq-daemon --apiPassword=xyz --appDataDir=$TESTDIR` where $TESTDIR
# is empty or otherwise contains an unencrypted wallet with a 0 BTC balance
#
# To run this script:
# Usage:
#
# cd <project-root-dir>
# bats cli/test.sh
# This script must be run from the root of the project, e.g.:
#
# The data directory used must contain an unencrypted wallet with a 0 BTC balance
# ./cli/test.sh

@test "test unsupported method error" {
run ./bisq-cli --password=xyz bogus
Expand Down Expand Up @@ -79,4 +80,3 @@
[ "${lines[1]}" = "Usage: bisq-cli [options] <method>" ]
# TODO add asserts after help text is modified for new endpoints
}