Generate report of unit tests for C/C++ projects
- Ctags link to repo ( on windows unpack binaries and put ctag.exe in this project directory)
- XlsxWriter
- make sure that you have installed python 3.6 or higher python
- make sure that you have git installed ( not necessary ) git
- download this project ( and unpack if needed )
- make sure that ctags.exe is in project directory ( RaportGenerator )
- open CMD ( i know scary ... )
- install virtualenv (
py -m pip install virtualenv
) - generate venv (
py -m virtualenv venv
) - get into venv (
venv\Scripts\activate
) - get to project directory ( 'cd' and 'dir' commands will be helpful )
- type
py -m pip install -r requirements.txt
- use the script by typing
RaportGenerator.py -h
- python is always pre-installed, but make sure that you have python3
- git is always pre-installed so use it to download this repo
- for convenience you can put this script in venv ( we keep our system clean and tidy)
- install virtualenv ( pip install virtuelenv)
- create venv (
virtualenv venv
) - get into venv (
source venv/bin/activate
) - install requirements (
pip install -r requirements.txt
) - use the script by typing
RaportGenerator.py -h
There is no need for using venv, and if you don't want to you can go straight to installing requirements, but those will be installed globally, abut every responsible user should keep its system tidy
RaportGenerator.py [-h] [-s] [-r]
Generate test reports
optional arguments:
-h, --help show this help message and exit
-s, --single-file analyse single file
-r, --recurrent resolve included files recurrently, only #include "" is
recognised
you can analyse all files ( .C .cpp .c .h .hpp) from specified directory, or by passing argument '-s' only one of them
Recurrent analyse means that if file a.c includes file a.h and in that file exists function that has implementation, then this function will appear in report for file a.c, because report page is generated for every compilation unit