Skip to content

Commit

Permalink
Merge pull request #10 from launchableinc/support-test-suite-otpion
Browse files Browse the repository at this point in the history
support test-suite name
  • Loading branch information
Konboi authored Dec 12, 2024
2 parents 9bf3f84 + 9f36437 commit ec9046d
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 ec9046d

Please sign in to comment.