Skip to content

Commit

Permalink
Show data provider details in slow test list
Browse files Browse the repository at this point in the history
  • Loading branch information
mvorisek committed May 14, 2024
1 parent 0c69d02 commit 88ea864
Show file tree
Hide file tree
Showing 40 changed files with 171 additions and 109 deletions.
12 changes: 12 additions & 0 deletions src/PhaseIdentifier.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@

namespace Ergebnis\PHPUnit\SlowTestDetector;

use PHPUnit\Event;

/**
* @internal
*/
Expand Down Expand Up @@ -40,6 +42,16 @@ public static function fromString(string $value): self
return new self($value);
}

/**
* @throws Exception\InvalidPhaseIdentifier
*/
public static function fromTestEvent(Event\Code\Test $test): self

Check failure on line 48 in src/PhaseIdentifier.php

View workflow job for this annotation

GitHub Actions / Static Code Analysis (7.4, locked)

PossiblyUnusedMethod

src/PhaseIdentifier.php:48:28: PossiblyUnusedMethod: Cannot find any calls to method Ergebnis\PHPUnit\SlowTestDetector\PhaseIdentifier::fromTestEvent (see https://psalm.dev/087)

Check failure on line 48 in src/PhaseIdentifier.php

View workflow job for this annotation

GitHub Actions / Static Code Analysis (7.4, locked)

UndefinedClass

src/PhaseIdentifier.php:48:42: UndefinedClass: Class, interface or enum named PHPUnit\Event\Code\Test does not exist (see https://psalm.dev/019)

Check failure on line 48 in src/PhaseIdentifier.php

View workflow job for this annotation

GitHub Actions / Static Code Analysis (7.4, locked)

UnusedParam

src/PhaseIdentifier.php:48:58: UnusedParam: Param #1 is never referenced in this method (see https://psalm.dev/135)

Check failure on line 48 in src/PhaseIdentifier.php

View workflow job for this annotation

GitHub Actions / Static Code Analysis (7.4, locked)

MixedInferredReturnType

src/PhaseIdentifier.php:48:66: MixedInferredReturnType: Could not verify return type 'Ergebnis\PHPUnit\SlowTestDetector\PhaseIdentifier' for Ergebnis\PHPUnit\SlowTestDetector\PhaseIdentifier::fromTestEvent (see https://psalm.dev/047)

Check warning on line 48 in src/PhaseIdentifier.php

View check run for this annotation

Codecov / codecov/patch

src/PhaseIdentifier.php#L48

Added line #L48 was not covered by tests
{
$testName = TestIdentifier::makeStringFromTestEvent($test);

Check warning on line 50 in src/PhaseIdentifier.php

View check run for this annotation

Codecov / codecov/patch

src/PhaseIdentifier.php#L50

Added line #L50 was not covered by tests

return self::fromString($testName);

Check warning on line 52 in src/PhaseIdentifier.php

View check run for this annotation

Codecov / codecov/patch

src/PhaseIdentifier.php#L52

Added line #L52 was not covered by tests
}

public function toString(): string
{
return $this->value;
Expand Down
4 changes: 2 additions & 2 deletions src/Subscriber/Test/FinishedSubscriber.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ public function __construct(
*/
public function notify(Event\Test\Finished $event): void
{
$phaseIdentifier = PhaseIdentifier::fromString($event->test()->id());
$phaseIdentifier = PhaseIdentifier::fromTestEvent($event->test());

$time = $event->telemetryInfo()->time();

Expand All @@ -81,7 +81,7 @@ public function notify(Event\Test\Finished $event): void
}

$slowTest = SlowTest::create(
TestIdentifier::fromString($event->test()->id()),
TestIdentifier::fromTestEvent($event->test()),
$duration,
$maximumDuration
);
Expand Down
2 changes: 1 addition & 1 deletion src/Subscriber/Test/PreparationStartedSubscriber.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public function notify(Event\Test\PreparationStarted $event): void
$time = $event->telemetryInfo()->time();

$this->timeKeeper->start(
PhaseIdentifier::fromString($event->test()->id()),
PhaseIdentifier::fromTestEvent($event->test()),
Time::fromSecondsAndNanoseconds(
$time->seconds(),
$time->nanoseconds()
Expand Down
50 changes: 50 additions & 0 deletions src/TestIdentifier.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@

namespace Ergebnis\PHPUnit\SlowTestDetector;

use PHPUnit\Event;
use PHPUnit\Framework\TestCase;

/**
* @internal
*/
Expand Down Expand Up @@ -40,6 +43,53 @@ public static function fromString(string $value): self
return new self($value);
}

public static function makeStringFromTestEvent(Event\Code\Test $test): string

Check failure on line 46 in src/TestIdentifier.php

View workflow job for this annotation

GitHub Actions / Static Code Analysis (7.4, locked)

PossiblyUnusedMethod

src/TestIdentifier.php:46:28: PossiblyUnusedMethod: Cannot find any calls to method Ergebnis\PHPUnit\SlowTestDetector\TestIdentifier::makeStringFromTestEvent (see https://psalm.dev/087)

Check failure on line 46 in src/TestIdentifier.php

View workflow job for this annotation

GitHub Actions / Static Code Analysis (7.4, locked)

UndefinedClass

src/TestIdentifier.php:46:52: UndefinedClass: Class, interface or enum named PHPUnit\Event\Code\Test does not exist (see https://psalm.dev/019)

Check failure on line 46 in src/TestIdentifier.php

View workflow job for this annotation

GitHub Actions / Static Code Analysis (7.4, locked)

UnusedParam

src/TestIdentifier.php:46:68: UnusedParam: Param #1 is never referenced in this method (see https://psalm.dev/135)

Check failure on line 46 in src/TestIdentifier.php

View workflow job for this annotation

GitHub Actions / Static Code Analysis (7.4, locked)

MixedInferredReturnType

src/TestIdentifier.php:46:76: MixedInferredReturnType: Could not verify return type 'string' for Ergebnis\PHPUnit\SlowTestDetector\TestIdentifier::makeStringFromTestEvent (see https://psalm.dev/047)

Check warning on line 46 in src/TestIdentifier.php

View check run for this annotation

Codecov / codecov/patch

src/TestIdentifier.php#L46

Added line #L46 was not covered by tests
{
// mimic https://github.com/sebastianbergmann/phpunit/blob/11.1.3/src/TextUI/Output/Default/ResultPrinter.php#L511-L521
if ($test->isTestMethod()) {

Check warning on line 49 in src/TestIdentifier.php

View check run for this annotation

Codecov / codecov/patch

src/TestIdentifier.php#L49

Added line #L49 was not covered by tests
\assert($test instanceof Event\Code\TestMethod);

if (!$test->testData()->hasDataFromDataProvider()) {
$testName = $test->nameWithClass();

Check warning on line 53 in src/TestIdentifier.php

View check run for this annotation

Codecov / codecov/patch

src/TestIdentifier.php#L52-L53

Added lines #L52 - L53 were not covered by tests
} else {
$testName = $test->className() . '::' . $test->methodName();

Check warning on line 55 in src/TestIdentifier.php

View check run for this annotation

Codecov / codecov/patch

src/TestIdentifier.php#L55

Added line #L55 was not covered by tests

$dataProvider = $test->testData()->dataFromDataProvider();

Check warning on line 57 in src/TestIdentifier.php

View check run for this annotation

Codecov / codecov/patch

src/TestIdentifier.php#L57

Added line #L57 was not covered by tests

if (!\method_exists($dataProvider, 'dataAsStringForResultOutput')) { // backport https://github.com/sebastianbergmann/phpunit/commit/5d049893b8
$dataAsStringForResultOutput = null;

Check warning on line 60 in src/TestIdentifier.php

View check run for this annotation

Codecov / codecov/patch

src/TestIdentifier.php#L59-L60

Added lines #L59 - L60 were not covered by tests

foreach (\debug_backtrace() as $frame) {
if (($frame['object'] ?? null) instanceof TestCase) {
$dataAsStringForResultOutput = $frame['object']->dataSetAsStringWithData();

Check warning on line 64 in src/TestIdentifier.php

View check run for this annotation

Codecov / codecov/patch

src/TestIdentifier.php#L62-L64

Added lines #L62 - L64 were not covered by tests
}
}

\assert(null !== $dataAsStringForResultOutput);

$testName .= $dataAsStringForResultOutput;

Check warning on line 70 in src/TestIdentifier.php

View check run for this annotation

Codecov / codecov/patch

src/TestIdentifier.php#L70

Added line #L70 was not covered by tests
} else {
$testName .= $test->testData()->dataFromDataProvider()->dataAsStringForResultOutput();

Check warning on line 72 in src/TestIdentifier.php

View check run for this annotation

Codecov / codecov/patch

src/TestIdentifier.php#L72

Added line #L72 was not covered by tests
}
}

} else {
$testName = $test->name();

Check warning on line 77 in src/TestIdentifier.php

View check run for this annotation

Codecov / codecov/patch

src/TestIdentifier.php#L77

Added line #L77 was not covered by tests
}

return $testName;

Check warning on line 80 in src/TestIdentifier.php

View check run for this annotation

Codecov / codecov/patch

src/TestIdentifier.php#L80

Added line #L80 was not covered by tests
}

/**
* @throws Exception\InvalidTestIdentifier
*/
public static function fromTestEvent(Event\Code\Test $test): self

Check failure on line 86 in src/TestIdentifier.php

View workflow job for this annotation

GitHub Actions / Static Code Analysis (7.4, locked)

PossiblyUnusedMethod

src/TestIdentifier.php:86:28: PossiblyUnusedMethod: Cannot find any calls to method Ergebnis\PHPUnit\SlowTestDetector\TestIdentifier::fromTestEvent (see https://psalm.dev/087)

Check failure on line 86 in src/TestIdentifier.php

View workflow job for this annotation

GitHub Actions / Static Code Analysis (7.4, locked)

UndefinedClass

src/TestIdentifier.php:86:42: UndefinedClass: Class, interface or enum named PHPUnit\Event\Code\Test does not exist (see https://psalm.dev/019)

Check warning on line 86 in src/TestIdentifier.php

View check run for this annotation

Codecov / codecov/patch

src/TestIdentifier.php#L86

Added line #L86 was not covered by tests
{
$testName = self::makeStringFromTestEvent($test);

Check warning on line 88 in src/TestIdentifier.php

View check run for this annotation

Codecov / codecov/patch

src/TestIdentifier.php#L88

Added line #L88 was not covered by tests

return self::fromString($testName);

Check warning on line 90 in src/TestIdentifier.php

View check run for this annotation

Codecov / codecov/patch

src/TestIdentifier.php#L90

Added line #L90 was not covered by tests
}

public function toString(): string
{
return $this->value;
Expand Down
20 changes: 10 additions & 10 deletions test/EndToEnd/Version10/Configuration/Defaults/test.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -24,16 +24,16 @@ Configuration: %s/EndToEnd/Version10/Configuration/Defaults/phpunit.xml

Detected 11 tests where the duration exceeded the maximum duration.

1. 1.6%s (0.500) Ergebnis\PHPUnit\SlowTestDetector\Test\EndToEnd\Version10\Configuration\Defaults\SleeperTest::testSleeperSleepsLongerThanDefaultMaximumDurationWithDataProvider#10
2. 1.5%s (0.500) Ergebnis\PHPUnit\SlowTestDetector\Test\EndToEnd\Version10\Configuration\Defaults\SleeperTest::testSleeperSleepsLongerThanDefaultMaximumDurationWithDataProvider#9
3. 1.4%s (0.500) Ergebnis\PHPUnit\SlowTestDetector\Test\EndToEnd\Version10\Configuration\Defaults\SleeperTest::testSleeperSleepsLongerThanDefaultMaximumDurationWithDataProvider#8
4. 1.3%s (0.500) Ergebnis\PHPUnit\SlowTestDetector\Test\EndToEnd\Version10\Configuration\Defaults\SleeperTest::testSleeperSleepsLongerThanDefaultMaximumDurationWithDataProvider#7
5. 1.2%s (0.500) Ergebnis\PHPUnit\SlowTestDetector\Test\EndToEnd\Version10\Configuration\Defaults\SleeperTest::testSleeperSleepsLongerThanDefaultMaximumDurationWithDataProvider#6
6. 1.1%s (0.500) Ergebnis\PHPUnit\SlowTestDetector\Test\EndToEnd\Version10\Configuration\Defaults\SleeperTest::testSleeperSleepsLongerThanDefaultMaximumDurationWithDataProvider#5
7. 1.0%s (0.500) Ergebnis\PHPUnit\SlowTestDetector\Test\EndToEnd\Version10\Configuration\Defaults\SleeperTest::testSleeperSleepsLongerThanDefaultMaximumDurationWithDataProvider#4
8. 0.9%s (0.500) Ergebnis\PHPUnit\SlowTestDetector\Test\EndToEnd\Version10\Configuration\Defaults\SleeperTest::testSleeperSleepsLongerThanDefaultMaximumDurationWithDataProvider#3
9. 0.8%s (0.500) Ergebnis\PHPUnit\SlowTestDetector\Test\EndToEnd\Version10\Configuration\Defaults\SleeperTest::testSleeperSleepsLongerThanDefaultMaximumDurationWithDataProvider#2
10. 0.7%s (0.500) Ergebnis\PHPUnit\SlowTestDetector\Test\EndToEnd\Version10\Configuration\Defaults\SleeperTest::testSleeperSleepsLongerThanDefaultMaximumDurationWithDataProvider#1
1. 1.6%s (0.500) Ergebnis\PHPUnit\SlowTestDetector\Test\EndToEnd\Version10\Configuration\Defaults\SleeperTest::testSleeperSleepsLongerThanDefaultMaximumDurationWithDataProvider with data set #10 (1600)
2. 1.5%s (0.500) Ergebnis\PHPUnit\SlowTestDetector\Test\EndToEnd\Version10\Configuration\Defaults\SleeperTest::testSleeperSleepsLongerThanDefaultMaximumDurationWithDataProvider with data set #9 (1500)
3. 1.4%s (0.500) Ergebnis\PHPUnit\SlowTestDetector\Test\EndToEnd\Version10\Configuration\Defaults\SleeperTest::testSleeperSleepsLongerThanDefaultMaximumDurationWithDataProvider with data set #8 (1400)
4. 1.3%s (0.500) Ergebnis\PHPUnit\SlowTestDetector\Test\EndToEnd\Version10\Configuration\Defaults\SleeperTest::testSleeperSleepsLongerThanDefaultMaximumDurationWithDataProvider with data set #7 (1300)
5. 1.2%s (0.500) Ergebnis\PHPUnit\SlowTestDetector\Test\EndToEnd\Version10\Configuration\Defaults\SleeperTest::testSleeperSleepsLongerThanDefaultMaximumDurationWithDataProvider with data set #6 (1200)
6. 1.1%s (0.500) Ergebnis\PHPUnit\SlowTestDetector\Test\EndToEnd\Version10\Configuration\Defaults\SleeperTest::testSleeperSleepsLongerThanDefaultMaximumDurationWithDataProvider with data set #5 (1100)
7. 1.0%s (0.500) Ergebnis\PHPUnit\SlowTestDetector\Test\EndToEnd\Version10\Configuration\Defaults\SleeperTest::testSleeperSleepsLongerThanDefaultMaximumDurationWithDataProvider with data set #4 (1000)
8. 0.9%s (0.500) Ergebnis\PHPUnit\SlowTestDetector\Test\EndToEnd\Version10\Configuration\Defaults\SleeperTest::testSleeperSleepsLongerThanDefaultMaximumDurationWithDataProvider with data set #3 (900)
9. 0.8%s (0.500) Ergebnis\PHPUnit\SlowTestDetector\Test\EndToEnd\Version10\Configuration\Defaults\SleeperTest::testSleeperSleepsLongerThanDefaultMaximumDurationWithDataProvider with data set #2 (800)
10. 0.7%s (0.500) Ergebnis\PHPUnit\SlowTestDetector\Test\EndToEnd\Version10\Configuration\Defaults\SleeperTest::testSleeperSleepsLongerThanDefaultMaximumDurationWithDataProvider with data set #1 (700)

There is 1 additional slow test that is not listed here.

Expand Down
6 changes: 3 additions & 3 deletions test/EndToEnd/Version10/Configuration/MaximumCount/test.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ Configuration: %s/EndToEnd/Version10/Configuration/MaximumCount/phpunit.xml

Detected 5 tests where the duration exceeded the maximum duration.

1. 1.0%s (0.500) Ergebnis\PHPUnit\SlowTestDetector\Test\EndToEnd\Version10\Configuration\MaximumCount\SleeperTest::testSleeperSleepsLongerThanDefaultMaximumDurationWithDataProvider#4
2. 0.9%s (0.500) Ergebnis\PHPUnit\SlowTestDetector\Test\EndToEnd\Version10\Configuration\MaximumCount\SleeperTest::testSleeperSleepsLongerThanDefaultMaximumDurationWithDataProvider#3
3. 0.8%s (0.500) Ergebnis\PHPUnit\SlowTestDetector\Test\EndToEnd\Version10\Configuration\MaximumCount\SleeperTest::testSleeperSleepsLongerThanDefaultMaximumDurationWithDataProvider#2
1. 1.0%s (0.500) Ergebnis\PHPUnit\SlowTestDetector\Test\EndToEnd\Version10\Configuration\MaximumCount\SleeperTest::testSleeperSleepsLongerThanDefaultMaximumDurationWithDataProvider with data set #4 (1000)
2. 0.9%s (0.500) Ergebnis\PHPUnit\SlowTestDetector\Test\EndToEnd\Version10\Configuration\MaximumCount\SleeperTest::testSleeperSleepsLongerThanDefaultMaximumDurationWithDataProvider with data set #3 (900)
3. 0.8%s (0.500) Ergebnis\PHPUnit\SlowTestDetector\Test\EndToEnd\Version10\Configuration\MaximumCount\SleeperTest::testSleeperSleepsLongerThanDefaultMaximumDurationWithDataProvider with data set #2 (800)

There are 2 additional slow tests that are not listed here.

Expand Down
20 changes: 10 additions & 10 deletions test/EndToEnd/Version10/Configuration/MaximumDuration/test.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -24,16 +24,16 @@ Configuration: %s/EndToEnd/Version10/Configuration/MaximumDuration/phpunit.xml

Detected 11 tests where the duration exceeded the maximum duration.

1. 1.2%s (0.100) Ergebnis\PHPUnit\SlowTestDetector\Test\EndToEnd\Version10\Configuration\MaximumDuration\SleeperTest::testSleeperSleepsLongerThanMaximumDurationFromXmlConfigurationWithDataProvider#10
2. 1.1%s (0.100) Ergebnis\PHPUnit\SlowTestDetector\Test\EndToEnd\Version10\Configuration\MaximumDuration\SleeperTest::testSleeperSleepsLongerThanMaximumDurationFromXmlConfigurationWithDataProvider#9
3. 1.0%s (0.100) Ergebnis\PHPUnit\SlowTestDetector\Test\EndToEnd\Version10\Configuration\MaximumDuration\SleeperTest::testSleeperSleepsLongerThanMaximumDurationFromXmlConfigurationWithDataProvider#8
4. 0.9%s (0.100) Ergebnis\PHPUnit\SlowTestDetector\Test\EndToEnd\Version10\Configuration\MaximumDuration\SleeperTest::testSleeperSleepsLongerThanMaximumDurationFromXmlConfigurationWithDataProvider#7
5. 0.8%s (0.100) Ergebnis\PHPUnit\SlowTestDetector\Test\EndToEnd\Version10\Configuration\MaximumDuration\SleeperTest::testSleeperSleepsLongerThanMaximumDurationFromXmlConfigurationWithDataProvider#6
6. 0.7%s (0.100) Ergebnis\PHPUnit\SlowTestDetector\Test\EndToEnd\Version10\Configuration\MaximumDuration\SleeperTest::testSleeperSleepsLongerThanMaximumDurationFromXmlConfigurationWithDataProvider#5
7. 0.6%s (0.100) Ergebnis\PHPUnit\SlowTestDetector\Test\EndToEnd\Version10\Configuration\MaximumDuration\SleeperTest::testSleeperSleepsLongerThanMaximumDurationFromXmlConfigurationWithDataProvider#4
8. 0.5%s (0.100) Ergebnis\PHPUnit\SlowTestDetector\Test\EndToEnd\Version10\Configuration\MaximumDuration\SleeperTest::testSleeperSleepsLongerThanMaximumDurationFromXmlConfigurationWithDataProvider#3
9. 0.4%s (0.100) Ergebnis\PHPUnit\SlowTestDetector\Test\EndToEnd\Version10\Configuration\MaximumDuration\SleeperTest::testSleeperSleepsLongerThanMaximumDurationFromXmlConfigurationWithDataProvider#2
10. 0.3%s (0.100) Ergebnis\PHPUnit\SlowTestDetector\Test\EndToEnd\Version10\Configuration\MaximumDuration\SleeperTest::testSleeperSleepsLongerThanMaximumDurationFromXmlConfigurationWithDataProvider#1
1. 1.2%s (0.100) Ergebnis\PHPUnit\SlowTestDetector\Test\EndToEnd\Version10\Configuration\MaximumDuration\SleeperTest::testSleeperSleepsLongerThanMaximumDurationFromXmlConfigurationWithDataProvider with data set #10 (1200)
2. 1.1%s (0.100) Ergebnis\PHPUnit\SlowTestDetector\Test\EndToEnd\Version10\Configuration\MaximumDuration\SleeperTest::testSleeperSleepsLongerThanMaximumDurationFromXmlConfigurationWithDataProvider with data set #9 (1100)
3. 1.0%s (0.100) Ergebnis\PHPUnit\SlowTestDetector\Test\EndToEnd\Version10\Configuration\MaximumDuration\SleeperTest::testSleeperSleepsLongerThanMaximumDurationFromXmlConfigurationWithDataProvider with data set #8 (1000)
4. 0.9%s (0.100) Ergebnis\PHPUnit\SlowTestDetector\Test\EndToEnd\Version10\Configuration\MaximumDuration\SleeperTest::testSleeperSleepsLongerThanMaximumDurationFromXmlConfigurationWithDataProvider with data set #7 (900)
5. 0.8%s (0.100) Ergebnis\PHPUnit\SlowTestDetector\Test\EndToEnd\Version10\Configuration\MaximumDuration\SleeperTest::testSleeperSleepsLongerThanMaximumDurationFromXmlConfigurationWithDataProvider with data set #6 (800)
6. 0.7%s (0.100) Ergebnis\PHPUnit\SlowTestDetector\Test\EndToEnd\Version10\Configuration\MaximumDuration\SleeperTest::testSleeperSleepsLongerThanMaximumDurationFromXmlConfigurationWithDataProvider with data set #5 (700)
7. 0.6%s (0.100) Ergebnis\PHPUnit\SlowTestDetector\Test\EndToEnd\Version10\Configuration\MaximumDuration\SleeperTest::testSleeperSleepsLongerThanMaximumDurationFromXmlConfigurationWithDataProvider with data set #4 (600)
8. 0.5%s (0.100) Ergebnis\PHPUnit\SlowTestDetector\Test\EndToEnd\Version10\Configuration\MaximumDuration\SleeperTest::testSleeperSleepsLongerThanMaximumDurationFromXmlConfigurationWithDataProvider with data set #3 (500)
9. 0.4%s (0.100) Ergebnis\PHPUnit\SlowTestDetector\Test\EndToEnd\Version10\Configuration\MaximumDuration\SleeperTest::testSleeperSleepsLongerThanMaximumDurationFromXmlConfigurationWithDataProvider with data set #2 (400)
10. 0.3%s (0.100) Ergebnis\PHPUnit\SlowTestDetector\Test\EndToEnd\Version10\Configuration\MaximumDuration\SleeperTest::testSleeperSleepsLongerThanMaximumDurationFromXmlConfigurationWithDataProvider with data set #1 (300)

There is 1 additional slow test that is not listed here.

Expand Down
4 changes: 2 additions & 2 deletions test/EndToEnd/Version10/TestCase/Bare/test.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ Configuration: %s/EndToEnd/Version10/TestCase/Bare/phpunit.xml

Detected 2 tests where the duration exceeded the maximum duration.

1. 0.3%s (0.100) Ergebnis\PHPUnit\SlowTestDetector\Test\EndToEnd\Version10\TestCase\Bare\SleeperTest::testSleeperSleepsLongerThanMaximumDurationFromXmlConfigurationWithDataProvider#1
2. 0.2%s (0.100) Ergebnis\PHPUnit\SlowTestDetector\Test\EndToEnd\Version10\TestCase\Bare\SleeperTest::testSleeperSleepsLongerThanMaximumDurationFromXmlConfigurationWithDataProvider#0
1. 0.3%s (0.100) Ergebnis\PHPUnit\SlowTestDetector\Test\EndToEnd\Version10\TestCase\Bare\SleeperTest::testSleeperSleepsLongerThanMaximumDurationFromXmlConfigurationWithDataProvider with data set #1 (300)
2. 0.2%s (0.100) Ergebnis\PHPUnit\SlowTestDetector\Test\EndToEnd\Version10\TestCase\Bare\SleeperTest::testSleeperSleepsLongerThanMaximumDurationFromXmlConfigurationWithDataProvider with data set #0 (200)

Time: %s, Memory: %s

Expand Down
4 changes: 2 additions & 2 deletions test/EndToEnd/Version10/TestCase/Combination/test.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ Configuration: %s/EndToEnd/Version10/TestCase/Combination/phpunit.xml

Detected 3 tests where the duration exceeded the maximum duration.

1. 1.1%s (0.100) Ergebnis\PHPUnit\SlowTestDetector\Test\EndToEnd\Version10\TestCase\Combination\SleeperTest::testSleeperSleepsLongerThanMaximumDurationFromXmlConfigurationWithDataProvider#1
2. 1.0%s (0.100) Ergebnis\PHPUnit\SlowTestDetector\Test\EndToEnd\Version10\TestCase\Combination\SleeperTest::testSleeperSleepsLongerThanMaximumDurationFromXmlConfigurationWithDataProvider#0
1. 1.1%s (0.100) Ergebnis\PHPUnit\SlowTestDetector\Test\EndToEnd\Version10\TestCase\Combination\SleeperTest::testSleeperSleepsLongerThanMaximumDurationFromXmlConfigurationWithDataProvider with data set #1 (300)
2. 1.0%s (0.100) Ergebnis\PHPUnit\SlowTestDetector\Test\EndToEnd\Version10\TestCase\Combination\SleeperTest::testSleeperSleepsLongerThanMaximumDurationFromXmlConfigurationWithDataProvider with data set #0 (200)
3. 0.8%s (0.100) Ergebnis\PHPUnit\SlowTestDetector\Test\EndToEnd\Version10\TestCase\Combination\SleeperTest::testSleeperSleepsLessThanMaximumDurationFromXmlConfiguration

Time: %s, Memory: %s
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ Configuration: %s/EndToEnd/Version10/TestCase/WithAfterAnnotation/phpunit.xml

Detected 3 tests where the duration exceeded the maximum duration.

1. 0.4%s (0.100) Ergebnis\PHPUnit\SlowTestDetector\Test\EndToEnd\Version10\TestCase\WithAfterAnnotation\SleeperTest::testSleeperSleepsLongerThanMaximumDurationFromXmlConfigurationWithDataProvider#1
2. 0.3%s (0.100) Ergebnis\PHPUnit\SlowTestDetector\Test\EndToEnd\Version10\TestCase\WithAfterAnnotation\SleeperTest::testSleeperSleepsLongerThanMaximumDurationFromXmlConfigurationWithDataProvider#0
1. 0.4%s (0.100) Ergebnis\PHPUnit\SlowTestDetector\Test\EndToEnd\Version10\TestCase\WithAfterAnnotation\SleeperTest::testSleeperSleepsLongerThanMaximumDurationFromXmlConfigurationWithDataProvider with data set #1 (300)
2. 0.3%s (0.100) Ergebnis\PHPUnit\SlowTestDetector\Test\EndToEnd\Version10\TestCase\WithAfterAnnotation\SleeperTest::testSleeperSleepsLongerThanMaximumDurationFromXmlConfigurationWithDataProvider with data set #0 (200)
3. 0.1%s (0.100) Ergebnis\PHPUnit\SlowTestDetector\Test\EndToEnd\Version10\TestCase\WithAfterAnnotation\SleeperTest::testSleeperSleepsLessThanMaximumDurationFromXmlConfiguration

Time: %s, Memory: %s
Expand Down
4 changes: 2 additions & 2 deletions test/EndToEnd/Version10/TestCase/WithAfterAttribute/test.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ Configuration: %s/EndToEnd/Version10/TestCase/WithAfterAttribute/phpunit.xml

Detected 3 tests where the duration exceeded the maximum duration.

1. 0.4%s (0.100) Ergebnis\PHPUnit\SlowTestDetector\Test\EndToEnd\Version10\TestCase\WithAfterAttribute\SleeperTest::testSleeperSleepsLongerThanMaximumDurationFromXmlConfigurationWithDataProvider#1
2. 0.3%s (0.100) Ergebnis\PHPUnit\SlowTestDetector\Test\EndToEnd\Version10\TestCase\WithAfterAttribute\SleeperTest::testSleeperSleepsLongerThanMaximumDurationFromXmlConfigurationWithDataProvider#0
1. 0.4%s (0.100) Ergebnis\PHPUnit\SlowTestDetector\Test\EndToEnd\Version10\TestCase\WithAfterAttribute\SleeperTest::testSleeperSleepsLongerThanMaximumDurationFromXmlConfigurationWithDataProvider with data set #1 (300)
2. 0.3%s (0.100) Ergebnis\PHPUnit\SlowTestDetector\Test\EndToEnd\Version10\TestCase\WithAfterAttribute\SleeperTest::testSleeperSleepsLongerThanMaximumDurationFromXmlConfigurationWithDataProvider with data set #0 (200)
3. 0.1%s (0.100) Ergebnis\PHPUnit\SlowTestDetector\Test\EndToEnd\Version10\TestCase\WithAfterAttribute\SleeperTest::testSleeperSleepsLessThanMaximumDurationFromXmlConfiguration

Time: %s, Memory: %s
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ Configuration: %s/EndToEnd/Version10/TestCase/WithAfterClassAnnotation/phpunit.x

Detected 2 tests where the duration exceeded the maximum duration.

1. 0.3%s (0.100) Ergebnis\PHPUnit\SlowTestDetector\Test\EndToEnd\Version10\TestCase\WithAfterClassAnnotation\SleeperTest::testSleeperSleepsLongerThanMaximumDurationFromXmlConfigurationWithDataProvider#1
2. 0.2%s (0.100) Ergebnis\PHPUnit\SlowTestDetector\Test\EndToEnd\Version10\TestCase\WithAfterClassAnnotation\SleeperTest::testSleeperSleepsLongerThanMaximumDurationFromXmlConfigurationWithDataProvider#0
1. 0.3%s (0.100) Ergebnis\PHPUnit\SlowTestDetector\Test\EndToEnd\Version10\TestCase\WithAfterClassAnnotation\SleeperTest::testSleeperSleepsLongerThanMaximumDurationFromXmlConfigurationWithDataProvider with data set #1 (300)
2. 0.2%s (0.100) Ergebnis\PHPUnit\SlowTestDetector\Test\EndToEnd\Version10\TestCase\WithAfterClassAnnotation\SleeperTest::testSleeperSleepsLongerThanMaximumDurationFromXmlConfigurationWithDataProvider with data set #0 (200)

Time: %s, Memory: %s

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ Configuration: %s/EndToEnd/Version10/TestCase/WithAfterClassAttribute/phpunit.xm

Detected 2 tests where the duration exceeded the maximum duration.

1. 0.3%s (0.100) Ergebnis\PHPUnit\SlowTestDetector\Test\EndToEnd\Version10\TestCase\WithAfterClassAttribute\SleeperTest::testSleeperSleepsLongerThanMaximumDurationFromXmlConfigurationWithDataProvider#1
2. 0.2%s (0.100) Ergebnis\PHPUnit\SlowTestDetector\Test\EndToEnd\Version10\TestCase\WithAfterClassAttribute\SleeperTest::testSleeperSleepsLongerThanMaximumDurationFromXmlConfigurationWithDataProvider#0
1. 0.3%s (0.100) Ergebnis\PHPUnit\SlowTestDetector\Test\EndToEnd\Version10\TestCase\WithAfterClassAttribute\SleeperTest::testSleeperSleepsLongerThanMaximumDurationFromXmlConfigurationWithDataProvider with data set #1 (300)
2. 0.2%s (0.100) Ergebnis\PHPUnit\SlowTestDetector\Test\EndToEnd\Version10\TestCase\WithAfterClassAttribute\SleeperTest::testSleeperSleepsLongerThanMaximumDurationFromXmlConfigurationWithDataProvider with data set #0 (200)

Time: %s, Memory: %s

Expand Down
Loading

0 comments on commit 88ea864

Please sign in to comment.