GithubHelp home page GithubHelp logo

loncarales / phpunit-progress Goto Github PK

View Code? Open in Web Editor NEW

This project forked from aubreyhewes/phpunit-progress

0.0 1.0 0.0 399 KB

A PHPUnit printer which produces results that looks like Rspec's.

phpunit-progress's Introduction

Progress results printer for PHPUnit

This PHPUnit extention makes the printed tests results look similar to Rspec's default formatter called "progress".

The progress printer tries to focus on the tests results only; That's why a lot of the info printed by the default PHPUnit printer was removed.

Test results have the same colors and spacing as the Rspec's results. If you want to see how results look, check out the screenshot below!

Usage

There is more than one way to use this printer with PHPUnit. Probably the easiest way is to pass the the printer (with it's location) as arguments to the phpunit command.

So clone this repo to someplace on your machine. Then copy the following command and paste it to your terminal (Don't forget to replace the things inside brackets)

phpunit --include-path [Path to your clone of this repo] \
--printer PHPUnit_Extensions_Progress_ResultPrinter   \
--colors [Tests Path]

If you want to see a the skipped and incomplete tests too in the results, you can add the --verbose argument the the command above.

Another way is to use a phpunit.xml file and pass its location as an argument. If you are intrested in this way, I would recommend that you read PHPUnit's docs.

Screenshot

Here is how the results of this extention look using the progress printer: Progress printer results in the terminal

phpunit-progress's People

Contributors

maher4ever avatar aubreyhewes avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.