In python, I have a script called script.py
and a subdirectory with the test
tests
__init__.py
test_set01.py
test_set02.py
for check the untested functions in script.py
I use this bash script
#!/bin/bash
for f in $(egrep "^def" script.py | sed "s/(/\t/" | awk '{print $2}' )
do
if [ "" = "$(grep $f tests/*.*)" ]
then
echo $f
fi
done
exists a better way to find functions without test?