-
Notifications
You must be signed in to change notification settings - Fork 93
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(catch2): update to 3.7.0, add tests
- Loading branch information
Showing
5 changed files
with
35 additions
and
4 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 |
---|---|---|
@@ -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') | ||
|
||
|
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 |
---|---|---|
@@ -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') | ||
|
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
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 |