From 9f36437e208d87e40d2e0408d4f92d13211c589f Mon Sep 17 00:00:00 2001 From: Ryosuke Yabuki Date: Thu, 12 Dec 2024 13:08:55 +0900 Subject: [PATCH] support test-suite name --- action.yaml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/action.yaml b/action.yaml index f855c61..17ba201 100644 --- a/action.yaml +++ b/action.yaml @@ -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: @@ -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 @@ -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 }}"