test(docs-infra): 404 for images during unit tests on Windows
See original GitHub issueRunning 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:
- Created 4 years ago
- Comments:7 (6 by maintainers)
Top 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 >
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 Free
Top 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
@gkalpak Please assign this one to me, so I can track it. Thanks
You got it. I am on it