2017 © Pedro Peláez
 

library vw-extension

image

atoum/vw-extension

  • Thursday, October 8, 2015
  • by agallou
  • Repository
  • 1 Watchers
  • 6 Stars
  • 6 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

atoum/vw-extension

vw-extension makes atoum failing test cases succeed in continuous integration tools., (*1)

Inspired by phpunit-vw., (*2)

Example

Here are the results of running the extension test in different environments:, (*3)

namespace mageekguy\atoum\vw\tests\units;

use mageekguy\atoum;

class extension extends atoum\test
{
    private $noxEmissions = 12000;

    private $legalLimit = 300;

    public function testEnvironmentalImpactCompliance()
    {
        $this->integer($this->noxEmissions)->isLessThan($this->legalLimit);
    }
}

Running in development environment: Failing in dev environment, (*4)

Running in CI environment: Build Status, (*5)

Succeeded in CI environment, (*6)

Install it

Install extension using composer:, (*7)

composer require --dev atoum/vw-extension:~1.0

Enable the extension using atoum configuration file:, (*8)

<?php

// .atoum.php

require_once __DIR__ . DIRECTORY_SEPARATOR . 'vendor' . DIRECTORY_SEPARATOR . 'autoload.php';

$runner->addExtension(new \mageekguy\atoum\vw\extension($script));

CI tools detection

Currently detects :, (*9)

  • TravisCI
  • Appveyor
  • Bamboo
  • Buildkite
  • CircleCI
  • CodeShip
  • GitlabCI
  • Go CD
  • Hudson
  • Jenkins
  • PHPCI
  • TeamCity

Other CI tools using environment variables like 'BUILD_ID' would be detected as well., (*10)

License

vw-extension is available under the MIT License., (*11)

The Versions

08/10 2015

dev-master

9999999-dev

  Sources   Download

MIT

The Requires

 

by Adrien Gallou

08/10 2015

1.0

1.0.0.0

  Sources   Download

MIT

The Requires

 

by Adrien Gallou