Project

General

Profile

Bug #24940

mgr/dashboard: How to interactively debug frontend unit tests

Added by Volker Theile over 4 years ago. Updated over 1 year 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.

History

#1 Updated by Tiago Melo over 4 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.

#2 Updated by Tiago Melo over 2 years ago

  • Assignee deleted (Tiago Melo)

#3 Updated by Ernesto Puerta over 2 years ago

  • Status changed from New to Closed

#4 Updated by Ernesto Puerta over 1 year ago

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

Also available in: Atom PDF