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

Coverage. #15

Closed
m1ome opened this issue Feb 2, 2015 · 11 comments
Closed

Coverage. #15

m1ome opened this issue Feb 2, 2015 · 11 comments
Labels

Comments

@m1ome
Copy link
Collaborator

m1ome commented Feb 2, 2015

When i am trying to run bin/kahlan --config="kahlan-config.travis.php" --coverage="kahlan\plugin\Call".

It outputs:

Coverage Summary
----------------

Unexisting namespace: `kahlan\plugin\Call`, coverage can't be generated.

It is a quite strange.

@jails
Copy link
Contributor

jails commented Feb 2, 2015

Weird, it's working for me on a clean install.

@m1ome
Copy link
Collaborator Author

m1ome commented Feb 2, 2015

I am reproducing it with a clean install. Any suggestions how to trace this.

@jails
Copy link
Contributor

jails commented Feb 2, 2015

Also tried to running it with HHVM and it works. Try to clean up caches rm -rf /tmp/kahlan and run it again.
What php version are you using ?
Does bin/kahlan --config="kahlan-config.travis.php" --coverage="kahlan\plugin" spit out the kahlan\plugin\Call.php file ?

@m1ome
Copy link
Collaborator Author

m1ome commented Feb 2, 2015

PHP 5.5.20-1+deb.sury.org~precise+1 (cli) (built: Dec 21 2014 19:54:33) 
Copyright (c) 1997-2014 The PHP Group
Zend Engine v2.5.0, Copyright (c) 1998-2014 Zend Technologies
    with Zend OPcache v7.0.4-dev, Copyright (c) 1999-2014, by Zend Technologies
    with Xdebug v2.2.5, Copyright (c) 2002-2014, by Derick Rethans

@m1ome
Copy link
Collaborator Author

m1ome commented Feb 2, 2015

Removed cache and still the same.

@m1ome
Copy link
Collaborator Author

m1ome commented Feb 2, 2015

Yes bin/kahlan --config="kahlan-config.travis.php" --coverage="kahlan\plugin" echo a coverage on plugin\Call.php

@jails
Copy link
Contributor

jails commented Feb 2, 2015

Are you running it inside a vagrant box or something ?

@jails
Copy link
Contributor

jails commented Feb 2, 2015

The displayed error is this one: https://github.com/crysalead/kahlan/blob/master/src/reporter/Coverage.php#L266

you should be able to do a:

print_r(array_keys($this->metrics()->get("kahlan\plugin")));

And you should see all classes inside plugin.
but if 'plugin\Call.php' has been spitted out, there's no reason:

print_r(array_keys($this->metrics()->get("kahlan\plugin\Call")));

can't display the correct information.

@m1ome
Copy link
Collaborator Author

m1ome commented Feb 2, 2015

Yes, i am running inside a vagrant.

jails added a commit that referenced this issue Feb 3, 2015
@jails
Copy link
Contributor

jails commented Feb 3, 2015

Still not able to reproduce on travis (https://travis-ci.org/crysalead/kahlan/builds/49312153). Feel free to reopen if you find the root cause.

@jails jails closed this as completed Feb 3, 2015
@m1ome
Copy link
Collaborator Author

m1ome commented Feb 14, 2015

Find a bug. Fix it on crysalead/jit#1

@jails jails added the bug label Mar 20, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants