Skip to content
This repository was archived by the owner on Jul 19, 2019. It is now read-only.

Testing

Akash Manjunath edited this page Jan 19, 2017 · 4 revisions

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'

Clone this wiki locally