pynguin
pynguin copied to clipboard
Low coverage generating tests on a ROS Node
We are trying to generate tests for our ROS project. Running Pynguin on a simple vehicle class shows a coverage of 0.187500 and the test generated is not very useful:
# Test cases automatically generated by Pynguin (https://www.pynguin.eu).
# Please check them before you use them.
import pytest
import vehicle as module_0
@pytest.mark.xfail(strict=True)
def test_case_0():
module_0.Vehicle()
We are guessing that Pynguin gets lost at one point, and are looking for some insight on what we can do.
To Reproduce We made a minimal example here.
Expected behavior
We would expect the coverage to be a bit higher, with some relevant tests (test on the speed_profile or even the quickstart example).
Software Version (please complete the following information):
- OS: Docker Ubuntu 22.04 + ROS Humble
- Python version: 3.10.12
- Pynguin Version: 0.34.0