0.0.6 • Published 6 years ago

nuwa-cli v0.0.6

Weekly downloads
2
License
ISC
Repository
-
Last release
6 years ago

nuwa-cli

The nuwa CLI, 104 Testing as a Service (TAAS)

Getting started

Learning how to install nuwa-cli and eazy start.

Installing the CLI

$ npm install -g nuwa-cli
/usr/local/bin/nuwa -> /usr/local/lib/node_modules/nuwa-cli/bin/nuwa
+ nuwa-cli@0.0.3
added 112 packages from 159 contributors in 7.007s

TestCafe test project

See the Nuwa TestCafe Project's Getting started to learn how to create test project and generate TestCafe test code.

TestCafe testcase examples

A test is consists of two yaml files testcase and step group. testcase is placed under the testcases folder, step group is placed under the stepgroups folder. you need to write at least one testcase to generate TestCafe test code.

See the Nuwa TestCafe Project's Example practice to learn more.

Commands

Now, we support one test tool's test code generate: testcafe

nuwa

nuwa <toolName> [options]

CLI for generating specified tool's test code

Usage Examples
# get help
$ nuwa --help
nuwa <command>

Commands:
  nuwa appium <command> [options]    Not support yet
  nuwa testcafe <command> [options]  Testcafe project management

Options:
  --version  Show version number                                       [boolean]
  --help     Show help                                                 [boolean]

# get version
$ nuwa --version
0.0.4
commands
  • testcafe : CLI for support TestCafe test project
options
  • --version : Show version number
  • --help : Show help

nuwa testcafe

nuwa testcafe <command> [options]

CLI for support TestCafe test project, more detailed please see the Nuwa TestCafe Project's Command Line

Usage Examples
# get help
$ nuwa testcafe --help
nuwa testcafe <command> [options]

Testcafe project management

Commands:
  nuwa testcafe build       Generator code with config YAML
  nuwa testcafe init        Initial a Testcafe project
  nuwa testcafe lint        Validate Testcafe project with config YAML
  nuwa testcafe new <name>  Create a Testcafe project

Options:
  --help  Show help                                                    [boolean]

# Create new test project in current directory.
$ nuwa testcafe init
Init completed

# Create new test project with new directory.
$ nuwa testcafe new testProject
Create 'testProject' completed

# Validate test project's testcase and step group
$ nuwa testcafe lint
Lint completed

# Generate TestCafe test code with testcases
$ nuwa testcafe build
Build completed
commands
  • build : Generate TestCafe test code with testcases
  • init : Create new test project in current directory.
  • lint : Validate test project's testcase and step group
  • new : Create new test project with new directory.
options
  • --help : Show help

Document