Skip to content

Commit

Permalink
feat(catch2): update to 3.7.0, add tests
Browse files Browse the repository at this point in the history
  • Loading branch information
igrr committed Sep 18, 2024
1 parent 43e2413 commit 2d69ceb
Show file tree
Hide file tree
Showing 5 changed files with 35 additions and 4 deletions.
2 changes: 1 addition & 1 deletion catch2/Catch2
Submodule Catch2 updated 155 files
18 changes: 18 additions & 0 deletions catch2/examples/catch2-console/pytest_catch2_console.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# SPDX-FileCopyrightText: 2024 Espressif Systems (Shanghai) CO LTD
# SPDX-License-Identifier: Unlicense OR CC0-1.0

import pytest
from pytest_embedded import Dut


@pytest.mark.supported_targets
@pytest.mark.generic
def test_catch2_console_example(dut: Dut) -> None:
dut.expect_exact('Type \'help\' to get the list of commands.')
dut.write('test -?\n')
dut.expect_exact('For more detailed usage please see the project docs')
dut.write('test\n')
dut.expect_exact('All tests passed')
dut.expect_exact('1 assertion in 1 test case')


13 changes: 13 additions & 0 deletions catch2/examples/catch2-test/pytest_catch2.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# SPDX-FileCopyrightText: 2024 Espressif Systems (Shanghai) CO LTD
# SPDX-License-Identifier: Unlicense OR CC0-1.0

import pytest
from pytest_embedded import Dut


@pytest.mark.supported_targets
@pytest.mark.generic
def test_catch2_example(dut: Dut) -> None:
dut.expect_exact('All tests passed')
dut.expect_exact('1 assertion in 1 test case')

2 changes: 1 addition & 1 deletion catch2/idf_component.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
version: "3.5.2"
version: "3.7.0"
description: A modern, C++-native, test framework for unit-tests, TDD and BDD - using C++14, C++17 and later
url: https://github.com/espressif/idf-extra-components/tree/master/catch2
repository: https://github.com/espressif/idf-extra-components.git
Expand Down
4 changes: 2 additions & 2 deletions catch2/sbom_catch2.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: catch2
version: 3.5.2
version: 3.7.0
cpe: cpe:2.3:a:catchorg:catch2:{}:*:*:*:*:*:*:*
supplier: 'Organization: catchorg <https://github.com/catchorg>'
description: A modern, C++-native, test framework for unit-tests, TDD and BDD - using C++14, C++17 and later
url: https://github.com/catchorg/Catch2
hash: 05e10dfccc28c7f973727c54f850237d07d5e10f
hash: 31588bb4f56b638dd5afc28d3ebff9b9dcefb88d

0 comments on commit 2d69ceb

Please sign in to comment.