![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
@theintern/cli
Advanced tools
This module gives Intern a friendly command line interface that works like a typical POSIX application.
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
.
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
intern-cli is offered under the New BSD license.
© SitePen, Inc. and its contributors
FAQs
The command line interface for Intern
The npm package @theintern/cli receives a total of 2 weekly downloads. As such, @theintern/cli popularity was classified as not popular.
We found that @theintern/cli demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.