NativeScript / NativeScript/nativescript-cli

Auto-exit after `tns test` completes and allow for console output collection

Open
#1,827 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

The currently recommended approach to running tns test in a CI environment is to use the --justlaunch switch, so that tns exits after the test run completes.

  • We need a way to run without --justlaunch, so we show console.log and other output to the user and let CI systems collect it in their build logs.
  • We also need a --timeout parameter that will kill the test run if it doesn't complete in X minutes/seconds.

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 with the tns test command and trace the existing --justlaunch behavior. Define completion by preserving console output for CI, adding a --timeout parameter, and ending the test run automatically when it completes or times out.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
cli, testing
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.