Skip to content

Commit

Permalink
TESTS: Fix minor mistakes in CLI test titles + make it possible to la…
Browse files Browse the repository at this point in the history
…unch GitHub Action jobs manually
  • Loading branch information
HenrikBengtsson committed Apr 28, 2024
1 parent af37755 commit 2248c6d
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 7 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/check-javascript.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,14 @@ on:

pull_request:

workflow_dispatch:

schedule:
## Run every 12 hours
# - cron: '0 */12 * * *'
## Run once a week until https://github.com/seguid/seguid-javascript/issues/17
- cron: '0 0 1 * *'


name: "JavaScript checks"

Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/check-python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,12 @@ on:

pull_request:

workflow_dispatch:

schedule:
## Run every 12 hours
- cron: '0 */12 * * *'

name: "Python checks"

permissions:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/check-r.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ on:

pull_request:

workflow_dispatch:

schedule:
## Run every 12 hours
- cron: '0 */12 * * *'
Expand Down
12 changes: 6 additions & 6 deletions tests-cli/90.exceptions.bats
Original file line number Diff line number Diff line change
Expand Up @@ -142,32 +142,32 @@ assert_failure
## --------------------------------------------------------
## Invalid alphabet specifications
## --------------------------------------------------------
@test " --alphabet='{dna}' <<< 'ACGT' (unknown alphabet)" {
@test "<CLI call> --alphabet='{dna}' <<< 'ACGT' (unknown alphabet)" {
run "${cli_call[@]}" --alphabet='{dna}' <<< 'ACGT'
assert_failure
}
@test " --alphabet='A,G ,C,T' <<< 'ACGT' (extra space)" {
@test "<CLI call> --alphabet='A,G ,C,T' <<< 'ACGT' (extra space)" {
run "${cli_call[@]}" --alphabet='A,G ,C,T' <<< 'ACGT'
assert_failure
}
@test " --alphabet='' <<< 'ACGT' (empty alphabet specification)" {
@test "<CLI call> --alphabet='' <<< 'ACGT' (empty alphabet specification)" {
run "${cli_call[@]}" --type=lsseguid --alphabet='' <<< 'ACGT'
assert_failure
}
@test " --alphabet='A,GC,T' <<< 'ACGT' (invalid alphabet specification)" {
@test "<CLI call> --alphabet='A,GC,T' <<< 'ACGT' (invalid alphabet specification)" {
run "${cli_call[@]}" --type=lsseguid --alphabet='A,GC,T' <<< 'ACGT'
assert_failure
}
@test " --alphabet='ACG' <<< 'ACGT' (invalid alphabet specification)" {
@test "<CLI call> --alphabet='ACG' <<< 'ACGT' (invalid alphabet specification)" {
run "${cli_call[@]}" --type=lsseguid --alphabet='ACG' <<< 'ACGT'
assert_failure
}
@test " --type=ldseguid --alphabet='A,G,C,T' <<< 'ACGT;ACGT' (single-stranded alphabet for a double-stranded sequence)" {
@test "<CLI call> --type=ldseguid --alphabet='A,G,C,T' <<< 'ACGT;ACGT' (single-stranded alphabet for a double-stranded sequence)" {
run "${cli_call[@]}" --type=ldseguid --alphabet='A,G,C,T' <<< 'ACGT;ACGT'
assert_failure
}

0 comments on commit 2248c6d

Please sign in to comment.