mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-03 03:30:04 +08:00
readme updated
This commit is contained in:
@ -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:
|
||||
|
||||
iOS
|
||||
```js
|
||||
var tests = require("Tests");
|
||||
tests.runAll();
|
||||
```
|
||||
|
||||
Android
|
||||
```js
|
||||
app.init({
|
||||
getActivity: function(intent) {
|
||||
return com.tns.NativeScriptActivity.extends({});
|
||||
},
|
||||
onCreate: function() {
|
||||
require("Application").init(this);
|
||||
require("Tests").runAll();
|
||||
}
|
||||
});
|
||||
```
|
||||
Reference in New Issue
Block a user