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.

Tests failing locally

See original GitHub issue

While working on https://github.com/cursorless-dev/cursorless-vscode/pull/597 I had erroneously reported failing tests locally. The suite passed on the PR build action but locally I am having failing tests. I also checked on the main branch and also have similar failures. The test run hasn’t finished yet so I’m not sure if they are deterministically failing but I’ll update the issue with more information. Here’s an example locally failing test from the PR:

  22) recorded test cases
       /Users/.../recorded/languages/typescript/ifElseWrapThis:

      AssertionError [ERR_ASSERTION]: Unexpected final state
      + expected - actual

       {
      -  "documentContents": "if () {\n  const foo = \"hello\";\n} else {\n  \n}"
      +  "documentContents": "if () {\n    const foo = \"hello\";\n} else {\n    \n}"
         "selections": [
           {
             "active": {
               "character": 4

Also, noted in Slack. I currently have to quit VSCode to run the suite. Probably a separate issue but worth noting.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:15 (7 by maintainers)

github_iconTop GitHub Comments

2reactions
Will-Sommerscommented, Jun 3, 2022

Green run for the first time locally!

1reaction
pokeycommented, Mar 12, 2022

Windows and macOS based platforms are currently unsupported and won’t work (see issue https://github.com/nektos/act/issues/97) - https://github.com/nektos/act#runners

So presumably it will only run Linux? Either that or try to run Mac and Windows and fail? 😅

Read more comments on GitHub >

github_iconTop Results From Across the Web

Why Do My Tests Pass Locally but Fail on CircleCI?
This behavior has several possible explanations: Different language versions. Ensure you are using the same language version on your...
Read more >
Test fails locally, but not on server - Stack Overflow
If a registration is missing, this test will fail as expected on the local VS instance (it throws an exception, causing the test...
Read more >
Tests fail on GitHub actions but pass locally · Issue #2778
Some functional tests fail when run in GitHub actions, but when I run the tests locally, all tests pass. ... valueFor: 'Question, Bug,...
Read more >
Why tests pass locally but fail in Jenkins | Object Partners
Why your tests may pass locally but fail in Jenkins · The first thing you want to do is determine the source(s) of...
Read more >
Troubleshooting Continuous Integration, or How to Debug ...
Troubleshooting Continuous Integration, or How to Debug Tests That Fail on CI, but Pass Locally · Don't Relaunch the CI Build · Rebase...
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