GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - theintern/cli: The command line interface for Intern

This repository was archived by the owner on Jan 28, 2020. It is now read-only.
BranchesTags
Open more actions menu

Latest commit

 

History

87 Commits
87 Commits

Folders and files

NameName
Last commit message
Last commit date
init
init
 
 
src
src
 
 
tests
tests
 
 
.gitignore
.gitignore
 
 
.jshintrc
.jshintrc
 
 
.prettierrc
.prettierrc
 
 
.travis.yml
.travis.yml
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
intern.json
intern.json
 
 
package-lock.json
package-lock.json
 
 
package.json
package.json
 
 
tsconfig.json
tsconfig.json
 
 
tslint.json
tslint.json
 
 

Repository files navigation

intern-cli

⚠️ This repository has been deprecated., and development has been moved into the main Intern repository.

This module gives Intern a friendly command line interface that works like a typical POSIX application.

Intern Intern

Getting started

Install it globally:

$ npm install -g @theintern/cli

You can then run Intern unit tests with:

$ intern run

When used with Intern 3, intern-cli will use Intern’s Node client by default, and it assumes the test config is located at ./tests/intern.js. The “runner” runner can be invoked with the -w/--webdriver flag.

When used with Intern 4, intern-cli will run all functional and unit tests by default (this is Intern 4‘s default behavior). WebDriver tests can be skipped with the -n/--node flag, and Node unit tests can be skipped with the -w/--webdriver flag. The cli assumes the test config is at intern.json.

Getting help

Intern-cli provides top level help when run with no arguments:

$ intern

  Usage: intern [options] [command]

  Run JavaScript tests


  Options:

	-h, --help     output usage information
	-v, --verbose  show more information about what Intern is doing
	-V, --version  output the version
	--debug        enable the Node debugger


  Commands:

    version                    Show versions of intern-cli and intern
    help [command]             Get help for a command
    init [options]             Setup a project for testing with Intern
    run [options] [args...]    Run tests in Node or in a browser using WebDriver
    serve [options] [args...]  Start a simple web server for running unit tests in a browser on your system
    watch [files]              Watch test and app files for changes and re-run Node-based unit tests when files are updated

You can get more information about a particular sub-command with the help command or the -h option:

$ intern help init

  Usage: init [options]

  Setup a project for testing with Intern


  Options:

	-h, --help               output usage information
	-b, --browser <browser>  browser to use for functional tests


  This command creates a "tests" directory with a default Intern config file
  and some sample tests.

  Browser names:

	chrome, firefox, safari, internet explorer, microsoftedge

intern-cli also tries to provide useful feedback when it notices a problem with its environment:

$ intern

  You'll need a local install of Intern before you can use this command.
  Install it with

	npm install --save-dev intern

License

intern-cli is offered under the New BSD license.

© SitePen, Inc. and its contributors

About

The command line interface for Intern

Resources

Readme
License
Activity
Custom properties

Stars

3 stars

Watchers

6 watching

Forks

3 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.