Skip to content

suvorov/run-siesta

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

run-siesta

Running tests of Siesta by Phantom JS

###run-siesta.js

phantomjs run-siesta.js http://localhost/tests/index.html

###index.js

Please read http://www.bryntum.com/docs/siesta/#!/guide/siesta_getting_started-section-4

####Important

...

Harness.configure({

...

autoRun		: true,

preload     : [
	...
],

listeners:
{
	testfinalize: function(event, test)
	{
		var fail = test.$failCount,
			pass = test.$passCount;

		var log = (fail ? '~~~~~~~~\n FAILED  ' : '[PASSED] ') +
			test.url + ' [pass: ' + pass + ', fail: ' + fail + ']' +
			(fail ? '\n~~~~~~~~' : '');

		console.log(log);
	},
	testsuiteend: function(event, harness)
	{
		console.log('END_TESTS');
	}

}

});

...

About

Running tests of Siesta by Phantom JS

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published