From a884e3766400c59664261f884b7b577c39f793cd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20M=C3=B6ller?= Date: Wed, 20 Dec 2023 11:48:51 +0100 Subject: [PATCH] Fix: Sleep in assertPreConditions() --- psalm-baseline.xml | 13 ++++ .../TestCase/Combination/SleeperTest.php | 5 ++ .../WithAssertPreConditions/SleeperTest.php | 65 +++++++++++++++++ .../WithAssertPreConditions/phpunit.xml | 34 +++++++++ .../WithAssertPreConditions/test.phpt | 33 +++++++++ .../TestCase/Combination/SleeperTest.php | 5 ++ .../WithAssertPreConditions/SleeperTest.php | 65 +++++++++++++++++ .../WithAssertPreConditions/phpunit.xml | 34 +++++++++ .../WithAssertPreConditions/test.phpt | 33 +++++++++ .../TestCase/Combination/SleeperTest.php | 5 ++ .../Version8/TestCase/Combination/test.phpt | 8 +-- .../WithAssertPreConditions/SleeperTest.php | 69 +++++++++++++++++++ .../WithAssertPreConditions/phpunit.xml | 36 ++++++++++ .../WithAssertPreConditions/test.phpt | 32 +++++++++ .../SleeperTest.php | 5 ++ .../test.phpt | 8 +-- .../TestCase/Combination/SleeperTest.php | 5 ++ .../Version9/TestCase/Combination/test.phpt | 8 +-- .../WithAssertPreConditions/SleeperTest.php | 69 +++++++++++++++++++ .../WithAssertPreConditions/phpunit.xml | 36 ++++++++++ .../WithAssertPreConditions/test.phpt | 32 +++++++++ .../SleeperTest.php | 5 ++ .../test.phpt | 8 +-- 23 files changed, 597 insertions(+), 16 deletions(-) create mode 100644 test/EndToEnd/Version10/TestCase/WithAssertPreConditions/SleeperTest.php create mode 100644 test/EndToEnd/Version10/TestCase/WithAssertPreConditions/phpunit.xml create mode 100644 test/EndToEnd/Version10/TestCase/WithAssertPreConditions/test.phpt create mode 100644 test/EndToEnd/Version11/TestCase/WithAssertPreConditions/SleeperTest.php create mode 100644 test/EndToEnd/Version11/TestCase/WithAssertPreConditions/phpunit.xml create mode 100644 test/EndToEnd/Version11/TestCase/WithAssertPreConditions/test.phpt create mode 100644 test/EndToEnd/Version8/TestCase/WithAssertPreConditions/SleeperTest.php create mode 100644 test/EndToEnd/Version8/TestCase/WithAssertPreConditions/phpunit.xml create mode 100644 test/EndToEnd/Version8/TestCase/WithAssertPreConditions/test.phpt create mode 100644 test/EndToEnd/Version9/TestCase/WithAssertPreConditions/SleeperTest.php create mode 100644 test/EndToEnd/Version9/TestCase/WithAssertPreConditions/phpunit.xml create mode 100644 test/EndToEnd/Version9/TestCase/WithAssertPreConditions/test.phpt diff --git a/psalm-baseline.xml b/psalm-baseline.xml index f22f708b..1ef2e184 100644 --- a/psalm-baseline.xml +++ b/psalm-baseline.xml @@ -85,6 +85,14 @@ provideMillisecondsGreaterThanMaximumDurationFromXmlConfiguration + + + SleeperTest + + + $milliseconds + + provideMillisecondsGreaterThanMaximumDurationFromXmlConfiguration @@ -130,6 +138,11 @@ provideMillisecondsGreaterThanMaximumDurationFromXmlConfiguration + + + SleeperTest + + provideMillisecondsGreaterThanMaximumDurationFromXmlConfiguration diff --git a/test/EndToEnd/Version10/TestCase/Combination/SleeperTest.php b/test/EndToEnd/Version10/TestCase/Combination/SleeperTest.php index c3e6198d..9d5cfb74 100644 --- a/test/EndToEnd/Version10/TestCase/Combination/SleeperTest.php +++ b/test/EndToEnd/Version10/TestCase/Combination/SleeperTest.php @@ -34,6 +34,11 @@ protected function setUp(): void Test\Fixture\Sleeper::fromMilliseconds(100)->sleep(); } + protected function assertPreConditions(): void + { + Test\Fixture\Sleeper::fromMilliseconds(100)->sleep(); + } + protected function tearDown(): void { Test\Fixture\Sleeper::fromMilliseconds(100)->sleep(); diff --git a/test/EndToEnd/Version10/TestCase/WithAssertPreConditions/SleeperTest.php b/test/EndToEnd/Version10/TestCase/WithAssertPreConditions/SleeperTest.php new file mode 100644 index 00000000..840f9b69 --- /dev/null +++ b/test/EndToEnd/Version10/TestCase/WithAssertPreConditions/SleeperTest.php @@ -0,0 +1,65 @@ +sleep(); + } + + public function testSleeperSleepsLessThanMaximumDurationFromXmlConfiguration(): void + { + $milliseconds = 1; + + $sleeper = Test\Fixture\Sleeper::fromMilliseconds($milliseconds); + + $sleeper->sleep(); + + self::assertSame($milliseconds, $sleeper->milliseconds()); + } + + #[Framework\Attributes\DataProvider('provideMillisecondsGreaterThanMaximumDurationFromXmlConfiguration')] + public function testSleeperSleepsLongerThanMaximumDurationFromXmlConfigurationWithDataProvider(int $milliseconds): void + { + $sleeper = Test\Fixture\Sleeper::fromMilliseconds($milliseconds); + + $sleeper->sleep(); + + self::assertSame($milliseconds, $sleeper->milliseconds()); + } + + /** + * @return \Generator + */ + public static function provideMillisecondsGreaterThanMaximumDurationFromXmlConfiguration(): iterable + { + $values = \range( + 200, + 300, + 100, + ); + + foreach ($values as $value) { + yield $value => [ + $value, + ]; + } + } +} diff --git a/test/EndToEnd/Version10/TestCase/WithAssertPreConditions/phpunit.xml b/test/EndToEnd/Version10/TestCase/WithAssertPreConditions/phpunit.xml new file mode 100644 index 00000000..caa0be0e --- /dev/null +++ b/test/EndToEnd/Version10/TestCase/WithAssertPreConditions/phpunit.xml @@ -0,0 +1,34 @@ + + + + + + + + + . + + + diff --git a/test/EndToEnd/Version10/TestCase/WithAssertPreConditions/test.phpt b/test/EndToEnd/Version10/TestCase/WithAssertPreConditions/test.phpt new file mode 100644 index 00000000..67f43dd5 --- /dev/null +++ b/test/EndToEnd/Version10/TestCase/WithAssertPreConditions/test.phpt @@ -0,0 +1,33 @@ +--TEST-- +With a test case that has an assertPreConditions() method +--FILE-- +run($_SERVER['argv']); +--EXPECTF-- +PHPUnit %s + +Runtime: %s +Configuration: %s/EndToEnd/Version11/TestCase/WithAssertPreConditions/phpunit.xml +Random %seed: %s + +... 3 / 3 (100%) + +Detected 2 tests that took longer than expected. + +1. 0.3%s (0.100) Ergebnis\PHPUnit\SlowTestDetector\Test\EndToEnd\Version11\TestCase\WithAssertPreConditions\SleeperTest::testSleeperSleepsLongerThanMaximumDurationFromXmlConfigurationWithDataProvider#1 +2. 0.2%s (0.100) Ergebnis\PHPUnit\SlowTestDetector\Test\EndToEnd\Version11\TestCase\WithAssertPreConditions\SleeperTest::testSleeperSleepsLongerThanMaximumDurationFromXmlConfigurationWithDataProvider#0 + +Time: %s, Memory: %s + +OK (3 tests, 3 assertions) diff --git a/test/EndToEnd/Version11/TestCase/Combination/SleeperTest.php b/test/EndToEnd/Version11/TestCase/Combination/SleeperTest.php index 8c9562e3..fe838934 100644 --- a/test/EndToEnd/Version11/TestCase/Combination/SleeperTest.php +++ b/test/EndToEnd/Version11/TestCase/Combination/SleeperTest.php @@ -34,6 +34,11 @@ protected function setUp(): void Test\Fixture\Sleeper::fromMilliseconds(100)->sleep(); } + protected function assertPreConditions(): void + { + Test\Fixture\Sleeper::fromMilliseconds(100)->sleep(); + } + protected function tearDown(): void { Test\Fixture\Sleeper::fromMilliseconds(100)->sleep(); diff --git a/test/EndToEnd/Version11/TestCase/WithAssertPreConditions/SleeperTest.php b/test/EndToEnd/Version11/TestCase/WithAssertPreConditions/SleeperTest.php new file mode 100644 index 00000000..840f9b69 --- /dev/null +++ b/test/EndToEnd/Version11/TestCase/WithAssertPreConditions/SleeperTest.php @@ -0,0 +1,65 @@ +sleep(); + } + + public function testSleeperSleepsLessThanMaximumDurationFromXmlConfiguration(): void + { + $milliseconds = 1; + + $sleeper = Test\Fixture\Sleeper::fromMilliseconds($milliseconds); + + $sleeper->sleep(); + + self::assertSame($milliseconds, $sleeper->milliseconds()); + } + + #[Framework\Attributes\DataProvider('provideMillisecondsGreaterThanMaximumDurationFromXmlConfiguration')] + public function testSleeperSleepsLongerThanMaximumDurationFromXmlConfigurationWithDataProvider(int $milliseconds): void + { + $sleeper = Test\Fixture\Sleeper::fromMilliseconds($milliseconds); + + $sleeper->sleep(); + + self::assertSame($milliseconds, $sleeper->milliseconds()); + } + + /** + * @return \Generator + */ + public static function provideMillisecondsGreaterThanMaximumDurationFromXmlConfiguration(): iterable + { + $values = \range( + 200, + 300, + 100, + ); + + foreach ($values as $value) { + yield $value => [ + $value, + ]; + } + } +} diff --git a/test/EndToEnd/Version11/TestCase/WithAssertPreConditions/phpunit.xml b/test/EndToEnd/Version11/TestCase/WithAssertPreConditions/phpunit.xml new file mode 100644 index 00000000..60983aad --- /dev/null +++ b/test/EndToEnd/Version11/TestCase/WithAssertPreConditions/phpunit.xml @@ -0,0 +1,34 @@ + + + + + + + + + . + + + diff --git a/test/EndToEnd/Version11/TestCase/WithAssertPreConditions/test.phpt b/test/EndToEnd/Version11/TestCase/WithAssertPreConditions/test.phpt new file mode 100644 index 00000000..67f43dd5 --- /dev/null +++ b/test/EndToEnd/Version11/TestCase/WithAssertPreConditions/test.phpt @@ -0,0 +1,33 @@ +--TEST-- +With a test case that has an assertPreConditions() method +--FILE-- +run($_SERVER['argv']); +--EXPECTF-- +PHPUnit %s + +Runtime: %s +Configuration: %s/EndToEnd/Version11/TestCase/WithAssertPreConditions/phpunit.xml +Random %seed: %s + +... 3 / 3 (100%) + +Detected 2 tests that took longer than expected. + +1. 0.3%s (0.100) Ergebnis\PHPUnit\SlowTestDetector\Test\EndToEnd\Version11\TestCase\WithAssertPreConditions\SleeperTest::testSleeperSleepsLongerThanMaximumDurationFromXmlConfigurationWithDataProvider#1 +2. 0.2%s (0.100) Ergebnis\PHPUnit\SlowTestDetector\Test\EndToEnd\Version11\TestCase\WithAssertPreConditions\SleeperTest::testSleeperSleepsLongerThanMaximumDurationFromXmlConfigurationWithDataProvider#0 + +Time: %s, Memory: %s + +OK (3 tests, 3 assertions) diff --git a/test/EndToEnd/Version8/TestCase/Combination/SleeperTest.php b/test/EndToEnd/Version8/TestCase/Combination/SleeperTest.php index 176bf073..af969c5d 100644 --- a/test/EndToEnd/Version8/TestCase/Combination/SleeperTest.php +++ b/test/EndToEnd/Version8/TestCase/Combination/SleeperTest.php @@ -36,6 +36,11 @@ protected function setUp(): void Test\Fixture\Sleeper::fromMilliseconds(100)->sleep(); } + protected function assertPreConditions(): void + { + Test\Fixture\Sleeper::fromMilliseconds(100)->sleep(); + } + protected function tearDown(): void { Test\Fixture\Sleeper::fromMilliseconds(100)->sleep(); diff --git a/test/EndToEnd/Version8/TestCase/Combination/test.phpt b/test/EndToEnd/Version8/TestCase/Combination/test.phpt index 70b70651..c347d58a 100644 --- a/test/EndToEnd/Version8/TestCase/Combination/test.phpt +++ b/test/EndToEnd/Version8/TestCase/Combination/test.phpt @@ -1,5 +1,5 @@ --TEST-- -With a test case that has setUpBeforeClass(), setUp(), tearDown(), and tearDownAfterClass() methods +With a test case that has setUpBeforeClass(), setUp(), tearDown(), tearDownAfterClass(), and assertPreConditions() methods --FILE-- sleep(); + } + + public function testSleeperSleepsLessThanMaximumDurationFromXmlConfiguration(): void + { + $milliseconds = 1; + + $sleeper = Test\Fixture\Sleeper::fromMilliseconds($milliseconds); + + $sleeper->sleep(); + + self::assertSame($milliseconds, $sleeper->milliseconds()); + } + + /** + * @dataProvider provideMillisecondsGreaterThanMaximumDurationFromXmlConfiguration + */ + public function testSleeperSleepsLongerThanMaximumDurationFromXmlConfigurationWithDataProvider(int $milliseconds): void + { + $sleeper = Test\Fixture\Sleeper::fromMilliseconds($milliseconds); + + $sleeper->sleep(); + + self::assertSame($milliseconds, $sleeper->milliseconds()); + } + + /** + * @return \Generator + */ + public static function provideMillisecondsGreaterThanMaximumDurationFromXmlConfiguration(): iterable + { + $values = \range( + 200, + 300, + 100, + ); + + foreach ($values as $value) { + yield $value => [ + $value, + ]; + } + } +} diff --git a/test/EndToEnd/Version8/TestCase/WithAssertPreConditions/phpunit.xml b/test/EndToEnd/Version8/TestCase/WithAssertPreConditions/phpunit.xml new file mode 100644 index 00000000..bc5aa998 --- /dev/null +++ b/test/EndToEnd/Version8/TestCase/WithAssertPreConditions/phpunit.xml @@ -0,0 +1,36 @@ + + + + + + + 100 + + + + + + + + . + + + diff --git a/test/EndToEnd/Version8/TestCase/WithAssertPreConditions/test.phpt b/test/EndToEnd/Version8/TestCase/WithAssertPreConditions/test.phpt new file mode 100644 index 00000000..24ca04d8 --- /dev/null +++ b/test/EndToEnd/Version8/TestCase/WithAssertPreConditions/test.phpt @@ -0,0 +1,32 @@ +--TEST-- +With a test case that has an assertPreConditions() method +--FILE-- +sleep(); } + protected function assertPreConditions(): void + { + Test\Fixture\Sleeper::fromMilliseconds(100)->sleep(); + } + protected function tearDown(): void { Test\Fixture\Sleeper::fromMilliseconds(100)->sleep(); diff --git a/test/EndToEnd/Version8/TestMethod/WithRunInSeparateProcessAnnotation/test.phpt b/test/EndToEnd/Version8/TestMethod/WithRunInSeparateProcessAnnotation/test.phpt index 301ff775..8c376a7a 100644 --- a/test/EndToEnd/Version8/TestMethod/WithRunInSeparateProcessAnnotation/test.phpt +++ b/test/EndToEnd/Version8/TestMethod/WithRunInSeparateProcessAnnotation/test.phpt @@ -28,10 +28,10 @@ Random %seed: %s Detected 4 tests that took longer than expected. -1. 0.7%s (0.100) Ergebnis\PHPUnit\SlowTestDetector\Test\EndToEnd\Version8\TestMethod\WithRunInSeparateProcessAnnotation\SleeperTest::testSleeperSleepsLongerThanMaximumDurationFromXmlConfigurationWhenMethodHasRunInSeparateProcessAnnotation -2. 0.4%s (0.100) Ergebnis\PHPUnit\SlowTestDetector\Test\EndToEnd\Version8\TestMethod\WithRunInSeparateProcessAnnotation\SleeperTest::testSleeperSleepsShorterThanMaximumDurationFromXmlConfigurationWhenMethodHasRunInSeparateProcessAnnotation -3. 0.4%s (0.100) Ergebnis\PHPUnit\SlowTestDetector\Test\EndToEnd\Version8\TestMethod\WithRunInSeparateProcessAnnotation\SleeperTest::testSleeperSleepsLongerThanMaximumDurationFromXmlConfiguration -4. 0.2%s (0.100) Ergebnis\PHPUnit\SlowTestDetector\Test\EndToEnd\Version8\TestMethod\WithRunInSeparateProcessAnnotation\SleeperTest::testSleeperSleepsShorterThanMaximumDurationFromXmlConfiguration +1. 0.8%s (0.100) Ergebnis\PHPUnit\SlowTestDetector\Test\EndToEnd\Version8\TestMethod\WithRunInSeparateProcessAnnotation\SleeperTest::testSleeperSleepsLongerThanMaximumDurationFromXmlConfigurationWhenMethodHasRunInSeparateProcessAnnotation +2. 0.5%s (0.100) Ergebnis\PHPUnit\SlowTestDetector\Test\EndToEnd\Version8\TestMethod\WithRunInSeparateProcessAnnotation\SleeperTest::testSleeperSleepsShorterThanMaximumDurationFromXmlConfigurationWhenMethodHasRunInSeparateProcessAnnotation +3. 0.5%s (0.100) Ergebnis\PHPUnit\SlowTestDetector\Test\EndToEnd\Version8\TestMethod\WithRunInSeparateProcessAnnotation\SleeperTest::testSleeperSleepsLongerThanMaximumDurationFromXmlConfiguration +4. 0.3%s (0.100) Ergebnis\PHPUnit\SlowTestDetector\Test\EndToEnd\Version8\TestMethod\WithRunInSeparateProcessAnnotation\SleeperTest::testSleeperSleepsShorterThanMaximumDurationFromXmlConfiguration Time: %s, Memory: %s diff --git a/test/EndToEnd/Version9/TestCase/Combination/SleeperTest.php b/test/EndToEnd/Version9/TestCase/Combination/SleeperTest.php index 36e32383..e96957ed 100644 --- a/test/EndToEnd/Version9/TestCase/Combination/SleeperTest.php +++ b/test/EndToEnd/Version9/TestCase/Combination/SleeperTest.php @@ -36,6 +36,11 @@ protected function setUp(): void Test\Fixture\Sleeper::fromMilliseconds(100)->sleep(); } + protected function assertPreConditions(): void + { + Test\Fixture\Sleeper::fromMilliseconds(100)->sleep(); + } + protected function tearDown(): void { Test\Fixture\Sleeper::fromMilliseconds(100)->sleep(); diff --git a/test/EndToEnd/Version9/TestCase/Combination/test.phpt b/test/EndToEnd/Version9/TestCase/Combination/test.phpt index 1c75a0dc..493391ce 100644 --- a/test/EndToEnd/Version9/TestCase/Combination/test.phpt +++ b/test/EndToEnd/Version9/TestCase/Combination/test.phpt @@ -1,5 +1,5 @@ --TEST-- -With a test case that has setUpBeforeClass(), setUp(), tearDown(), and tearDownAfterClass() methods +With a test case that has setUpBeforeClass(), setUp(), tearDown(), tearDownAfterClass(), and assertPreConditions() methods --FILE-- sleep(); + } + + public function testSleeperSleepsLessThanMaximumDurationFromXmlConfiguration(): void + { + $milliseconds = 1; + + $sleeper = Test\Fixture\Sleeper::fromMilliseconds($milliseconds); + + $sleeper->sleep(); + + self::assertSame($milliseconds, $sleeper->milliseconds()); + } + + /** + * @dataProvider provideMillisecondsGreaterThanMaximumDurationFromXmlConfiguration + */ + public function testSleeperSleepsLongerThanMaximumDurationFromXmlConfigurationWithDataProvider(int $milliseconds): void + { + $sleeper = Test\Fixture\Sleeper::fromMilliseconds($milliseconds); + + $sleeper->sleep(); + + self::assertSame($milliseconds, $sleeper->milliseconds()); + } + + /** + * @return \Generator + */ + public static function provideMillisecondsGreaterThanMaximumDurationFromXmlConfiguration(): iterable + { + $values = \range( + 200, + 300, + 100, + ); + + foreach ($values as $value) { + yield $value => [ + $value, + ]; + } + } +} diff --git a/test/EndToEnd/Version9/TestCase/WithAssertPreConditions/phpunit.xml b/test/EndToEnd/Version9/TestCase/WithAssertPreConditions/phpunit.xml new file mode 100644 index 00000000..be45008c --- /dev/null +++ b/test/EndToEnd/Version9/TestCase/WithAssertPreConditions/phpunit.xml @@ -0,0 +1,36 @@ + + + + + + + 100 + + + + + + + + . + + + diff --git a/test/EndToEnd/Version9/TestCase/WithAssertPreConditions/test.phpt b/test/EndToEnd/Version9/TestCase/WithAssertPreConditions/test.phpt new file mode 100644 index 00000000..d2e5f16b --- /dev/null +++ b/test/EndToEnd/Version9/TestCase/WithAssertPreConditions/test.phpt @@ -0,0 +1,32 @@ +--TEST-- +With a test case that has an assertPreConditions() method +--FILE-- +sleep(); } + protected function assertPreConditions(): void + { + Test\Fixture\Sleeper::fromMilliseconds(100)->sleep(); + } + protected function tearDown(): void { Test\Fixture\Sleeper::fromMilliseconds(100)->sleep(); diff --git a/test/EndToEnd/Version9/TestMethod/WithRunInSeparateProcessAnnotation/test.phpt b/test/EndToEnd/Version9/TestMethod/WithRunInSeparateProcessAnnotation/test.phpt index df2519fd..3e81047a 100644 --- a/test/EndToEnd/Version9/TestMethod/WithRunInSeparateProcessAnnotation/test.phpt +++ b/test/EndToEnd/Version9/TestMethod/WithRunInSeparateProcessAnnotation/test.phpt @@ -28,10 +28,10 @@ Random %seed: %s Detected 4 tests that took longer than expected. -1. 0.7%s (0.100) Ergebnis\PHPUnit\SlowTestDetector\Test\EndToEnd\Version9\TestMethod\WithRunInSeparateProcessAnnotation\SleeperTest::testSleeperSleepsLongerThanMaximumDurationFromXmlConfigurationWhenMethodHasRunInSeparateProcessAnnotation -2. 0.4%s (0.100) Ergebnis\PHPUnit\SlowTestDetector\Test\EndToEnd\Version9\TestMethod\WithRunInSeparateProcessAnnotation\SleeperTest::testSleeperSleepsShorterThanMaximumDurationFromXmlConfigurationWhenMethodHasRunInSeparateProcessAnnotation -3. 0.4%s (0.100) Ergebnis\PHPUnit\SlowTestDetector\Test\EndToEnd\Version9\TestMethod\WithRunInSeparateProcessAnnotation\SleeperTest::testSleeperSleepsLongerThanMaximumDurationFromXmlConfiguration -4. 0.2%s (0.100) Ergebnis\PHPUnit\SlowTestDetector\Test\EndToEnd\Version9\TestMethod\WithRunInSeparateProcessAnnotation\SleeperTest::testSleeperSleepsShorterThanMaximumDurationFromXmlConfiguration +1. 0.8%s (0.100) Ergebnis\PHPUnit\SlowTestDetector\Test\EndToEnd\Version9\TestMethod\WithRunInSeparateProcessAnnotation\SleeperTest::testSleeperSleepsLongerThanMaximumDurationFromXmlConfigurationWhenMethodHasRunInSeparateProcessAnnotation +2. 0.5%s (0.100) Ergebnis\PHPUnit\SlowTestDetector\Test\EndToEnd\Version9\TestMethod\WithRunInSeparateProcessAnnotation\SleeperTest::testSleeperSleepsShorterThanMaximumDurationFromXmlConfigurationWhenMethodHasRunInSeparateProcessAnnotation +3. 0.5%s (0.100) Ergebnis\PHPUnit\SlowTestDetector\Test\EndToEnd\Version9\TestMethod\WithRunInSeparateProcessAnnotation\SleeperTest::testSleeperSleepsLongerThanMaximumDurationFromXmlConfiguration +4. 0.3%s (0.100) Ergebnis\PHPUnit\SlowTestDetector\Test\EndToEnd\Version9\TestMethod\WithRunInSeparateProcessAnnotation\SleeperTest::testSleeperSleepsShorterThanMaximumDurationFromXmlConfiguration Time: %s, Memory: %s