Run test cases for the whole Doctype

 bench --site testing.apps run-tests --doctype "Doctype"

Run test cases for a single function in a Doctype

bench --site testing.apps run-tests --doctype "Doctype" --test "test_function_name"