angularjs - How to configure karma-runner (also known as testacular) to work with closure-library -
i'm trying use karma-runner mocha testing framework test application built closure-library , angularjs.
i namespace.application not defined
thanks in advance.
here's config file
basepath = ''; files = [ mocha, mocha_adapter, {pattern: 'vendors/closure-library/closure/goog/base.js', watched: false, included: true, served: true}, {pattern: 'public/javascripts/deps.js', watched: true, included: true, served: true}, {pattern: 'node_modules/expect.js/expect.js', watched: false, included: true, served: true}, {pattern: 'public/javascripts/*.js', watched: true, included: false, served: true}, {pattern: 'tests/*.test.js', watched: true, included: true, served: true} ]; exclude = [ ]; reporters = ['progress']; port = 9876; runnerport = 9100; colors = true; loglevel = log_info; autowatch = true; browsers = ['chrome', 'firefox']; capturetimeout = 60000; singlerun = false;
and here's simple test file
goog.require('namespace.application'); describe('some sample', function() { it('should something', function(done){ console.log('asdasd', readoptahydrant); done(); }); });
i found repo has pointers in setting google closure karma testrunner.
Comments
Post a Comment