readme updated

This commit is contained in:
Vladimir Enchev
2014-05-13 14:24:44 +03:00
parent d6a3f385bf
commit 46729c1c8b

View File

@ -1,6 +1,20 @@
To run tests please build using one of the *_Tests build configurations and call runAll() method of the Tests module. For example: To run tests please build using one of the *_Tests build configurations and call runAll() method of the Tests module. For example:
iOS
```js ```js
var tests = require("Tests"); var tests = require("Tests");
tests.runAll(); tests.runAll();
```
Android
```js
app.init({
getActivity: function(intent) {
return com.tns.NativeScriptActivity.extends({});
},
onCreate: function() {
require("Application").init(this);
require("Tests").runAll();
}
});
``` ```