web-app icon indicating copy to clipboard operation
web-app copied to clipboard

Unit-Testing needs to be set up.

Open karantakalkar opened this issue 4 years ago • 1 comments

Currently, there are following problems with effective unit testing of components and the entire app.

  1. fix: edit sms component spec.ts, incorrect component name 'EditSms' instead of 'EditSMS' leads to error upon running ng test
  2. build: add karma jasmine HTML reporter to get detailed error analysis.
  3. build: (optional) add istanbul-instrument-loader which is a dependency of karma-coverage-istanbul-reporter which offers detailed code coverage.
  4. chore: set up karma.conf.js to utlize kjhtml reporter, leaving options to add other reporters if necessary.
  5. feat: set up app-testing.module.ts for exporting all testing modules to spec.ts files
  6. test: set up all spec.ts files to utilize app.testing.module exports and other corrections necessary for clean test cases.
  7. refactor: some changes in component.ts files may also be required to pass tests.(eg.)

karantakalkar avatar Mar 26 '20 10:03 karantakalkar

This is based on #684

karantakalkar avatar Mar 26 '20 10:03 karantakalkar