Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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.

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


```