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

Posted 5 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.

Laracasts Mascot

Hi, Have We Met Yet?

Did you know that, in addition to the forum, Laracasts includes well over 1000 lessons on modern web development? All for the price of one lunch out per month.

Sign Me Up


Reply to

Use Markdown with GitHub-flavored code blocks.