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.

test(docs-infra): 404 for images during unit tests on Windows

See original GitHub issue

Running the unit tests for aio on Windows, many 404s are logged for images, resulting in progress logs being spread over multiple lines:

Chrome 70.0.3538 (Linux 0.0.0): Executed 0 of 609 SUCCESS (0 secs / 0 secs)
Chrome 70.0.3538 (Linux 0.0.0): Executed 1 of 609 SUCCESS (0 secs / 0.304 secs)
Chrome 70.0.3538 (Linux 0.0.0): Executed 2 of 609 SUCCESS (0 secs / 0.355 secs)
Chrome 70.0.3538 (Linux 0.0.0): Executed 3 of 609 SUCCESS (0 secs / 0.395 secs)
Chrome 70.0.3538 (Linux 0.0.0): Executed 4 of 609 SUCCESS (0 secs / 0.438 secs)
Chrome 70.0.3538 (Linux 0.0.0): Executed 5 of 609 SUCCESS (0 secs / 0.471 secs)
Chrome 70.0.3538 (Linux 0.0.0): Executed 6 of 609 SUCCESS (0 secs / 0.504 secs)
Chrome 70.0.3538 (Linux 0.0.0): Executed 7 of 609 SUCCESS (0 secs / 0.542 secs)
Chrome 70.0.3538 (Linux 0.0.0): Executed 8 of 609 SUCCESS (0 secs / 0.578 secs)
Chrome 70.0.3538 (Linux 0.0.0): Executed 9 of 609 SUCCESS (0 secs / 0.621 secs)
...

For example, running this test, I get:

WARN [web-server]: 404: /assets/images/logos/angular/logo-nav@2x.png
WARN [web-server]: 404: /assets/images/logos/angular/angular_whiteTransparent_withMargin.png

I was not able to reproduce it on a new project on Windows 🤷‍♂️ It also works fine on Linux and Windows Subsystem for Linux for aio/ as well 😕

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:7 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
sonukapoorcommented, Feb 27, 2020

@gkalpak Please assign this one to me, so I can track it. Thanks

1reaction
sonukapoorcommented, Feb 13, 2020

You got it. I am on it

Read more comments on GitHub >

github_iconTop Results From Across the Web

how to fix 404 warnings for images during karma unit testing
In your karma.conf.js file you should already have defined files and/or patterns ... triggering 404s during tests that need to reference // image...
Read more >
Unit test controller logic in ASP.NET Core - Microsoft Learn
Unit testing controllers. Set up unit tests of controller actions to focus on the controller's behavior. A controller unit test avoids scenarios ...
Read more >
Testing services - Angular
Here are some synchronous and asynchronous unit tests of the ValueService written without assistance from Angular testing utilities. app/demo/demo.spec.ts
Read more >
Testing Rails Applications - Ruby on Rails Guides
Rails testing terminology. How to write unit, functional, integration, and system tests for your application. Other popular testing approaches and plugins.
Read more >
SAPUI5 automated testing error the server responded with a ...
Hi all ! I wan't automate my tests by following the sap tutorial, but i have 404 error the server reponded with a...
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