Ensuring that there are tests for a given set of classes (static analysis?)

Posted 8 months ago by bensampo

I'm building an API using Laravel's resources. I want to make sure that the output of each one conforms to my expectations, so for each resource class I have a corresponding unit test.

What I'd ideally like to do is have a test which grabs a list of all of my resource classes and makes sure there is a corresponding unit test.

Essentially I want to test that there are tests.

Is there a sensible/standard way to do this?

Please sign in or create an account to participate in this conversation.

Reply to

Use Markdown with GitHub-flavored code blocks.