Testsuite fails on windows
See original GitHub issueType of Issue
[x] Bug Report
[ ] Feature Request
Description
Running the test suite on the current master fails in two tests when executed on windows. This is due to windows folders where hardcoded linux paths are expected.
102 passing (90ms)
2 failing
1) transformComponentSourceFiles()
stylesheet: StylesheetTransformer
should resolve file path of the stylesheet file relative to source file:
AssertionError: expected { Object (node, sourceFile, ...) } to have property 'styleFilePath' of '/foo-bar/foo.component.css', but got 'C:\\foo-bar\\foo.component.css'
+ expected - actual
-C:\foo-bar\foo.component.css
+/foo-bar/foo.component.css
at Context.<anonymous> (src\lib\ts\ng-component-transformer.spec.ts:132:38)
2) transformComponentSourceFiles()
template: TemplateTransformer
should resolve file path of the template file relative to source file:
AssertionError: expected { Object (node, sourceFile, ...) } to have property 'templateFilePath' of '/foo-bar/foo.component.html', but got 'C:\\foo-bar\\foo.component.html'
+ expected - actual
-C:\foo-bar\foo.component.html
+/foo-bar/foo.component.html
at Context.<anonymous> (src\lib\ts\ng-component-transformer.spec.ts:170:36)
How To Reproduce
yarn test
on a windows machine
Expected Behaviour
All tests pass
Version Information
master
branch as of 57f5ed9c2fb8dffa4b7dfc586245b9c0b5480f57
Issue Analytics
- State:
- Created 5 years ago
- Comments:7 (5 by maintainers)
Top Results From Across the Web
Test suite fails on Windows #115 - GitHub
Problem description: As mentioned in #111, the test suite fails on Windows. I did a bit of troubleshooting and these are the findings:...
Read more >Jest test fails with "window is not defined" - Stack Overflow
I am trying to get started with state-of-the-art web development learning React and Redux. Right now I am stuck at getting tests running....
Read more >All test cases fails in Test Suite if there's one failed test case
When I'm running scripts in Test Suite, if one script fails, the remaining test cases will also fail in the Test Suite. Is...
Read more >LLVM Testing Infrastructure Guide - Documentation
The whole programs tests are referred to as the “LLVM test suite” (or “test-suite”) ... Tests containing Windows paths will fail on Linux...
Read more >Test suite crash on Windows CI - maintainers - GNU Octave
The test suite for the default branch currently crashes on the GitHub Windows runners with the following in the logs:
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Great, and than I’m also glad I did not yet start fixing the problems. Also the change in #872 is very nice
This issue has been automatically locked due to inactivity. Please file a new issue if you are encountering a similar or related problem. This action has been performed automatically by a bot.