-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c30e2ed
commit b887e52
Showing
11 changed files
with
313 additions
and
97 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
# Disabling this for now, since its not working quite right on GitHub, and | ||
# its not full needed now | ||
# | ||
# name: BATS tests | ||
# on: | ||
# pull_request: | ||
# jobs: | ||
# batsTests: | ||
# name: Test Binary | ||
# strategy: | ||
# matrix: | ||
# os: [ubuntu-latest, windows-latest, macos-12] | ||
# runs-on: ubuntu-latest | ||
# steps: | ||
# - uses: actions/checkout@v3 | ||
# - uses: actions/setup-go@v3 | ||
# with: | ||
# go-version: 1.17 | ||
# - uses: actions/setup-node@v3 | ||
# with: | ||
# node-version: "18" | ||
# - name: Install bats | ||
# run: make install/bats | ||
# - name: Install bats dependencies | ||
# run: make install/bats/dependencies | ||
# - name: Run tests | ||
# run: make run/bats/tests |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
#!/usr/bin/env bats | ||
|
||
setup() { | ||
load 'test_helper/common-setup' | ||
_common_setup | ||
} | ||
|
||
@test "oslo displays help with no arguments" { | ||
run oslo | ||
assert_equal $status 0 | ||
assert_output --partial "Usage" | ||
} | ||
|
||
@test "oslo has help option" { | ||
run oslo --help | ||
assert_equal $status 0 | ||
assert_output --partial "Usage" | ||
} | ||
|
||
@test "oslo has version option" { | ||
run oslo --version | ||
assert_equal $status 0 | ||
assert_output | ||
} |
Oops, something went wrong.