NativeScript / NativeScript/nativescript-cli

Support running unit tests in Sauce Labs

Open
#4,631 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

feature unit testing
Dominant language
JavaScript
Stars
1.1k
Forks
204
Avg merge
1d 9h
Merged PRs (30d)
8

Description

Is your feature request related to a problem? Please describe.
Development of mobile application requires testing the application on different API Levels (OS Versions) and devices. It will be great in case this testing can be based on cloud providers that allow running the application on real devices.

Describe the solution you'd like
Currently the unit tests are run only on attached devices, but it will be great in case it is possible to run them in cloud provider, like Sauce Labs. I imagine having a flag to tns test command that specify the tests should be run in Sauce Labs.

Describe alternatives you've considered
Integration of other cloud providers, even those who allow using emulator - Appetize for example.

Additional context
As CLI uses karma to run the unit tests, it could benefit of using karma-sauce-launcher.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing the tns test command and its Karma-based unit-test configuration. Review how karma-sauce-launcher would fit the existing test flow and define the flag and Sauce Labs configuration it needs. Done means unit tests can be selected and run on Sauce Labs devices without breaking local-device testing.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
cli, cloud, mobile, testing-qa
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.