pynguin icon indicating copy to clipboard operation
pynguin copied to clipboard

Low coverage generating tests on a ROS Node

Open banzo opened this issue 1 year ago • 1 comments

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):

banzo avatar Feb 05 '24 10:02 banzo