cursorless: Tests failing locally

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.

About this issue

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

Most upvoted comments

Green run for the first time locally!

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? 😅