Count how many tests related to a keyword via pytest

pytest -k <keyword> --co | grep "collected" | tail -1 | awk '{print $2}'

Leave a Reply

Your email address will not be published. Required fields are marked *