Files
NativeScript/Tests
PanayotCankov 9dd3ba70c5 Added "External Ambient Module Declarations" for most modules.
Now they are required by module name e.g require("file-system") instead of by file name.
2014-05-21 12:23:19 +03:00
..
2014-05-16 16:16:29 +03:00

To run tests please build using one of the *_Tests build configurations and call runAll() method of the Tests module. For example:

##iOS

var app = require("application");
app.init(null);
var tests = require("Tests");
tests.runAll();

##Android

app.init({
	getActivity: function(intent) {
		return com.tns.NativeScriptActivity.extends({});
	},
	onCreate: function() {
		require("application").init(this);
		require("Tests").runAll();
	} 
});