From f9a3e399023f22bfe7303520e910e21714f3effd Mon Sep 17 00:00:00 2001 From: Nuno Maduro Date: Sun, 14 Jun 2020 16:35:30 +0200 Subject: [PATCH] tests: removes test coverage for now Co-Authored-By: Johannes Pichler --- tests/.snapshots/success.txt | 7 ++----- tests/Visual/Coverage.php | 30 ------------------------------ 2 files changed, 2 insertions(+), 35 deletions(-) delete mode 100644 tests/Visual/Coverage.php diff --git a/tests/.snapshots/success.txt b/tests/.snapshots/success.txt index c6c462a4..8e3f32e0 100644 --- a/tests/.snapshots/success.txt +++ b/tests/.snapshots/success.txt @@ -134,9 +134,6 @@ PASS Tests\Unit\TestSuite ✓ it does not allow to add the same test description twice - PASS Tests\Visual\Coverage - ✓ coverage - PASS Tests\Visual\SingleTestOrDirectory ✓ allows to run a single test ✓ allows to run a directory @@ -146,5 +143,5 @@ WARN Tests\Visual\Success s visual snapshot of test suite on success - Tests: 6 skipped, 79 passed - Time: 3.91s + Tests: 6 skipped, 78 passed + Time: 3.09s diff --git a/tests/Visual/Coverage.php b/tests/Visual/Coverage.php deleted file mode 100644 index a7b6d7a2..00000000 --- a/tests/Visual/Coverage.php +++ /dev/null @@ -1,30 +0,0 @@ -run(); - - return preg_replace('#\\x1b[[][^A-Za-z]*[A-Za-z]#', '', $process->getOutput()); -}; - -$snapshot = function ($name) { - $testsPath = dirname(__DIR__); - - return file_get_contents(implode(DIRECTORY_SEPARATOR, [ - $testsPath, - '.snapshots', - "$name.txt", - ])); -}; - -test('coverage', function () use ($run, $snapshot) { - $text = $run('tests/Playground.php'); - - assertStringContainsString( - $snapshot('coverage'), - $run('tests/Playground.php') - ); -})->skip(PHP_OS_FAMILY === 'Windows');