Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

minor: fix failing windows tests #76

Merged
merged 1 commit into from
Nov 6, 2024
Merged

Conversation

kbond
Copy link
Contributor

@kbond kbond commented Nov 6, 2024

Due to an upstream change in symfony/process, windows executables are no longer wrapped in double quotes.

@kbond kbond marked this pull request as draft November 6, 2024 17:43
@kbond kbond marked this pull request as ready for review November 6, 2024 18:20
Copy link
Member

@bocharsky-bw bocharsky-bw left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would prefer to hardcode the command in tests... but this way it helps to fix different behavior in different versions 👍

@kbond
Copy link
Contributor Author

kbond commented Nov 6, 2024

It did feel a bit like we were testing Process.

@kbond kbond merged commit 28db7cf into SymfonyCasts:main Nov 6, 2024
12 checks passed
@kbond kbond deleted the fix/windows-exe branch November 6, 2024 18:41

$this->assertSame(
\sprintf($expectedTemplate, $binaryDownloadDir.'/fake-version/'.TailwindBinary::getBinaryName()),
(new Process([$binaryFile, '-i', 'fake.css'], __DIR__))->getCommandLine(),
Copy link

@MolloKhan MolloKhan Nov 7, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A comment here describing why you're asserting the command line in that way would be handy

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants