Skip to content

Fix strictmode #283

@Chemaclass

Description

@Chemaclass
Q A
OS macOS / Linux / Windows
Shell bash 3.2
bashunit version 0.13

Summary

Adding set -euo pipefail is not possible yet due to some unknown misbehaviours(🐛 ?)
I will rather work in a follow up PR the fix for it, enabling us to merge the changes of this PR.

For example, ./bashunit tests/acceptance/mock_test.sh without debugging mode (set -x):
Screenshot 2024-07-12 at 14 48 38

And with the debug mode enabled we can already see something, but still is not clear how to fix it:
Screenshot 2024-07-12 at 14 51 06

Expected behavior

We should add set -euo pipefail to all bashunit tests.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions