Compare 8080684 ... +4 ... cd294c8

Coverage Reach
lib/core/dsl.sh lib/core/matchers/be/variable.sh lib/core/matchers/be/stat.sh lib/core/matchers/be/status.sh lib/core/matchers/be/empty.sh lib/core/matchers/be/valid.sh lib/core/matchers/be/successful.sh lib/core/matchers/satisfy.sh lib/core/matchers/has/stat.sh lib/core/matchers/equal.sh lib/core/matchers/match.sh lib/core/matchers/start_with.sh lib/core/matchers/end_with.sh lib/core/matchers/include.sh lib/core/matchers/be.sh lib/core/matchers/has.sh lib/core/clone.sh lib/core/evaluation.sh lib/core/outputs.sh lib/core/subjects/stderr.sh lib/core/subjects/stdout.sh lib/core/subjects/path.sh lib/core/subjects/line.sh lib/core/subjects/word.sh lib/core/subjects/variable.sh lib/core/subjects/value.sh lib/core/subjects/status.sh lib/core/modifiers/result.sh lib/core/modifiers/line.sh lib/core/modifiers/contents.sh lib/core/modifiers/word.sh lib/core/modifiers/lines.sh lib/core/modifiers/length.sh lib/core/output.sh lib/core/syntax.sh lib/core/hook.sh lib/core/statement.sh lib/core/utils.sh lib/core/verb.sh lib/core/matchers.sh lib/core/core.sh lib/core/subjects.sh lib/core/modifiers.sh lib/core/switch.sh lib/libexec/reporter/junit_formatter.sh lib/libexec/reporter/tap_formatter.sh lib/libexec/reporter/formatter.sh lib/libexec/reporter/conclusion_formatter.sh lib/libexec/reporter/documentation_formatter.sh lib/libexec/reporter/references_formatter.sh lib/libexec/reporter/profiler_formatter.sh lib/libexec/reporter/color_schema.sh lib/libexec/reporter/summary_formatter.sh lib/libexec/reporter/kcov_formatter.sh lib/libexec/reporter/debug_formatter.sh lib/libexec/reporter/progress_formatter.sh lib/libexec/reporter/failures_formatter.sh lib/libexec/reporter/methods_formatter.sh lib/libexec/reporter/finished_formatter.sh lib/libexec/reporter/trace_formatter.sh lib/libexec/translator.sh lib/libexec/optparser/parser_definition.sh lib/libexec/optparser/optparser.sh lib/libexec/reporter.sh lib/libexec/shellspec.sh lib/libexec/kcov-executor.sh lib/libexec/grammar.sh lib/libexec/list.sh lib/libexec/parallel-executor.sh lib/libexec/task.sh lib/libexec/runner.sh lib/libexec/binary.sh lib/libexec/executor.sh lib/libexec/serial-executor.sh lib/general.sh lib/getoptions.sh lib/libexec.sh lib/getoptions_abbr.sh lib/getoptions_help.sh lib/bootstrap.sh lib/cov/kcov.sh lib/support-bin.sh libexec/shellspec-reporter.sh libexec/shellspec-runner.sh libexec/shellspec-inspection.sh libexec/shellspec-translate.sh libexec/shellspec-executor.sh libexec/shellspec-list.sh libexec/shellspec-syntax-check.sh libexec/shellspec-init.sh libexec/shellspec-time.sh libexec/shellspec-gen-bin.sh libexec/shellspec-profiler.sh libexec/shellspec-task.sh libexec/shellspec-load-env.sh libexec/shellspec-unreadonly-path.sh libexec/shellspec-inspection-readonly.sh shellspec install.sh

No flags found

Use flags to group coverage reports by test type, project and/or folders.
Then setup custom commit statuses and notifications for each flag.

e.g., #unittest #integration

#production #enterprise

#frontend #backend

Learn more about Codecov Flags here.


