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

phpunit & code coverage support #80

Closed
cbastienbaron opened this issue Jun 22, 2017 · 6 comments
Closed

phpunit & code coverage support #80

cbastienbaron opened this issue Jun 22, 2017 · 6 comments

Comments

@cbastienbaron
Copy link
Contributor

Hi,
TY for this pratical tool ;) one line command save my time ! ;)
It's possible to integrate phpunit and particulary code coverage integrate in the UI ?

Thanks in advance for you're response
seb

@zdenekdrahos
Copy link
Member

Phpunit (or codeception, phpspec, ...) won't be a part of phpqa.
phpqa is collection of analyzers, phpunit is different:

We deal with 2 kinds of require-dev dependencie. The ones that work "on-top" of your code or don't touch your code at all, tools like Phing, phpDocumentor or Codesniffer. On the other hand, we have to deal with tools that closely "interact" with your code, tools like PHPUnit. The tools that work "on-top" of your code can easily be replaced by their .phar versions and you will not notice any difference. The "problem" are tools like PHPUnit which interact closely which your code
https://blog.bitexpert.de/blog/solving-the-require-dev-problem/

@cbastienbaron
Copy link
Contributor Author

it's a part of assurance quality of code... and the main goal of phpqa (IMHO), it's a facade / proxy / facilitator to others tools to analyse / get metrics of applicative in one cmd, and not care of "dev/deps" of project (less download during ci-cycles), and one more thing, phpqa.html let us to group all analyses in a cool way (for visual interact ex: qa.my.-project.staging.toto.com) and the code coverage can be a great place here. u get my point of view , or there is no way ? :)

@zdenekdrahos
Copy link
Member

zdenekdrahos commented Jun 22, 2017

No way to run phpunit via phpqa.

It could be possible to add "other files" or links to phpqa report.
.phpqa.yml would contain something like

report:
    external:
       PHPUnit: var/phpunit/coverage/
       testdox: var/phpunit/testdox.html

But that's a tricky and I don't want to do that right now.
For now I recommend to separate phpunit and phpqa.

phpqa's goal

I want to analyze selected directory

How does that sound with phpunit? Not very good, at least for me :)
Sometimes you can't put everything into one command...

@cbastienbaron
Copy link
Contributor Author

there is 2 schools here ( like often times ), this workaround (external) for code coverage is indeed what i need.
thinking flexibility is a must have ... (specially for render results)

@zdenekdrahos
Copy link
Member

Phpunit reports in phpqa are nice, but running phpunit from phpqa is tricky...
Experimental support in #82. Could you check it out and try it?

composer update edgedesign/phpqa:dev-windows-compatibility

@zdenekdrahos zdenekdrahos reopened this Jul 1, 2017
@cbastienbaron
Copy link
Contributor Author

works like a charms ! perfect 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants