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

BCTokens: test arrays against PHPCS upstream #193

Merged
merged 1 commit into from
Sep 5, 2020

Conversation

jrfnl
Copy link
Member

@jrfnl jrfnl commented Sep 5, 2020

This adds tests for all backfilled token arrays in the BCTokens class to verify whether they are still in line with the upstream version.

These tests should be considered risky as they can fail without warning if something upstream would change.
These tests would also fail when run against older PHPCS versions for those token array which have had changes over time.

For that reason, they have been placed in a separate test group compareWithPHPCS, which is excluded from being run by default.

In the Travis script two additional runs have been added to specifically and only run these tests against PHPCS master and 4.x. Both of these builds have been added to the allow_failures array.

Loosely related to #5

This adds tests for all backfilled token arrays in the `BCTokens` class to verify whether they are still in line with the upstream version.

These tests should be considered _risky_ as they can fail without warning if something upstream would change.
These tests would also fail when run against older PHPCS versions for those token array which havehad changes over time.

For that reason, they have been placed in a separate test group `compareWithPHPCS`, which is excluded from being run by default.

In the Travis script two additional runs have been added to specifically and only run these tests against PHPCS `master` and `4.x`. Both of these builds have been added to the `allow_failures` array.

Loosely related to 5
@jrfnl jrfnl added this to the 1.0.0-alpha4 milestone Sep 5, 2020
@jrfnl jrfnl merged commit d4556fc into develop Sep 5, 2020
@jrfnl jrfnl deleted the feature/bctokens-test-against-upstream-arrays branch September 5, 2020 10:15
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.

1 participant