siesta-lite
Version:
Stress-free JavaScript unit testing and functional testing tool, works in NodeJS and browsers
49 lines (41 loc) • 1.1 kB
JavaScript
var harness = new Siesta.Project.Browser.ExtJS()
harness.configure({
title : 'MVC Test Suite',
loaderPath : { 'AM' : 'app' },
preload : [
"//cdn.sencha.com/ext/gpl/4.2.0/resources/css/ext-all.css",
"//cdn.sencha.com/ext/gpl/4.2.0/ext-all-debug.js"
]
});
harness.start(
{
group : 'Sanity',
items : [
'tests/sanity.t.js'
]
},
{
group : 'Model',
items : [
'tests/usermodel.t.js'
]
},
{
group : 'Views',
items : [
'tests/userlist_view.t.js',
'tests/useredit_view.t.js'
]
},
{
group : 'Application',
// need to set the `preload` to empty array - to avoid the double loading of dependencies
preload : [],
items : [
{
pageUrl : 'app.html',
url : 'tests/app.t.js'
}
]
}
);