Git Product home page Git Product logo

phpunit-slicer's People

Contributors

ecourtial avatar mcfedr avatar mnapoli avatar philippe-vandermoere avatar porebskk avatar vdechenaux avatar wizacedric avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

phpunit-slicer's Issues

Last phpunit slicer tests count wrong

The last slice tests count is wrong.

It say 44 tests but it should be 15 tests

PHPUnit suite slicer, running slice 30/30 (44 tests: from #1276 to #1291)

phpunit 10

Are there already any plans for compatibility with phpunit 10 ?

PHPUnit made `\PHPUnit\TextUI\TestRunner` final

Since PHPUnit made this class final, we should look for another way of hooking into its functionality.

I hacked together a quick fix for now by just copy-and-pasting the contents of the class, but there has to be a better way to achieve this.

setUpBeforeClass not called when slice activated

If you exec slicer without slices options it works well
vendor/bin/phpunit-slicer --color --configuration configuration.xml

If you use the slices options, the setUpBeforeClass hook was not called and test fails
vendor/bin/phpunit-slicer --color --configuration configuration.xml --slices 1/1

php-slicer 1.0
phpunit/phpunit 7.5.20

TestDummy.php

<?php

use PHPUnit\Framework\TestCase;

class TestDummy extends TestCase
{
    static $called = false;

    public static function setUpBeforeClass()
    {
        parent::setUpBeforeClass();
        self::$called = true;
    }

    public function testSetUpBeforeClassIsCalled()
    {
        $this->assertTrue(self::$called);
    }
}

Configurations.xml

<?xml version="1.0" encoding="UTF-8"?>

<phpunit>

    <testsuites>

        <testsuite name="testsuite-dummy">
            <directory>TestDummy.php</directory>
        </testsuite>

    </testsuites>


</phpunit>

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.