question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Testsuite fails on windows

See original GitHub issue

Type 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:closed
  • Created 5 years ago
  • Comments:7 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
pfeiglcommented, May 22, 2018

Great, and than I’m also glad I did not yet start fixing the problems. Also the change in #872 is very nice

0reactions
github-actions[bot]commented, Jun 19, 2020

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found