raportointi muutoksia
CI Feature / Load example-gitea-env.conf to pipeline env (push) Successful in 16s
unit-tests Bats test report
CI Feature / Bats tests (push) Successful in 1m15s
acc-tests Cucumber test report
CI Feature / Cucumber tests (push) Successful in 1m18s
CI Feature / Report Summary (push) Successful in 3s

This commit is contained in:
moilanik
2026-06-28 09:22:30 +03:00
parent ae2be1ca35
commit beef556556
3 changed files with 19 additions and 6 deletions
+9 -1
View File
@@ -15,7 +15,7 @@ setup() {
teardown() {
mock_stop
rm -rf "unit-tests" "sub"
rm -rf "unit-tests" "sub" "empty-suite"
}
@test "missing suite_path argument → exit 1" {
@@ -58,6 +58,14 @@ teardown() {
[[ "$output" == *"not a directory"* ]]
}
@test "empty directory → exit 1" {
mkdir -p "empty-suite"
run bash scripts/publish-git-pages.sh "empty-suite"
[ "$status" -eq 1 ]
[[ "$output" == *"no files to publish"* ]]
rm -rf "empty-suite"
}
@test "valid publish returns report base URL" {
mock_set_sequence '[
{"code":200,"body":"published"}