Commit graph

15 commits

Author SHA1 Message Date
ea0dc99e14
TASK: Use test class for each sniff.
* Allow executing tests for single sniff through phpunit '--filter'.
* Provide structure to add further tests for a single sniff.
* Make output more clear, which sniff was tested.
2017-05-02 15:08:21 +02:00
69bb97ad94
Merge branch 'feature/72-refactor-sniff-architecture' into feature/54-add-checks-for-typoscript 2017-04-25 15:50:04 +02:00
d12990f6e1
TASK: Streamline test output on error 2017-04-25 14:16:59 +02:00
8572740fd1
TASK: Shorten test output
* Remove unnecessary information to shorten output.
* This should make it easier to get the actual issue.
2017-04-25 13:41:36 +02:00
154fe43582
FEATURE: Allow multiple files to be used as insert for tests
* Detect file for php and TS out of the box.
* Keep old handling to configure file name.
* Also detect file format, e.g. TypoScript, and configure phpcs
  tokenizer accordingly.

Relates: #54
2017-04-13 13:39:08 +02:00
e48cbe712e
BUGFIX: Allow phpunit tests to run even if phpcs.xml.dist is provided
* By adding Coding Standard to calls, phpcs will not lookup the standard
  to use in our phpcs.xml.dist, which is used to check the project
  itself.
* Instead it will use the provided standard.
2017-04-10 13:32:44 +02:00
6528c391b2
FEATURE: Make each sniff run as a new test
* Allows running all further sniffs, even if a single sniff fails.
* Shows all issues at once in output.
* Use native SplFileInfo instead of Symfony, as we have no need for the
  dependency.

Relates: #46
2017-04-09 13:40:10 +02:00
0b21535f87
BUGFIX: Allow multiple runtime-set per test
Relates: #46
2017-04-06 16:11:29 +02:00
e957e5fe18
TASK: Refactor, follow CS and add more info on error
Relates: #46
2017-04-06 16:00:44 +02:00
958086da24
FEATURE: Add tests for MissingVendorForPluginsAndModulesSniff
* With custom vendor and default vendor.

Relates: #46
2017-04-06 15:48:37 +02:00
0703167315
FEATURE: Allow to overwrite cli arguments for test
* Enable overwriting using Arguments.php.
* Add multiple sub tests for AjaxRegistrationSniff.

Relates: #46
2017-04-06 15:37:55 +02:00
f9ad7070a5
TASK: Add mapping for tests
Relates: #46
2017-04-06 12:48:43 +02:00
b23ee6ef8b
TASK: Improve tests
* Allow phpcbf / diff to be optional, as not all tests are fixable.
* Provide more information in case of error.
* Provide phpunit dist to run phpunit without anything special.

Relates: #46
2017-04-06 11:14:32 +02:00
7c35998c62
FEATURE: Also enable testing phpcbf
* Add diff to test actual fixes.

Relates: #46
2017-04-06 10:55:17 +02:00
1b309bd709
WIP|FEATURE: First working test
* Parses fixtures to auto run tests for sniffs.
* Compares actual result for fixture input against expected result from
  fixture.

Relates: #46
2017-04-06 10:39:24 +02:00