-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add html report Restructure tests, markers Signed-off-by: Jorgen Kvalvaag <[email protected]>
- Loading branch information
Showing
6 changed files
with
66 additions
and
67 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -39,7 +39,11 @@ on: | |
description: The run ID of the workflow to fetch artifacts from | ||
type: string | ||
required: true | ||
run_log_check_tests: | ||
run_functional_tests: | ||
type: boolean | ||
required: true | ||
default: true | ||
run_wifi_location_tests: | ||
type: boolean | ||
required: true | ||
default: true | ||
|
@@ -109,50 +113,33 @@ jobs: | |
--software-version ${{ inputs.artifact_fw_version }} \ | ||
hello.nrfcloud.com-${{ inputs.artifact_fw_version }}-thingy91x-nrf91.elf | ||
- name: Run UART tests | ||
if: ${{ inputs.run_log_check_tests }} | ||
- name: Run DUT1 tests | ||
if: ${{ inputs.run_functional_tests }} | ||
working-directory: thingy91x-oob/tests/on_target | ||
run: | | ||
mkdir -p results | ||
pytest -s -v -m "dut1 and uart" \ | ||
--junit-xml=results/test-results-uart.xml \ | ||
tests | ||
env: | ||
SEGGER: ${{ secrets.SEGGER_DUT_1 }} | ||
LOG_FILENAME: oob_uart_test_log | ||
|
||
- name: Run FOTA tests (standard) | ||
if: ${{ inputs.run_fota_tests }} | ||
working-directory: thingy91x-oob/tests/on_target | ||
run: | | ||
pytest -s -v -m "dut1 and fota" \ | ||
--junit-xml=results/test-results-fota.xml \ | ||
pytest -m dut1 \ | ||
--junit-xml=results/test-results-dut1.xml \ | ||
--html=results/test-results-dut1.html --self-contained-html \ | ||
tests | ||
env: | ||
SEGGER: ${{ secrets.SEGGER_DUT_1 }} | ||
IMEI: ${{ secrets.IMEI_DUT_1 }} | ||
FINGERPRINT: ${{ secrets.FINGERPRINT_DUT_1 }} | ||
LOG_FILENAME: oob_fota_test_log | ||
|
||
- name: Run FOTA tests (FULLMFW) | ||
if: ${{ inputs.run_fullmfwfota_test }} | ||
working-directory: thingy91x-oob/tests/on_target | ||
run: | | ||
pytest -s -v -m "dut1 and fullmfw_fota" \ | ||
--junit-xml=results/test-results-fullmfw-fota.xml \ | ||
tests | ||
env: | ||
SEGGER: ${{ secrets.SEGGER_DUT_1 }} | ||
IMEI: ${{ secrets.IMEI_DUT_1 }} | ||
FINGERPRINT: ${{ secrets.FINGERPRINT_DUT_1 }} | ||
LOG_FILENAME: oob_fullmfw_fota_test_log | ||
LOG_FILENAME: oob_uart_test_log | ||
TEST_FUNCTIONAL: ${{ inputs.run_functional_tests }} | ||
TEST_FOTA: ${{ inputs.run_fota_tests }} | ||
TEST_FOTA_FULLMFW: ${{ inputs.run_fullmfwfota_test }} | ||
TEST_WIFI_LOC: ${{ inputs.run_wifi_location_tests }} | ||
TEST_REPORT_NAME: OOB Firwmare Test Report | ||
|
||
- name: Run DFU tests | ||
if: ${{ inputs.run_dfu_tests }} | ||
working-directory: thingy91x-oob/tests/on_target | ||
run: | | ||
pytest -s -v -m "dut2 and dfu" \ | ||
pytest -m "dut2 and dfu" \ | ||
--junit-xml=results/test-results-dfu.xml \ | ||
--html=results/test-results-dfu.html --self-contained-html \ | ||
tests | ||
env: | ||
SEGGER_NRF53: ${{ secrets.SEGGER_DUT_2_EXT_DBG }} | ||
|
@@ -171,8 +158,9 @@ jobs: | |
if: ${{ inputs.run_connectivity_bridge_tests }} | ||
working-directory: thingy91x-oob/tests/on_target | ||
run: | | ||
pytest -s -v -m "dut2 and conn_bridge" \ | ||
pytest -m "dut2 and conn_bridge" \ | ||
--junit-xml=results/test-results-connectivity-bridge.xml \ | ||
--html=results/test-results-conn-bridge.html --self-contained-html \ | ||
tests | ||
env: | ||
SEGGER_NRF53: ${{ secrets.SEGGER_DUT_2_EXT_DBG }} | ||
|
@@ -182,16 +170,6 @@ jobs: | |
NRF91_CUSTOM_APP_ZIP: artifacts/usb_uart_bridge_app.zip | ||
LOG_FILENAME: oob_conn_bridge_test_log | ||
|
||
- name: Run Wi-Fi location tests | ||
working-directory: thingy91x-oob/tests/on_target | ||
run: | | ||
mkdir -p results | ||
pytest -s -v -m "dut1 and wifi" \ | ||
--junit-xml=results/test-results-wifi-location.xml \ | ||
tests | ||
env: | ||
SEGGER: ${{ secrets.SEGGER_DUT_1 }} | ||
|
||
- name: Results | ||
if: always() | ||
uses: pmeier/[email protected] | ||
|
@@ -200,6 +178,15 @@ jobs: | |
summary: true | ||
fail-on-empty: true | ||
title: OOB FW Test Results | ||
|
||
- name: Create Report Artifact | ||
if: always() | ||
uses: actions/upload-artifact@v4 | ||
id: artifact-report | ||
with: | ||
name: test-report | ||
path: | | ||
thingy91x-oob/tests/on_target/results/*.html | ||
- name: Push log files to artifacts | ||
if: always() | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
pytest | ||
pytest-html | ||
pyserial | ||
termcolor | ||
pyusb | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters