Ericsson / codechecker

CodeChecker is an analyzer tooling, defect database and viewer extension for static and dynamic analyzer tools.
https://codechecker.readthedocs.io
Apache License 2.0
2.28k stars 383 forks source link

How to run tests for sarif support #3681

Open gastonstrizzolo opened 2 years ago

gastonstrizzolo commented 2 years ago

Hi, thanks for your amazing tool :) I have been working on add support for sarif format, and at the time of elaborate the tests, I don't know how to run test only in the feature I am working. I supposed that de folder should go in the same directory as plist, I mean, test_plist_parser.py is at /tools/report-converter/tests/unit/parser/plist, so I add test_sarif_parser.py at /tools/report-converter/tests/unit/parser/sarif. But the makefiles' hierachy seems confusing :(, how can I run a command to test only "the parsers"?

dgutson commented 2 years ago

@csordasmarton could you please help us with this?

csordasmarton commented 2 years ago

@dgutson I am no longer working on this project, but @bruntib can help you.

bruntib commented 1 year ago

Hi, Maybe the simplest way of executing report-converter tests is to enter directory "codechecker/tools/report-converter" and type "make test". Is this what you need? Tools like report-converter are considered as standalone 3pp-s that CodeChecker uses. So their build systems are not necessarily exposed in the main Makefiles in a convenient way.