Slide 54
Slide 54 text
Copyright © Fixstars Group
実行例(1/2)
⚫ 実行例
54
$ colcon test --packages-select example_ament_cmake_pytest
…
$ colcon test-result --verbose
build/example_ament_cmake_pytest/Testing/20221113-1623/Test.xml: 1 test, 0 errors, 1 failure, 0 skipped
- example_pytest
<<< failure message
-- run_test.py: invoking following command in '/workspaces/test-methodlogy/build/example_ament_cmake_pytest':
- /usr/bin/python3.10 -u -m pytest /workspaces/test-methodlogy/src/one-by-one/09_example_ament_cmake_pytest/test -o
cache_dir=/workspaces/test-methodlogy/build/example_ament_cmake_pytest/ament_cmake_pytest/example_pytest/.cache --junit-
xml=/workspaces/test-methodlogy/build/example_ament_cmake_pytest/test_results/example_ament_cmake_pytest/example_pytest.xunit.xml --junit-
prefix=example_ament_cmake_pytest
============================= test session starts ==============================
platform linux -- Python 3.10.6, pytest-6.2.5, py-1.10.0, pluggy-0.13.0
cachedir: build/example_ament_cmake_pytest/ament_cmake_pytest/example_pytest/.cache
rootdir: /workspaces/test-methodlogy
plugins: ament-pep257-0.12.4, ament-xmllint-0.12.4, launch-testing-ros-0.19.3, ament-copyright-0.12.4, ament-flake8-0.12.4, ament-lint-0.12.4,
launch-pytest-1.0.3, launch-testing-1.0.3, colcon-core-0.10.0
collected 2 items
../../src/one-by-one/09_example_ament_cmake_pytest/test/test_add.py .F [100%]
=================================== FAILURES ===================================
_________________________________ test_failure _________________________________