matthiasnoback / live-code-coverage

Generate code coverage reports on a live server
MIT License
116 stars 8 forks source link

Use a dynamic coverage ID #2

Closed matthiasnoback closed 6 years ago

matthiasnoback commented 6 years ago

This would make the coverage report more useful since on hover it will show which coverage runs covered a certain line. Maybe it should be based on the request URI?

Thijmen commented 6 years ago

In my tests I write the current test-name to a Cookie and in my index.php I retrieve my cookie. In that way, you can archieve this too :-)

matthiasnoback commented 6 years ago

Thanks for the suggestion, I will try that for my current situation! I don't think now that this library needs to have more code for that. You can easily set up your own function to determine the coverage ID. Closing this issue now :)

Thijmen commented 6 years ago

I agree, and that's what makes this package so great! It gives a developer to implement it in their own way! :-)

matthiasnoback commented 6 years ago

Nice, thank you :)