mocha-sidebar icon indicating copy to clipboard operation
mocha-sidebar copied to clipboard

Nothing happens when test is run, it is stuck with refresh icon

Open balindersingh opened this issue 5 years ago • 7 comments

Description

When I run test from sidebar it is stuck on refresh icon and seems like nothing happens after that

Steps to Reproduce

  1. Go to Test Explorer
  2. Run any test

Expected Results

It should pass. All my tests are passing if I run from command line using mocha command

Actual Results

Stuck on Refresh icon image

Settings file

  "mocha.nycPath": "./grunt/node_modules/.bin/nyc",
    "mocha.files.glob": "./grunt/test/**/*.js",
    "mocha.logVerbose":false,
    "mocha.sideBarOptions": {
        "lens": true, 
        "decoration": true,
        "showDebugTestStatus": true 
    },
    "mocha.coverage": {        
        "enable": true,
        "decoration": true,
        "runWithInterval": false,
        "autoUpdateInterval": 1000,
        "activeOnStart": true,
        "runAfterTest": false,
        "reporters": []
    },

Versions

  • VScode: v1.36
  • Mocha SideBar: v0.22.2
  • Node Version: v8.9.3

OS version

  • [x] Windows

balindersingh avatar Jul 08 '19 13:07 balindersingh

Did you check the output under the test-sidebar section I believe that it's related to something in your code that crashes , does your test running successfully from mocha cli ?

On Mon, Jul 8, 2019, 4:30 PM Balinder Singh [email protected] wrote:

Description

When I run test from sidebar it is stuck on refresh icon and seems like nothing happens after that Steps to Reproduce

  1. Go to Test Explorer
  2. Run any test

Expected Results

It should pass. All my tests are passing if I run from command line using mocha command Actual Results

Stuck on Refresh icon [image: image] https://user-images.githubusercontent.com/17101311/60814014-da216780-a162-11e9-9937-d07dbc03ee27.png Settings file

"mocha.nycPath": "./grunt/node_modules/.bin/nyc", "mocha.files.glob": "./grunt/test/**/*.js", "mocha.logVerbose":false, "mocha.sideBarOptions": { "lens": true, "decoration": true, "showDebugTestStatus": true }, "mocha.coverage": { "enable": true, "decoration": true, "runWithInterval": false, "autoUpdateInterval": 1000, "activeOnStart": true, "runAfterTest": false, "reporters": [] },

Versions

  • VScode: v1.36
  • Mocha SideBar: v0.22.2
  • Node Version: v8.9.3

OS version

  • Windows

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/maty21/mocha-sidebar/issues/192?email_source=notifications&email_token=ABH6POKZ2VJG2L47TOTXC4DP6M6OBA5CNFSM4H63XB7KYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4G53JGLQ, or mute the thread https://github.com/notifications/unsubscribe-auth/ABH6POKR44K6GK3NC73265TP6M6OBANCNFSM4H63XB7A .

maty21 avatar Jul 08 '19 15:07 maty21

I have this same issue. @balindersingh did you figure it out?

It is interesting that when I click on Debug the debug console shows the test result, but the sidebar does not update the test result itself, it keeps showing the refresh icon.

mcaballeropinto avatar Oct 08 '19 19:10 mcaballeropinto

Yes tests run successfully using mocha cli.

balindersingh avatar Jan 08 '20 19:01 balindersingh

I have the same issue.

Versions VScode: v1.41.1 Mocha SideBar: v0.22.2 Node Version: v10.18.1 tsc Version: 3.7.4 ts-node version: v8.4.1

OS version Fedora 31

config

{
"mocha.files.glob": "src/tests/**/*.test.ts",
    "mocha.nycPath": "node_modules/.bin/nyc",
    "mocha.requires": [
        "ts-node/register",
        "source-map-support/register"
    ],
    "mocha.logVerbose": true,
    "mocha.env": {
        "TZ": "UTC",
        "NODE_ENV": "dev",
        "TESTING": true
    },
    "mocha.coverage": {
        "enable": true,
        "decoration": true,
        "runWithInterval": false,
        "autoUpdateInterval": 20000,
        "activeOnStart": true,
        "runAfterTest": true,
        "runCoverageAfterFileSave": false,
        "reporters": []
    },
    "mocha.sideBarOptions": {
        "lens": true,
        "decoration": true,
        "autoUpdateTime": 2000,
        "showDebugTestStatus": true
    },
    "mocha.options": {
        "fullTrace": true,
        "exit": true
    },
}

mathewmeconry avatar Jan 13 '20 23:01 mathewmeconry

same, weird issue tried reinstall, deleted settings and nothing happened. I think the test is running but there is some issue with the UI update.

It's works in console and other similar extensions.

Been using this extension for a long time and its happened after I've added a global setup and teardown with ".mocharc.json" Maybe it's related.

adibenmati avatar Nov 22 '20 13:11 adibenmati

having the same issue

can confirm tests run fine in cli and in debug mode

ui is not being updated - stuck at refresh icon

minotaurrr avatar Mar 07 '21 23:03 minotaurrr

update: removed all vscode settings starting with mocha., removed the extension, re-installed extension, reloaded window, added local settings under .vscode/settings.json and it worked

minotaurrr avatar Mar 07 '21 23:03 minotaurrr