2017 © Pedro PelĂĄez
 

library describe-it

Lightweight PHP testing framework with describe-it syntax.

image

lepczynski-s/describe-it

Lightweight PHP testing framework with describe-it syntax.

  • Saturday, September 10, 2016
  • by lepczynski-s
  • Repository
  • 0 Watchers
  • 0 Stars
  • 2 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 5 Versions
  • 0 % Grown

The README.md

Describe-it

Lightweight PHP testing framework with describe-it syntax., (*1)

Stability

This project is still in it's infancy and therefore is not considered to be production ready., (*2)

Installation

Describe-it utilizes composer to manage it's dependencies - make sure you have composer installed on your system., (*3)

$ composer require --dev lepczynski-s/describe-it

Features

  • command-line test-runner
  • test suites support
  • expect-style assertions
  • two formatters: dot & list
  • optional json configuration file

Example

This an example test case using describe-it syntax., (*4)

describe('MyAwesomeClass', function() {
    context('Some of its features', function() {

        it('Should pass', function() {
            expect(10)->to_be->equal_to(10.0);
        });

        it('But this should not', function() {
            expect(10)->to_have->type_of('boolean');
        });

    });
});

Configuration

You can configure describe-it using a describe-it.json file., (*5)

{
    "formatter": {
        "type": "list",
        "indent": 4,
        "passed": true,
        "success": "+",
        "failure": "-"
    },
    "outputs": [
    ],
    "suites": [
        {
            "name": "Features",
            "directory": "test/features",
            "suffix": "test"
        },
        {
            "name": "Issues",
            "directory": "test/issues",
            "suffix": "test"
        }
    ]
}

Roadmap

  • execution context
  • dot formatter
  • tests & documentation
  • custom bootstrap file
  • interactive mode using --watch
  • code-coverage (probably using istanbul)

License

Describe-it is licensed under MIT license. See license file for more information., (*6)

© 2016 Sebastian ƁepczyƄski, (*7)

The Versions

10/09 2016

dev-master

9999999-dev

Lightweight PHP testing framework with describe-it syntax.

  Sources   Download

MIT

The Requires

 

bdd tdd framework testing lightweight describe-it

10/09 2016

0.2.1

0.2.1.0

Lightweight PHP testing framework with describe-it syntax.

  Sources   Download

MIT

The Requires

 

bdd tdd framework testing lightweight describe-it

09/09 2016

0.2.0

0.2.0.0

Lightweight PHP testing framework with describe-it syntax.

  Sources   Download

MIT

The Requires

 

bdd tdd framework testing lightweight describe-it

08/09 2016

0.1.1

0.1.1.0

Lightweight PHP testing framework with describe-it syntax.

  Sources   Download

MIT

The Requires

 

framework testing simple describe-it super

08/09 2016

0.1.0

0.1.0.0

Lightweight PHP testing framework with describe-it syntax.

  Sources   Download

MIT

The Requires

 

framework testing simple describe-it super