newt test

Execute unit tests for one or more packages.

Usage:

newt test <package-name> [package-names...]  | all [flags]

Flags:

-e, --exclude string   Comma separated list of packages to exclude

Global Flags:

-h, --help              Help for newt commands
-j, --jobs int          Number of concurrent build jobs (default 8)
-l, --loglevel string   Log level (default "WARN")
-o, --outfile string    Filename to tee output to
-q, --quiet             Be quiet; only display error output
-s, --silent            Be silent; don't output anything
-v, --verbose           Enable verbose output when executing commands

Description

Executes unit tests for one or more packages. You specify a list of packages, separated by space, to test multiple packages in the same command, or specify all to test all packages. When you use the all option, you may use the -e flag followed by a comma separated list of packages to exclude from the test.

Examples

Usage

Explanation

newt test @apache-mynewt-core/kernel/os

Tests the kernel/os package in the apache-mynewt-core repository.

newt test kernel/os encoding/json

Tests the kernel/os and encoding/json packages in the current repository.

newt test all

Tests all packages.

newt test all -e net/oic,encoding/json

Tests all packages except for the net/oic and the encoding/json packages.