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

Fix the test suite so that it passes for Windows #39

Open
spydon opened this issue Oct 6, 2022 · 0 comments
Open

Fix the test suite so that it passes for Windows #39

spydon opened this issue Oct 6, 2022 · 0 comments

Comments

@spydon
Copy link
Contributor

spydon commented Oct 6, 2022

Currently most of the tests fails when running the test suite on windows in the pipeline (well, on real machines too I expect).

The problem is that paths on windows use \ instead of /, which creates test fails such as these:

[spec_cli]: Expected: contains 'PASS  test/my_test.dart'
[spec_cli]:   Actual: ' PASS  test\\another_test.dart\n'
[spec_cli]:             ' PASS  test\\my_test.dart\n'
[spec_cli]:             '\n'
[spec_cli]:             'Test Suites: 2 passed, 2 total\n'
[spec_cli]:             'Tests:       3 passed, 3 total\n'
[spec_cli]:             'Time:        00:00:00\n'
[spec_cli]:             ''

I can't think of any other solution than to pass all the strings through some function that fixes the paths depending on platform in all the tests.

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

No branches or pull requests

1 participant