Testing - eclipsesource/json-schema-editor GitHub Wiki

Important files :
config file - ./karma.conf.js
starting point to load all test files - ./src/test.ts
test folder containing tests- ./src/modules/test
reports folder - ./reports


Test cases :

  1. Test palette items - checks if the palette items produced from the Parser using the metaschema.json is correct.
  • Technical notes : let testpalette = ["class","attribute"];
  • variable testpalette contains the palette items which should be produced from the Parser and is used for validating the output of the parser

Development Notes :

  • If using IDE (WebStorm) : right click karma.conf.js and hit 'run'
  • From command line : 'npm test'