Skip to content

Commit

Permalink
support test-suite name
Browse files Browse the repository at this point in the history
  • Loading branch information
Konboi committed Dec 12, 2024
1 parent 9bf3f84 commit 9f36437
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,10 @@ inputs:
required: false
description: "The flavors for `--flavor` option of record session command"
default: ""
test_suite:
required: false
description: "Sets a test suite name for seeing and comparing the different test sessions. e.g. e2e-test, integration-test, etc"
default: ""
runs:
using: "composite"
steps:
Expand Down Expand Up @@ -99,6 +103,11 @@ runs:
options+=("--session-name" "${{ inputs.test_session_name }}")
fi
# Set up test suite option
if [ "${{ inputs.test_suite }}" ]; then
options+=("--test-suite" "${{ inputs.test_suite }}")
fi
# In some case (e.g. parallel execution), wants to use the same ses sion name.
# So, allow the case that the session name is already used.
set +e
Expand Down Expand Up @@ -143,6 +152,10 @@ runs:
)
fi
if [ "${{ inputs.test_suite }}" ]; then
options+=("--test-suite" "${{ inputs.test_suite }}")
fi
options+=(
"${{ inputs.test_runner }}"
"${{ inputs.report_path }}"
Expand Down

0 comments on commit 9f36437

Please sign in to comment.