[Hawkular-commits] [hawkular/hawkular-ui-components] d7cc04: Add Jasmine testing framework to project (#138)

Mike Thompson mtho11 at users.noreply.github.com
Wed Aug 3 10:57:32 EDT 2016


  Branch: refs/heads/master
  Home:   https://github.com/hawkular/hawkular-ui-components
  Commit: d7cc04e1e33097cae8e7fb1ef1e531732dd15284
      https://github.com/hawkular/hawkular-ui-components/commit/d7cc04e1e33097cae8e7fb1ef1e531732dd15284
  Author: Mike Thompson <mtho11 at users.noreply.github.com>
  Date:   2016-08-03 (Wed, 03 Aug 2016)

  Changed paths:
    R .babelrc
    M karma.conf.js
    M package.json
    R src/components/actionButton.test.js
    A src/components/actionButton.test.ts
    M webpack.config.js
    M webpack.vendor.config.js

  Log Message:
  -----------
  Add Jasmine testing framework to project (#138)

* Add Chai to unit testing framework. This gives us the similar syntax to Rails rspec.

Use 'npm t' to run the tests.

* Add karma-webpack to pre-process the testing code as well.

* Fix karma testing dev mode error where karma can't see the extra chunks resulting in error: Uncaught ReferenceError: webpackJsonp is not defined .

* Clean up some of the const/let vars.

* Remove .babelrc since it is not being used anymore (node 4+ has much of what we need for  ES6 in it)

* Quiet the Karma debugging log from DEBUG to WARN.

* Replace Mocha/chai with Jasmine to be compliant with current MiQ js test environment.

* Add 'npm run test:watch' command to keep the tests running while making changes to the test (good for instant CI).




More information about the hawkular-commits mailing list