@@ -20,7 +20,8 @@
Loading
20 20
shellspec_output_EXAMPLE() {
21 21
  shellspec_output_example "id:$SHELLSPEC_EXAMPLE_ID" \
22 22
    "block_no:$SHELLSPEC_BLOCK_NO" "example_no:$SHELLSPEC_EXAMPLE_NO" \
23 -
    "focused:$SHELLSPEC_FOCUSED" "description:$SHELLSPEC_DESCRIPTION"
23 +
    "focused:$SHELLSPEC_FOCUSED" "description:$SHELLSPEC_DESCRIPTION" \
24 +
    "stdout:$SHELLSPEC_STDOUT_FILE" "stderr:$SHELLSPEC_STDERR_FILE"
24 25
}
25 26
26 27
shellspec_output_EVALUATION() {

@@ -39,12 +39,12 @@
Loading
39 39
      if [ "$field_fail" ]; then
40 40
        xmlattrs _attrs "message=$field_message"
41 41
        _text="$field_failure_message${LF}# $field_specfile:$field_lineno"
42 -
        xmlescape _text "$_text"
43 -
        junit '=' "${LF}      <failure $_attrs>$_text</failure>${LF}    "
42 +
        xmlcdata _text "$_text"
43 +
        junit '=' "${LF}      <failure $_attrs>$_text</failure>"
44 44
      else
45 45
        case $field_tag in (skip | pending)
46 46
          xmlattrs _attrs "message=$field_message"
47 -
          junit '='  "${LF}      <skip $_attrs />${LF}    "
47 +
          junit '='  "${LF}      <skip $_attrs />"
48 48
        esac
49 49
      fi
50 50
      ;;
@@ -55,7 +55,14 @@
Loading
55 55
      elif [ "$field_tag" = "todo" ] || [ "$field_tag" = "skipped" ]; then
56 56
        inc _skipped
57 57
      fi
58 -
      junit '=' "</testcase>${LF}"
58 +
      _stdout='' _stderr=''
59 +
      [ -r "$field_stdout" ] && readfile _stdout "$field_stdout"
60 +
      [ -r "$field_stderr" ] && readfile _stderr "$field_stderr"
61 +
      xmlcdata _stdout "$_stdout"
62 +
      xmlcdata _stderr "$_stderr"
63 +
      junit '=' "${LF}      <system-out>$_stdout></system-out>"
64 +
      junit '+=' "${LF}      <system-err>$_stderr</system-err>"
65 +
      junit '+=' "${LF}    </testcase>${LF}"
59 66
      ;;
60 67
    end)
61 68
      junit '='

@@ -3,7 +3,7 @@
Loading
3 3
# shellcheck source=lib/libexec.sh
4 4
. "${SHELLSPEC_LIB:-./lib}/libexec.sh"
5 5
use import constants sequence replace_all each padding trim wrap
6 -
use is_empty_file pluralize exists_file
6 +
use is_empty_file pluralize exists_file readfile
7 7
8 8
count_examples() {
9 9
  set -- "$SHELLSPEC_LIBEXEC/shellspec-list.sh" "$@"
@@ -79,6 +79,14 @@
Loading
79 79
  eval "$EVAL"
80 80
}
81 81
82 +
xmlcdata() {
83 +
  eval "$1=\$2"
84 +
  if [ "$2" ]; then
85 +
    replace_all "$1" ']]>' ']]]]><![CDATA[>'
86 +
    eval "$1=\"<![CDATA[\${$1}]]>\""
87 +
  fi
88 +
}
89 +
82 90
remove_escape_sequence() {
83 91
  while IFS= read -r line || [ "$line" ]; do
84 92
    text=''

@@ -19,17 +19,19 @@
Loading
19 19
found_focus='' no_examples='' aborted=1 repetition='' coverage_failed='' \
20 20
fail_fast='' fail_fast_count=${SHELLSPEC_FAIL_FAST_COUNT:-999999} reason='' \
21 21
current_example_index=0 example_index='' \
22 -
last_example_no='' last_skip_id='' not_enough_examples='' \
23 -
field_id='' field_type='' field_tag='' field_example_no='' field_focused='' \
24 -
field_temporary='' field_skipid='' field_pending='' field_message='' \
25 -
field_quick='' field_specfile=''
22 +
last_example_no='' last_skip_id='' not_enough_examples=''
26 23
27 24
# shellcheck disable=SC2034
28 25
specfile_count=0 expected_example_count=0 example_count=0 \
29 26
succeeded_count='' failed_count='' warned_count='' error_count='' \
30 27
todo_count='' fixed_count='' skipped_count='' error_index='' \
31 28
suppressed_todo_count='' suppressed_fixed_count='' suppressed_skipped_count=''
32 29
30 +
# shellcheck disable=SC2034
31 +
field_id='' field_type='' field_tag='' field_example_no='' field_focused='' \
32 +
field_temporary='' field_skipid='' field_pending='' field_message='' \
33 +
field_quick='' field_specfile='' field_stdout='' field_stderr=''
34 +
33 35
init_quick_data
34 36
35 37
[ "$SHELLSPEC_GENERATORS" ] && mkdir -p "$SHELLSPEC_REPORTDIR"

Everything is accounted for!

No changes detected that need to be reviewed.
What changes does Codecov check for?
Lines, not adjusted in diff, that have changed coverage data.
Files that introduced coverage data that had none before.
Files that have missing coverage data that once were tracked.
Files Coverage
lib -0.14% 79.61%
libexec -0.03% 20.93%
install.sh 53.10%
shellspec 0.00%
Project Totals (99 files) 66.17%
Loading