mirror of https://github.com/sipwise/ngcp-csc.git
Karma and WebdriverIO tests are now using Mocha as testing framework. Change-Id: Id9c90e25891f8dcf5058eea08068c86dda142f0bchanges/87/9587/2
parent
68aa47fd9d
commit
aa539ba0e7
@ -1,4 +1,4 @@
|
||||
#!/bin/bash
|
||||
# This script is used for running the tests with proper arguments
|
||||
# from within Jenkins
|
||||
cd /code && /opt/Sencha/Cmd/sencha app build -c && ./t/testrunner
|
||||
cd /code && ./t/testrunner
|
||||
|
@ -1,36 +1,31 @@
|
||||
var karmaLoadedFunction;
|
||||
|
||||
if (window.__karma__) {
|
||||
// store karma function to start it later
|
||||
// override it with dummy
|
||||
karmaLoadedFunction = window.__karma__.loaded;
|
||||
window.__karma__.loaded = function() {
|
||||
};
|
||||
// store karma function to start it later
|
||||
// override it with dummy
|
||||
karmaLoadedFunction = window.__karma__.loaded;
|
||||
window.__karma__.loaded = function() {};
|
||||
}
|
||||
|
||||
Ext.Loader.setConfig({
|
||||
enabled : true,
|
||||
paths : {
|
||||
'NgcpCsc.view' : 'classic/src/view',
|
||||
},
|
||||
disableCaching : true
|
||||
enabled: true,
|
||||
paths: {
|
||||
'NgcpCsc.view': 'classic/src/view'
|
||||
},
|
||||
disableCaching: true
|
||||
});
|
||||
|
||||
console.log('Starting the test application...');
|
||||
|
||||
|
||||
Ext.application({
|
||||
name : 'NgcpCsc',
|
||||
launch : function() {
|
||||
|
||||
var jasmineEnv = jasmine.getEnv();
|
||||
jasmineEnv.updateInterval = 1000;
|
||||
name: 'NgcpCsc',
|
||||
launch: function() {
|
||||
|
||||
if (window.__karma__) {
|
||||
console.log('Starting the tests in specs');
|
||||
if (window.__karma__) {
|
||||
console.log('Starting the tests in specs');
|
||||
|
||||
window.__karma__.loaded = karmaLoadedFunction;
|
||||
window.__karma__.loaded();
|
||||
}
|
||||
}
|
||||
window.__karma__.loaded = karmaLoadedFunction;
|
||||
window.__karma__.loaded();
|
||||
}
|
||||
}
|
||||
});
|
||||
|
@ -1,6 +1,6 @@
|
||||
describe('Karma setup check', function() {
|
||||
it('has a dummy spec to check if included files are there', function() {
|
||||
// console.log(Ext.create('NgcpCsc.model.Call'));
|
||||
expect(0).toEqual(0);
|
||||
expect(null).to.be.a('null');
|
||||
});
|
||||
});
|
||||
|
Loading…
Reference in new issue