https://github.com/nativescript/common-runtime-tests-app
https://github.com/nativescript/common-runtime-tests-app
Last synced: 4 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/nativescript/common-runtime-tests-app
- Owner: NativeScript
- Created: 2015-01-29T09:17:07.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2023-12-16T20:54:23.000Z (over 2 years ago)
- Last Synced: 2025-10-09T00:23:36.720Z (8 months ago)
- Language: JavaScript
- Size: 88.9 KB
- Stars: 2
- Watchers: 32
- Forks: 5
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## TNS Shared Tests
Currently targeting the Telerik NativeScript runtimes for:
- iOS
- android
The tests should cover sommon functionality such as the "require" implementations,
basic inheritance scenarios, ECMA version etc.
[The unit tests are written in Jasmine.](http://jasmine.github.io/2.0/introduction.html)
To run the tests you should add this repo as submodule in the app/shared folder.
There is a satelite repo that contains module which should be added as submodule in tns_modules/shared respectively.
## Fixtures
`TNSLog(text)` method is expected to be defined in the global object collecting messages.
`TNSGetOutput()` method returns all messages collected in TNSLog.
`TNSClearOutput()` clears the collected messages in TNSLog.
`__approot` global variable should point the path to the root folder of the app, the one where 'app' and 'tns_modules' are located. The path should start with leading slash.