Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/cabdesigns/trace-test-listener
Searches the call trace when running your unit tests. Useful for identifying dependencies that should be mocked.
https://github.com/cabdesigns/trace-test-listener
php phpunit phpunit-listener unit-testing
Last synced: 13 days ago
JSON representation
Searches the call trace when running your unit tests. Useful for identifying dependencies that should be mocked.
- Host: GitHub
- URL: https://github.com/cabdesigns/trace-test-listener
- Owner: cabdesigns
- License: mit
- Created: 2015-05-04T11:58:24.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2015-05-04T13:56:47.000Z (almost 10 years ago)
- Last Synced: 2024-03-15T07:58:55.009Z (11 months ago)
- Topics: php, phpunit, phpunit-listener, unit-testing
- Language: PHP
- Size: 160 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Trace test listener
Searches the call trace when running your unit tests. Useful for identifying dependencies that should be mocked.Scenarios for using this may include finding out which tests are:
* Hitting a real database, web service, etc.
* Using deprecated features.
* Using tightly coupled code.![Screenshot of terminal using TraceTestListener](docs/terminal-example.png)
## Installation
TraceTestListener is installable via [Composer](http://getcomposer.org) and should be added as a `require-dev` dependency:
php composer.phar require --dev cabdesigns/trace-test-listener dev-master
XDebug **must** be installed for this listener to work.
## Configuration
Configure the search terms you want to look for inside the call trace, using an array argument.
You can also optionally set the directory to write the trace files to. This will default to the `traces` folder.
```xml
curl_exec
traces
```