Skip to content

Reassess how "integration test" is used #309

@GaryJones

Description

@GaryJones

The "integration test" file seems to be mis-used, or at least not up to date.

We already have individual unit tests, that can test for the presence of violations in known "bad" code, and check there are no violations reported for "good" code.

I recently saw @jrfnl (I think) mention that the purpose of an extra file like this was to check that all the sniff classes in the repo were called against a file, without throwing any errors (I think). I can't remember or find the exact wording of this statement, or find any more background research or examples, but I'm pretty sure that the current VIPCS integration test does NOT contain code that triggers each of our sniffs (i.e. recently added sniffs may not be triggered).

I'd like to get to the bottom of the purpose of this file, and find a way to ensure that it serves its correct purpose, and doesn't just be somewhat of a duplicate of unit tests.

cc @david-binda for any historical reference he might have.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions