Skip to content

Commit

Permalink
Merge pull request #386 from JrGoodle/coverage
Browse files Browse the repository at this point in the history
Increase test coverage
  • Loading branch information
JrGoodle committed Nov 13, 2017
2 parents 7a1819c + a2692c0 commit 10435d2
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 2 deletions.
5 changes: 5 additions & 0 deletions test/scripts/cats/checkout.sh
Original file line number Diff line number Diff line change
Expand Up @@ -67,5 +67,10 @@ test_checkout() {
test_branch master
popd || exit 1
done

$COMMAND checkout knead -p jrgoodle/mu || exit 1
$COMMAND checkout purr -p jrgoodle/duke || exit 1

test_cats_default_herd_branches
}
test_checkout
1 change: 1 addition & 0 deletions test/scripts/cats/diff.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ test_diff() {
echo "TEST: Display diff"
$COMMAND status || exit 1
$COMMAND diff || exit 1
$COMMAND diff -p jrgoodle/mu jrgoodle/duke || exit 1
$COMMAND clean || exit 1
}
test_diff
11 changes: 11 additions & 0 deletions test/scripts/cats/prune.sh
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,17 @@ test_prune() {
popd || exit 1
done

$COMMAND prune -f prune_branch -p jrgoodle/kit jrgoodle/kishka || exit 1

pushd black-cats/kit || exit 1
test_branch master
test_no_local_branch_exists prune_branch
popd || exit 1
pushd black-cats/kishka || exit 1
test_branch master
test_no_local_branch_exists prune_branch
popd || exit 1

$COMMAND prune -f prune_branch -g black-cats || exit 1

pushd duke || exit 1
Expand Down
2 changes: 1 addition & 1 deletion test/scripts/cats/reset.sh
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ test_reset() {
test_not_commit "$UPSTREAM_COMMIT"
popd || exit 1

$COMMAND reset $PARALLEL || exit 1
$COMMAND reset $PARALLEL -p jrgoodle/mu || exit 1

pushd 'mu' || exit 1
test_number_commits 'HEAD' 'origin/knead' '0'
Expand Down
2 changes: 1 addition & 1 deletion test/scripts/cats/start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ test_start() {
echo "TEST: Start new branch"

$COMMAND herd $PARALLEL || exit 1
$COMMAND start start_branch -g cats || exit 1
$COMMAND start start_branch -p jrgoodle/duke jrgoodle/mu || exit 1

pushd mu || exit 1
test_branch start_branch
Expand Down

0 comments on commit 10435d2

Please sign in to comment.