Tests failing locally
See original GitHub issueWhile 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:
- Created 2 years ago
- Comments:15 (7 by maintainers)
Top 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 >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 FreeTop 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
Top GitHub Comments
Green run for the first time locally!
So presumably it will only run Linux? Either that or try to run Mac and Windows and fail? 😅