Skip to content

Commit

Permalink
Change name of MTR scenario results .xml file to start with "junit_" (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
calebevans authored Mar 30, 2023
1 parent 18a2a9b commit 43898bd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions ci-operator/step-registry/mtr/tests/ui/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,14 @@

## Purpose

Use to execute the `Cypress` [windup-ui-tests](https://github.com/windup/windup-ui-tests) using the provided arguments. All XML results will be combined into "$ARTIFACT_DIR/windup-ui-results.xml".
Use to execute the `Cypress` [windup-ui-tests](https://github.com/windup/windup-ui-tests) using the provided arguments. All XML results will be combined into "$ARTIFACT_DIR/junit_windup_ui_results.xml".

## Process

1. Retrieves the the test cluster host URL from the `$SHARED_DIR` and uses it to construct the target URL of the MTR webpage in the test cluster.
2. Executes the Cypress tests using target URL constructed earlier in the script and the `CYPRESS_SPEC` variable
3. Uses the `npm run mergereports` command to merge all of the XML results into one file.
4. Copies the XML file from the command in step 4 to `$ARTIFACT_DIR/windup-ui-results.xml`.
4. Copies the XML file from the command in step 4 to `$ARTIFACT_DIR/junit_windup_ui_results.xml`.

## Prerequisite(s)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ echo "Merging results reports..."
npm run mergereports

# Copy combined report into $ARTIFACT_DIR
echo "Archiving /tmp/windup-ui-tests/cypress/reports/junitreport.xml to ARTIFACT_DIR/windup-ui-results.xml..."
cp /tmp/windup-ui-tests/cypress/reports/junitreport.xml $ARTIFACT_DIR/windup-ui-results.xml
echo "Archiving /tmp/windup-ui-tests/cypress/reports/junitreport.xml to ARTIFACT_DIR/junit_windup_ui_results.xml..."
cp /tmp/windup-ui-tests/cypress/reports/junitreport.xml $ARTIFACT_DIR/junit_windup_ui_results.xml

# Copy screenshots into $ARTIFACT_DIR/screenshots
if [ -d "/tmp/windup-ui-tests/cypress/screenshots/" ]; then
Expand Down

0 comments on commit 43898bd

Please sign in to comment.