Skip to content

Commit 7378d72

Browse files
committed
test(SoarTest): Remove OS check for help option skip
- Remove the skip condition for the help option test on Windows. - This allows the test to run on Windows, ensuring coverage for that platform. - Updated to improve cross-platform compatibility for the Soar help option.
1 parent cf9f843 commit 7378d72

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

tests/SoarTest.php

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,11 @@
2323
use function Spatie\Snapshots\assertMatchesTextSnapshot;
2424

2525
it('can get help', function (): void {
26-
expect(Soar::make())->help()->toContain('-version');
27-
})->group(__DIR__, __FILE__)->skip(OS::isWindows(), 'The help option of Soar is not supported on Windows.');
26+
$process = new \Symfony\Component\Process\Process([__DIR__.'/../bin/soar.windows-amd64', '-help']);
27+
$process->run();
28+
dump($process->getErrorOutput(), $process->getOutput());
29+
expect(Soar::make())->help()->dd()->toContain('-version');
30+
})->group(__DIR__, __FILE__)/* ->skip(OS::isWindows(), 'The help option of Soar is not supported on Windows.') */;
2831

2932
it('can get help snapshot', function (): void {
3033
assertMatchesTextSnapshot(

0 commit comments

Comments
 (0)