From feb6417f450a76575efcbdc48e35e8fbbf67d03d Mon Sep 17 00:00:00 2001 From: Owen Voke Date: Thu, 12 Nov 2020 09:11:51 +0000 Subject: [PATCH] tests: add visual test for help output --- tests/.snapshots/success.txt | 5 ++++- tests/Visual/Help.php | 13 +++++++++++++ 2 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 tests/Visual/Help.php diff --git a/tests/.snapshots/success.txt b/tests/.snapshots/success.txt index 915c56a6..94fbb5da 100644 --- a/tests/.snapshots/success.txt +++ b/tests/.snapshots/success.txt @@ -377,6 +377,9 @@ PASS Tests\Unit\TestSuite ✓ it does not allow to add the same test description twice + PASS Tests\Visual\Help + ✓ visual snapshot of help command output + PASS Tests\Visual\SingleTestOrDirectory ✓ allows to run a single test ✓ allows to run a directory @@ -394,5 +397,5 @@ ✓ depends with defined arguments ✓ depends run test only once - Tests: 7 skipped, 232 passed + Tests: 7 skipped, 233 passed \ No newline at end of file diff --git a/tests/Visual/Help.php b/tests/Visual/Help.php new file mode 100644 index 00000000..e1382461 --- /dev/null +++ b/tests/Visual/Help.php @@ -0,0 +1,13 @@ +run(); + + return $process->getOutput(); + }; + + expect($output())->toContain('Pest Options:'); +});