Skip to content

Measure code coverage #630

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
yutaro-sakamoto opened this issue May 7, 2025 · 1 comment
Open

Measure code coverage #630

yutaro-sakamoto opened this issue May 7, 2025 · 1 comment
Assignees

Comments

@yutaro-sakamoto
Copy link
Contributor

We should measure code coverage of both cobj/ and libcobj/.

@yutaro-sakamoto yutaro-sakamoto self-assigned this May 7, 2025
@yutaro-sakamoto
Copy link
Contributor Author

参考ページ

gcov使い方メモ

./configure --prefix=/usr/ CFLAGS="-coverage"
make
make install

# run some tests ...

cd cobj
gcov -bc cobj-codegen
cat codegen.c.gcov

lcov使い方メモ

./configure --prefix=/usr/ CFLAGS="-coverage"
make
make install

# run some tests ...

cd cobj
gcov -bc cobj-codegen
cat codegen.c.gcov

cd cobj
mkdir -p html
lcov -c -d . -o sample.info
genhtml -o html sample.info

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant