Skip to content
You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?
check-square

GitHub Action

ESP32 unit tests runner

v4.4

ESP32 unit tests runner

check-square

ESP32 unit tests runner

Build your ESP32 firmware using IDF SDK, run it at QEMU, parse Unity output and returns JUnit report.xml

Installation

Copy and paste the following snippet into your .yml file.

              

- name: ESP32 unit tests runner

uses: Batov/[email protected]

Learn more about this action in Batov/esp32_qemu_unity_test_action

Choose a version

Unittest action

  1. Setup your ESP32 firmware runs unit tests and esp_restart() (to stop QEMU);
  2. Action builds firmware;
  3. Action runs firmware ar QEMU;
  4. Action writes QEMU log output to file;
  5. Action converts Unity output to JUnit report.xml;
  6. You can feed report.xml to another action to publish test resuls;

Example workflow with results publishing

name: Test
on:
  workflow_dispatch:

jobs:
  build:
    runs-on: ubuntu-latest
    steps:
      - name: Checkout repo
        uses: actions/checkout@v2
      - name: Build and show result
        uses: batov/esp32_qemu_runner@master
      - name: Publish Unit Test Results
        uses: EnricoMi/publish-unit-test-result-action@v1
        if: always()
        with:
            files: report.xml

Example project

https://github.com/Batov/esp32_unittest