Title: Testing not working with {NS}@rc yet? · Issue #61 · NativeScript/nativescript-cli-tests · GitHub
Open Graph Title: Testing not working with {NS}@rc yet? · Issue #61 · NativeScript/nativescript-cli-tests
X Title: Testing not working with {NS}@rc yet? · Issue #61 · NativeScript/nativescript-cli-tests
Description: NativeScript CLI Integration Tests. Contribute to NativeScript/nativescript-cli-tests development by creating an account on GitHub.
Open Graph Description: NativeScript CLI Integration Tests. Contribute to NativeScript/nativescript-cli-tests development by creating an account on GitHub.
X Description: NativeScript CLI Integration Tests. Contribute to NativeScript/nativescript-cli-tests development by creating an account on GitHub.
Opengraph URL: https://github.com/NativeScript/nativescript-cli-tests
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Testing not working with {NS}@rc yet?","articleBody":"Hello,\r\n\r\nI'm currently having a look at {NS} testing capabilities. Using the RC this doesn't seem to be stable yet? Here's what I'm talking about:\r\n\r\n```\r\nRefreshing application...\r\nNo matching processes belonging to you were found\r\n```\r\n\r\n```\r\n23 04 2017 10:29:50.348:WARN [NativeScript / 10.3 (10.3; iPhone)]: Disconnected (1 times)\r\nNativeScript / 10.3 (10.3; iPhone) ERROR\r\n Disconnectedundefined\r\n```\r\n\r\n```\r\n23 04 2017 10:06:43.983:WARN [NativeScript / 24 (7.0; Android SDK built for x86)]: Disconnected (1 times)\r\nNativeScript / 24 (7.0; Android SDK built for x86) ERROR\r\n Disconnectedundefined\r\n```\r\n\r\nI think there shouldn't be errors on a clean project or is that to be expected?\r\n\r\nThis is the basic installation process for my dummy app:\r\n\r\n```bash\r\nnpm install -g nativescript@rc\r\ntns create \"NativeScript-Mocha\" --appid \"com.hettiger.demo\" --template tns-template-hello-world-ts@rc\r\ntns test init\r\nnpm install --save-dev mocha\r\nnpm install --save-dev chai\r\n\r\ntns test android --emulator\r\n\r\ntns test ios --emulator\r\n```\r\n\r\n### Android Output\r\n\r\n> tns test android --emulator\r\n\r\n```\r\n/usr/local/bin/node /usr/local/lib/node_modules/npm/bin/npm-cli.js run test-android --scripts-prepend-node-path\r\n\r\n> @ test-android /Users/martin/Documents/Projekte/2017-04__NativeScript-Mocha/NativeScript-Mocha\r\n> tns test android --emulator\r\n\r\nSearching for devices...\r\nStarting Android emulator with image Nexus_5X_API_24_x86\r\nWaiting for emulator device initialization....\r\n23 04 2017 10:06:36.167:WARN [karma]: No captured browser, open http://localhost:9876/\r\n23 04 2017 10:06:36.177:INFO [karma]: Karma v1.6.0 server started at http://0.0.0.0:9876/\r\n23 04 2017 10:06:36.177:INFO [launcher]: Launching browser android with unlimited concurrency\r\n23 04 2017 10:06:36.200:INFO [launcher]: Starting browser NativeScript Unit Test Runner\r\nExecuting before-prepare hook from /Users/martin/Documents/Projekte/2017-04__NativeScript-Mocha/NativeScript-Mocha/hooks/before-prepare/nativescript-dev-android-snapshot.js\r\nExecuting before-prepare hook from /Users/martin/Documents/Projekte/2017-04__NativeScript-Mocha/NativeScript-Mocha/hooks/before-prepare/nativescript-dev-typescript.js\r\nFound peer TypeScript 2.2.2\r\nPreparing project...\r\n23 04 2017 10:06:37.870:INFO [watcher]: Changed file \"/Users/martin/Documents/Projekte/2017-04__NativeScript-Mocha/NativeScript-Mocha/app/app.js\".\r\n23 04 2017 10:06:37.871:INFO [watcher]: Changed file \"/Users/martin/Documents/Projekte/2017-04__NativeScript-Mocha/NativeScript-Mocha/app/main-page.js\".\r\n23 04 2017 10:06:37.872:INFO [watcher]: Changed file \"/Users/martin/Documents/Projekte/2017-04__NativeScript-Mocha/NativeScript-Mocha/app/main-view-model.js\".\r\n23 04 2017 10:06:37.873:INFO [watcher]: Changed file \"/Users/martin/Documents/Projekte/2017-04__NativeScript-Mocha/NativeScript-Mocha/app/bundle-config.js\".\r\n23 04 2017 10:06:38.124:WARN [karma]: No captured browser, open http://localhost:9876/\r\nProject successfully prepared (android)\r\nExecuting after-prepare hook from /Users/martin/Documents/Projekte/2017-04__NativeScript-Mocha/NativeScript-Mocha/hooks/after-prepare/nativescript-dev-android-snapshot.js\r\nExecuting after-prepare hook from /Users/martin/Documents/Projekte/2017-04__NativeScript-Mocha/NativeScript-Mocha/hooks/after-prepare/nativescript-unit-test-runner.js\r\nSkipping prepare.\r\nSkipping package build. No changes detected on the native side. This will be fast!\r\nSkipping install.\r\nTransferring project files...\r\nSuccessfully transferred all files.\r\nRefreshing application...\r\nSuccessfully synced application com.hettiger.demo on device emulator-5554.\r\n\r\nExecuting before-watch hook from /Users/martin/Documents/Projekte/2017-04__NativeScript-Mocha/NativeScript-Mocha/hooks/before-watch/nativescript-dev-typescript.js\r\nFound peer TypeScript 2.2.2\r\nJS: NSUTR: fetching http://127.0.0.1:9876/context.json\r\nJS: NSUTR: fetching http://192.168.1.2:9876/context.json\r\nJS: NSUTR: found karma at 192.168.1.2\r\nJS: NSUTR: connecting to karma at http://192.168.1.2:9876\r\nJS: NSUTR: successfully connected to karma\r\n23 04 2017 10:06:41.040:INFO [NativeScript / 24 (7.0; Android SDK built for x86)]: Connected on socket HCco3raWQq2y2Z9QAAAA with id NativeScriptUnit-8895\r\n10:06:41 AM - Compilation complete. Watching for file changes.\r\n\r\n\r\n\r\n23 04 2017 10:06:41.082:INFO [watcher]: Changed file \"/Users/martin/Documents/Projekte/2017-04__NativeScript-Mocha/NativeScript-Mocha/app/bundle-config.js\".\r\n23 04 2017 10:06:41.084:INFO [watcher]: Changed file \"/Users/martin/Documents/Projekte/2017-04__NativeScript-Mocha/NativeScript-Mocha/app/app.js\".\r\n23 04 2017 10:06:41.084:INFO [watcher]: Changed file \"/Users/martin/Documents/Projekte/2017-04__NativeScript-Mocha/NativeScript-Mocha/app/main-page.js\".\r\n23 04 2017 10:06:41.086:INFO [watcher]: Changed file \"/Users/martin/Documents/Projekte/2017-04__NativeScript-Mocha/NativeScript-Mocha/app/main-view-model.js\".\r\nJS: NSUTR: downloading http://192.168.1.2:9876/context.json\r\nJS: NSUTR: eval script /base/node_modules/chai/chai.js?ab7cf506d9d77c111c878b1e10b7f25348630760\r\nJS: NSUTR: eval script /base/node_modules/karma-chai/adapter.js?bab484a2111791847997ed88414622bccfbd2749\r\nJS: NSUTR: eval script /base/node_modules/mocha/mocha.js?0491afff0b566ea45cd04c9164a355dba705689e\r\n23 04 2017 10:06:41.337:INFO [karma]: Delaying execution, these browsers are not ready: NativeScript / 24 (7.0; Android SDK built for x86)\r\nJS: NSUTR: eval script /base/node_modules/karma-mocha/lib/adapter.js?e8826109cf50b958ee4bd667517729ffdd4de363\r\nJS: NSUTR: require script /base/app/tests/example.js?4d4b898e3e2ebaeb3a0c54cf47ad315f18439403 from ../../tests/example.js\r\nJS: NSUTR: beginning test run\r\nJS: NSUTR: completed test run.\r\nNativeScript / 24 (7.0; Android SDK built for x86): Executed 0 of 1 SUCCESS (0 secs / 0 secs)\r\nNativeScript / 24 (7.0; Android SDK built for x86): Executed 1 of 1 SUCCESS (0 secs / 0.003 secs)\r\nNativeScript / 24 (7.0; Android SDK built for x86): Executed 1 of 1 SUCCESS (0.044 secs / 0.003 secs)\r\nJS: NSUTR: completeAck\r\nJS: NSUTR: disregarding second execution\r\n23 04 2017 10:06:43.983:WARN [NativeScript / 24 (7.0; Android SDK built for x86)]: Disconnected (1 times)\r\nNativeScript / 24 (7.0; Android SDK built for x86) ERROR\r\n Disconnectedundefined\r\n```\r\n\r\n### iOS Output\r\n\r\n> tns test ios --emulator\r\n\r\n```\r\n/usr/local/bin/node /usr/local/lib/node_modules/npm/bin/npm-cli.js run test-ios --scripts-prepend-node-path\r\n\r\n> @ test-ios /Users/martin/Documents/Projekte/2017-04__NativeScript-Mocha/NativeScript-Mocha\r\n> tns test ios --emulator\r\n\r\nSearching for devices...\r\n23 04 2017 10:29:34.860:WARN [karma]: No captured browser, open http://localhost:9876/\r\n23 04 2017 10:29:34.871:INFO [karma]: Karma v1.6.0 server started at http://0.0.0.0:9876/\r\n23 04 2017 10:29:34.871:INFO [launcher]: Launching browser ios with unlimited concurrency\r\n23 04 2017 10:29:34.881:INFO [launcher]: Starting browser NativeScript Unit Test Runner\r\nExecuting before-prepare hook from /Users/martin/Documents/Projekte/2017-04__NativeScript-Mocha/NativeScript-Mocha/hooks/before-prepare/nativescript-dev-android-snapshot.js\r\nExecuting before-prepare hook from /Users/martin/Documents/Projekte/2017-04__NativeScript-Mocha/NativeScript-Mocha/hooks/before-prepare/nativescript-dev-typescript.js\r\nFound peer TypeScript 2.2.2\r\nPreparing project...\r\n23 04 2017 10:29:36.936:INFO [watcher]: Changed file \"/Users/martin/Documents/Projekte/2017-04__NativeScript-Mocha/NativeScript-Mocha/app/bundle-config.js\".\r\n23 04 2017 10:29:36.938:INFO [watcher]: Changed file \"/Users/martin/Documents/Projekte/2017-04__NativeScript-Mocha/NativeScript-Mocha/app/app.js\".\r\n23 04 2017 10:29:36.941:INFO [watcher]: Changed file \"/Users/martin/Documents/Projekte/2017-04__NativeScript-Mocha/NativeScript-Mocha/app/main-page.js\".\r\n23 04 2017 10:29:36.941:INFO [watcher]: Changed file \"/Users/martin/Documents/Projekte/2017-04__NativeScript-Mocha/NativeScript-Mocha/app/main-view-model.js\".\r\n23 04 2017 10:29:37.192:WARN [karma]: No captured browser, open http://localhost:9876/\r\nProject successfully prepared (ios)\r\nExecuting after-prepare hook from /Users/martin/Documents/Projekte/2017-04__NativeScript-Mocha/NativeScript-Mocha/hooks/after-prepare/nativescript-dev-android-snapshot.js\r\nExecuting after-prepare hook from /Users/martin/Documents/Projekte/2017-04__NativeScript-Mocha/NativeScript-Mocha/hooks/after-prepare/nativescript-unit-test-runner.js\r\nSkipping prepare.\r\nSkipping package build. No changes detected on the native side. This will be fast!\r\nSkipping install.\r\nTransferring project files...\r\nSuccessfully transferred all files.\r\nRefreshing application...\r\nNo matching processes belonging to you were found\r\nSuccessfully synced application com.hettiger.demo on device DA931253-F078-4921-A4CE-4D5339765011.\r\n\r\nExecuting before-watch hook from /Users/martin/Documents/Projekte/2017-04__NativeScript-Mocha/NativeScript-Mocha/hooks/before-watch/nativescript-dev-typescript.js\r\nFound peer TypeScript 2.2.2\r\nobjc[4753]: Class PLBuildVersion is implemented in both /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/System/Library/PrivateFrameworks/AssetsLibraryServices.framework/AssetsLibraryServices (0x122a07cc0) and /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/System/Library/PrivateFrameworks/PhotoLibraryServices.framework/PhotoLibraryServices (0x12281e6f0). One of the two will be used. Which one is undefined.\r\nCONSOLE LOG file:///app/tns_modules/nativescript-unit-test-runner/main-view-model.js:54:28: NSUTR: fetching http://127.0.0.1:9876/context.json\r\nCONSOLE LOG file:///app/tns_modules/nativescript-unit-test-runner/main-view-model.js:54:28: NSUTR: fetching http://192.168.1.2:9876/context.json\r\nCONSOLE LOG file:///app/tns_modules/nativescript-unit-test-runner/main-view-model.js:60:32: NSUTR: found karma at 127.0.0.1\r\nCONSOLE LOG file:///app/tns_modules/nativescript-unit-test-runner/main-view-model.js:97:20: NSUTR: connecting to karma at http://127.0.0.1:9876\r\nCONSOLE LOG file:///app/tns_modules/nativescript-unit-test-runner/main-view-model.js:60:32: NSUTR: found karma at 192.168.1.2\r\nCONSOLE LOG file:///app/tns_modules/nativescript-unit-test-runner/main-view-model.js:116:24: NSUTR: successfully connected to karma\r\n23 04 2017 10:29:47.163:INFO [NativeScript / 10.3 (10.3; iPhone)]: Connected on socket D9-JE_euthE4qYcmAAAA with id NativeScriptUnit-3668\r\n23 04 2017 10:29:47.618:INFO [watcher]: Changed file \"/Users/martin/Documents/Projekte/2017-04__NativeScript-Mocha/NativeScript-Mocha/app/bundle-config.js\".\r\n23 04 2017 10:29:47.619:INFO [watcher]: Changed file \"/Users/martin/Documents/Projekte/2017-04__NativeScript-Mocha/NativeScript-Mocha/app/app.js\".\r\n10:29:47 AM - Compilation complete. Watching for file changes.\r\n\r\n\r\n\r\n23 04 2017 10:29:47.620:INFO [watcher]: Changed file \"/Users/martin/Documents/Projekte/2017-04__NativeScript-Mocha/NativeScript-Mocha/app/main-page.js\".\r\n23 04 2017 10:29:47.622:INFO [watcher]: Changed file \"/Users/martin/Documents/Projekte/2017-04__NativeScript-Mocha/NativeScript-Mocha/app/main-view-model.js\".\r\nCONSOLE LOG file:///app/tns_modules/nativescript-unit-test-runner/main-view-model.js:159:20: NSUTR: downloading http://127.0.0.1:9876/context.json\r\nCONSOLE LOG file:///app/tns_modules/nativescript-unit-test-runner/main-view-model.js:200:32: NSUTR: eval script /base/node_modules/chai/chai.js?ab7cf506d9d77c111c878b1e10b7f25348630760\r\nCONSOLE LOG file:///app/tns_modules/nativescript-unit-test-runner/main-view-model.js:200:32: NSUTR: eval script /base/node_modules/karma-chai/adapter.js?bab484a2111791847997ed88414622bccfbd2749\r\nCONSOLE LOG file:///app/tns_modules/nativescript-unit-test-runner/main-view-model.js:200:32: NSUTR: eval script /base/node_modules/mocha/mocha.js?0491afff0b566ea45cd04c9164a355dba705689e\r\nCONSOLE LOG file:///app/tns_modules/nativescript-unit-test-runner/main-view-model.js:200:32: NSUTR: eval script /base/node_modules/karma-mocha/lib/adapter.js?e8826109cf50b958ee4bd667517729ffdd4de363\r\nCONSOLE LOG file:///app/tns_modules/nativescript-unit-test-runner/main-view-model.js:196:32: NSUTR: require script /base/app/tests/example.js?4d4b898e3e2ebaeb3a0c54cf47ad315f18439403 from ../../tests/example.js\r\nCONSOLE LOG file:///app/tns_modules/nativescript-unit-test-runner/main-view-model.js:212:24: NSUTR: beginning test run\r\nNativeScript / 10.3 (10.3; iPhone): Executed 0 of 1 SUCCESS (0 secs / 0 secs)\r\nCONSOLE LOG file:///app/tns_modules/nativescript-unit-test-runner/main-view-model.js:254:20: NSUTR: completed test run.\r\nNativeScript / 10.3 (10.3; iPhone): Executed 1 of 1 SUCCESS (0 secs / 0 secs)\r\nNativeScript / 10.3 (10.3; iPhone): Executed 1 of 1 SUCCESS (0.007 secs / 0 secs)\r\nCONSOLE LOG file:///app/tns_modules/nativescript-unit-test-runner/main-view-model.js:258:24: NSUTR: completeAck\r\n23 04 2017 10:29:50.348:WARN [NativeScript / 10.3 (10.3; iPhone)]: Disconnected (1 times)\r\nNativeScript / 10.3 (10.3; iPhone) ERROR\r\n Disconnectedundefined\r\n```\r\n\r\n### Package\r\n\r\n```json\r\n{\r\n \"description\": \"NativeScript Application\",\r\n \"license\": \"SEE LICENSE IN \u003cyour-license-filename>\",\r\n \"readme\": \"NativeScript Application\",\r\n \"repository\": \"\u003cfill-your-repository-here>\",\r\n \"nativescript\": {\r\n \"id\": \"com.hettiger.demo\",\r\n \"tns-ios\": {\r\n \"version\": \"3.0.0-rc.1-2017-3-28-2\"\r\n },\r\n \"tns-android\": {\r\n \"version\": \"2.5.0\"\r\n }\r\n },\r\n \"scripts\": {\r\n \"reset\": \"tns platform remove android || true && tns platform remove ios || true\",\r\n \"run-android\": \"tns run ios --no-watch\",\r\n \"run-ios\": \"tns run ios --no-watch\",\r\n \"test-android\": \"tns test android --emulator\",\r\n \"test-ios\": \"tns test ios --emulator\"\r\n },\r\n \"dependencies\": {\r\n \"nativescript-theme-core\": \"~1.0.2\",\r\n \"nativescript-unit-test-runner\": \"^0.3.4\",\r\n \"tns-core-modules\": \"rc\"\r\n },\r\n \"devDependencies\": {\r\n \"babel-traverse\": \"6.24.1\",\r\n \"babel-types\": \"6.24.1\",\r\n \"babylon\": \"6.17.0\",\r\n \"chai\": \"^3.5.0\",\r\n \"karma\": \"^1.6.0\",\r\n \"karma-chai\": \"^0.1.0\",\r\n \"karma-mocha\": \"^1.3.0\",\r\n \"karma-nativescript-launcher\": \"^0.4.0\",\r\n \"lazy\": \"1.0.11\",\r\n \"mocha\": \"^3.2.0\",\r\n \"nativescript-dev-android-snapshot\": \"^0.*.*\",\r\n \"nativescript-dev-typescript\": \"~0.4.0\",\r\n \"typescript\": \"~2.2.1\"\r\n }\r\n}\r\n```","author":{"url":"https://github.com/hettiger","@type":"Person","name":"hettiger"},"datePublished":"2017-04-23T08:38:41Z","url":"https://github.com/NativeScript/nativescript-cli-tests/issues/61"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /:user_id/:repository/issues/:id(.:format) |
| route-controller | issues |
| route-action | show |
| fetch-nonce | v2:1709a393-3fe6-1403-cea4-1734d23de816 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C91E:317608:2F5808F:3BF36AB:6B01BD87 |
| html-safe-nonce | 696ad71ac28641cda9d89d61bbc53e69867f7ebcdaa9d57850507866f50e7d7e |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDOTFFOjMxNzYwODoyRjU4MDhGOjNCRjM2QUI6NkIwMUJEODciLCJ2aXNpdG9yX2lkIjoiNTgyMDMwNzE4MTg2OTg0MTc5OSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 8b37c5e03bc3b501dc95621eec35d0ce0427f80c3f8c46cddfb7e6d938e58536 |
| hovercard-subject-tag | repository:23151303 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/NativeScript/nativescript-cli-tests/issues/61 |
| twitter:image | https://opengraph.githubassets.com/f012ffd365976e4be21c1b8171fc6e4db6c2735c4cd452bad6c13439531a5981/NativeScript/nativescript-cli-tests |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/f012ffd365976e4be21c1b8171fc6e4db6c2735c4cd452bad6c13439531a5981/NativeScript/nativescript-cli-tests |
| og:image:alt | NativeScript CLI Integration Tests. Contribute to NativeScript/nativescript-cli-tests development by creating an account on GitHub. |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | cc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c |
| turbo-cache-control | no-cache |
| go-import | github.com/NativeScript/nativescript-cli-tests git https://github.com/NativeScript/nativescript-cli-tests.git |
| octolytics-dimension-user_id | 7392261 |
| octolytics-dimension-user_login | NativeScript |
| octolytics-dimension-repository_id | 23151303 |
| octolytics-dimension-repository_nwo | NativeScript/nativescript-cli-tests |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 23151303 |
| octolytics-dimension-repository_network_root_nwo | NativeScript/nativescript-cli-tests |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 8c77c9e8439031ad54c75a250694842892f693e1 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width