Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make sure all test classes have one or more consistent group annotations #305

Merged
merged 1 commit into from Dec 14, 2016

Conversation

jrfnl
Copy link
Member

@jrfnl jrfnl commented Dec 14, 2016

The @group annotation allows for the running of groups of tests based on a command line/xml property being set.
As the test suite is quite large, this allows for quicker/easier testing of a select group of changed tests/sniffs.

This PR covers:

  • Every class has a @group annotation mirroring the name of the sniff being tested.
  • Classes with tests covering related sniffs, have a secondary group annotation for the larger group, i.e. InternalInterfaces and NewInterfaces, both have their own group as well as a secondary interfaces group.
  • For utility function test classes, the group name is utility+ the name of the function.
  • Removed the @group annotations for single tests in sniff test files as having the annotation for the class will assign it to all tests in that class and that's how it was currently used anyway.

…ons.

- Every class has a `@group` annotation mirroring the name of the sniff being tested.
- Classes with tests covering related sniffs, have a secondary group annotation for the larger group, i.e. `InternalInterfaces` and `NewInterfaces`, both have their own group as well as a secondary `interfaces` group.
- For utility function test classes, the group name is `utility`+ the name of the function.
- Removed the `@group` annotations for single tests in sniff test files as having the annotation for the class will assign it to all tests in that class and that's how it was currently used anyway.
@wimg wimg merged commit fbccacf into PHPCompatibility:master Dec 14, 2016
@jrfnl jrfnl deleted the feature/tests-group-annotations branch December 14, 2016 22:05
@jrfnl jrfnl added this to the 7.1.2 milestone May 2, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants