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.

Running tests locally on ChromeHeadless/Mac only runs half of them

See original GitHub issue

When I’m running npm test locally on my Mac machine, it only runs half of the tests and acts as if that’s OK:

Chrome Headless 105.0.5195.125 (Mac OS 10.15.7): Executed 527 of 1059 (skipped 8) SUCCESS (3.908 secs / 2.019 secs)
TOTAL: 527 SUCCESS

What’s going on? There are no errors, no excessive skips, it just doesn’t execute half the tests for some reason. When I run other browsers like npm test -- --browsers Safari it runs all of them, so it must be specific to ChromeHeadless. I’m not sure how long it’s been this way but it’s super confusing.

@Falke-Design @jonkoops any idea what’s going on? Does it act like this for you too?

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
mournercommented, Sep 26, 2022

@Falke-Design looks like it’s triggered by the LineUtilSpec tests, they’re unstable — probably due to some race condition between before/afterEach and the custom remove/map init? There’s also a lot of repetition. This needs to be refactored…

0reactions
mournercommented, Sep 26, 2022

OK found a quick solution for now, committing…

Read more comments on GitHub >

github_iconTop Results From Across the Web

Running tests locally on ChromeHeadless/Mac only runs half of them
When I'm running npm test locally on my Mac machine, it only runs half of the tests and acts as if that's OK:...
Read more >
How do you run Chrome while selenium headless script is ...
I have a python selenium script that uses chromedriver in headless mode to test links on a website. I'm running this script on...
Read more >
"run" is much slower than "open" · Issue #2912 · cypress-io ...
This seems like a bug - the headless version of the tests run 4x - 5x slower than the headed ones. ( cypress...
Read more >
Selenium Headless Browser Testing - Tools QA
How to run Selenium tests in headless mode? Running Selenium headless browser tests using the HTMLUnitDriver. Running Selenium headless browser ...
Read more >
7 Github Actions Tricks I Wish I Knew Before I Started
Here are 7 tricks with github actions that changed my life (or at least my CI/CD pipeline). These tricks helped me create 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