mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-04 21:06:45 +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:
|
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();
|
||||||
|
}
|
||||||
|
});
|
||||||
|
```
|
||||||
Reference in New Issue
Block a user