Edit report at https://pear.php.net/bugs/bug.php?id=19976&edit=1

  ID: 19976
  Updated by: gsherwood@squiz.net
  Reported By: cweiske@php.net
  Summary: Run own CS tests without being installed
-Status: Open
+Status: Feedback
  Type: Feature/Change Request
  Package: PHP_CodeSniffer
  Package Version: 1.5.0RC2
  PHP Version: Irrelevant
-Assigned To:
+Assigned To: squiz
  Roadmap Versions:
  New Comment:

-Status: Open
+Status: Feedback
-Assigned To:
+Assigned To: squiz
Hi Christian, can you give me a bit more info about how you are trying
to run the
tests and what the structure of your code is?

Do you just have your own directory structure, like:

And how are you trying to run the tests? Do you have your own test
suite, or are
you more referring to the fact that there isn't a command you can really
use to run

Previous Comments:

[2013-06-12 10:50:00] cweiske

It is currently not possible to run unit tests for an own ruleset that
has not been installed via PEAR.

This is because AbstractSniffUnitTest.php detects if PHP_CodeSniffer is
installed, and then assumes that the tests to execute are also in the
same path as PHP_CodeSniffer itself.

Now I'd like to run the tests of my not installed ruleset with an
installed version of php_codesniffer :)


Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
grouppear-bugs @
postedJun 18, '13 at 4:08a
activeJun 18, '13 at 4:08a

1 user in discussion

Gsherwood: 1 post



site design / logo © 2022 Grokbase