The aforementioned issue with Bash 5.2 still persists. Would it be possible, at least temporarily, to make Shellspec use the --no-warning-as-failure
option when testing itself?
Search Criteria
Package Details: shellspec 0.28.1-3
Package Actions
Git Clone URL: | https://aur.archlinux.org/shellspec.git (read-only, click to copy) |
---|---|
Package Base: | shellspec |
Description: | BDD style unit testing framework for POSIX compliant shell script |
Upstream URL: | https://shellspec.info |
Keywords: | bash BDD behavior development driven posix sh shell spec specification test testing |
Licenses: | MIT |
Submitter: | damien.flament |
Maintainer: | stefanwimmer128 |
Last Packager: | stefanwimmer128 |
Votes: | 2 |
Popularity: | 0.000003 |
First Submitted: | 2019-11-02 13:57 (UTC) |
Last Updated: | 2024-07-18 09:29 (UTC) |
Dependencies (2)
- sh (dashbinshAUR, bash-devel-static-gitAUR, zshbinshAUR, bash-devel-gitAUR, busybox-coreutilsAUR, bash-gitAUR, bash)
- git (git-gitAUR, git-glAUR) (make)
Sources (1)
Latest Comments
FWDekker commented on 2024-07-14 07:33 (UTC)
stefanwimmer128 commented on 2023-11-17 22:28 (UTC)
@HurricanePootis This seems to be a bug in Bash 5.2. Which causes an error message that is not expected thus failing the test.
HurricanePootis commented on 2023-11-14 22:56 (UTC)
Shellspec fails to copmpile
11) core/subjects/line.sh line subject gets undefined when stdout is undefined
When run shellspec_subject_line 1 _modifier_
11.1) WARNING: There was output to stderr but not found expectation
stderr: /home/hurricane/.cache/paru/clone/shellspec/src/shellspec/lib/core/modifiers/line.sh: line 56: pop_var_context: head of shell_variables not a function context
/home/hurricane/.cache/paru/clone/shellspec/src/shellspec/lib/core/syntax.sh: line 20: pop_var_context: head of shell_variables not a function context
# spec/core/subjects/line_spec.sh:26-30
12) core/subjects/word.sh word subject gets undefined when stdout is undefined
When run shellspec_subject_word 1 _modifier_
12.1) WARNING: There was output to stderr but not found expectation
stderr: /home/hurricane/.cache/paru/clone/shellspec/src/shellspec/lib/core/modifiers/word.sh: line 56: pop_var_context: head of shell_variables not a function context
/home/hurricane/.cache/paru/clone/shellspec/src/shellspec/lib/core/syntax.sh: line 20: pop_var_context: head of shell_variables not a function context
# spec/core/subjects/word_spec.sh:24-28
Finished in 30.83 seconds (user 23.62 seconds, sys 13.84 seconds)
1619 examples, 0 failures, 2 warnings, 40 skips (muted 30 skips)
Notable examples: (Listed here do not affect your suite's status)
shellspec spec/core/matchers/be/stat_spec.sh:89 # 1) core/matchers/be/stat.sh be symlink matcher example SKIPPED
shellspec spec/core/matchers/be/stat_spec.sh:117 # 2) core/matchers/be/stat.sh be pipe matcher example SKIPPED
shellspec spec/core/matchers/be/stat_spec.sh:144 # 3) core/matchers/be/stat.sh be socket matcher example SKIPPED
shellspec spec/core/matchers/be/stat_spec.sh:171 # 4) core/matchers/be/stat.sh be readable matcher example SKIPPED
shellspec spec/core/matchers/be/stat_spec.sh:200 # 5) core/matchers/be/stat.sh be writable matcher example SKIPPED
shellspec spec/core/matchers/be/stat_spec.sh:228 # 6) core/matchers/be/stat.sh be executable matcher example SKIPPED
shellspec spec/core/matchers/be/stat_spec.sh:256 # 7) core/matchers/be/stat.sh be block device matcher example SKIPPED
shellspec spec/core/matchers/be/stat_spec.sh:284 # 8) core/matchers/be/stat.sh be character device matcher example SKIPPED
shellspec spec/core/matchers/has/stat_spec.sh:14 # 9) core/matchers/has/stat.sh has setgid matcher example SKIPPED
shellspec spec/core/matchers/has/stat_spec.sh:43 # 10) core/matchers/has/stat.sh has setuid matcher example SKIPPED
Failure examples / Errors: (Listed here affect your suite's status)
shellspec spec/core/subjects/line_spec.sh:26 # 11) core/subjects/line.sh line subject gets undefined when stdout is undefined WARNED
shellspec spec/core/subjects/word_spec.sh:24 # 12) core/subjects/word.sh word subject gets undefined when stdout is undefined WARNED
stefanwimmer128 commented on 2023-01-07 15:37 (UTC) (edited on 2024-07-17 19:11 (UTC) by stefanwimmer128)
Pre-built packages are available here or in my repository.
Pinned Comments
stefanwimmer128 commented on 2023-01-07 15:37 (UTC) (edited on 2024-07-17 19:11 (UTC) by stefanwimmer128)
Pre-built packages are available here or in my repository.