mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-16 03:31:45 +08:00
23 lines
482 B
Markdown
23 lines
482 B
Markdown
To run tests please build using one of the *_Tests build configurations and call runAll() method of the Tests module. For example:
|
|
|
|
##iOS
|
|
``` JavaScript
|
|
var app = require("application");
|
|
app.init(null);
|
|
var tests = require("Tests");
|
|
tests.runAll();
|
|
```
|
|
|
|
##Android
|
|
``` JavaScript
|
|
app.init({
|
|
getActivity: function(intent) {
|
|
return com.tns.NativeScriptActivity.extend({});
|
|
},
|
|
onCreate: function() {
|
|
require("application").init(this);
|
|
require("Tests").runAll();
|
|
}
|
|
});
|
|
```
|