Project

General

Profile

Actions

Bug #24940

closed

mgr/dashboard: How to interactively debug frontend unit tests

Added by Volker Theile almost 6 years ago. Updated about 3 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
General
Target version:
% Done:

0%

Source:
Development
Tags:
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

I'm missing a documentation and maybe jest configuration to interactively debug frontend unit tests.

Actions #1

Updated by Tiago Melo almost 6 years ago

I have been using the VS Code plugin to debug the tests.
When I want to debug a test it will run the following command:

cd ~/workspace/ceph/src/pybind/mgr/dashboard/frontend ; env "CI=vscode-jest-tests" ~/.nvm/versions/node/v8.11.3/bin/node --inspect-brk=21089 node_modules/jest/bin/jest.js --runInBand dashboard.service.spec.ts --testNamePattern "should call getHealth" 
Debugger listening on ws://127.0.0.1:21089/fa93aab8-641c-4ef0-b638-8430f5a1c50e
For help see https://nodejs.org/en/docs/inspector
Debugger attached.

Actions #2

Updated by Tiago Melo about 4 years ago

  • Assignee deleted (Tiago Melo)
Actions #3

Updated by Ernesto Puerta about 4 years ago

  • Status changed from New to Closed
Actions #4

Updated by Ernesto Puerta about 3 years ago

  • Project changed from mgr to Dashboard
  • Category changed from 132 to General
Actions

Also available in: Atom PDF