Add the new snippet injector in grunt task

This commit is contained in:
Nikolay Iliev
2016-04-13 14:32:56 +03:00
parent a66636fc6b
commit 5ceeb7fddd
5 changed files with 82 additions and 42 deletions

22
RunTests.md Normal file
View File

@@ -0,0 +1,22 @@
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();
}
});
```