spun

0.11.3 • Public • Published

spun NPM version Downloads Build Status Coveralls Status

Rapid Selenium Testing

spun is a command line tool that compiles spun files down to selenium code.

A spun file contains a very terse format for authoring Selenium tests. We've authored a DSL (Domain Specific Languge) that we feel handles most use cases. The language of spun looks like this:

get "https://google.com"
type "query" in "[name=q]"
click "a"
quit

Contents

## Why the name? A google search for `spun definition` resulted in this:

Webster:

  past or present of spin.

Not very cool.

Urban:

  1. A state of mind that exists because of using an amphetamine for a prolonged amount of time through repeated ingestion.
  2. To be under the influence of almost any stimulant, such as meth, straight speed...

  Usage: "Man I'm spun out on crack..."

Not very cool either.

A goole search for selenium definition resulted in this:

  the chemical element of atomic number 34, a gray crystalline nonmetal with semiconducting properties.

Hmm, a chemical element. Eureka! spun let's you get spun out on selenium!

Still not very cool ;)

## Options

Run spun -h for usage.

## How does it work?

spun relies on strategy providers to convert a spun file down to a languge. The output may be anything from node to java to ruby.

spun will search package.json for the first dependency prefixed with spun-. Because a strategy provider is likely to include spun-util, spun-util is ignored in this search.

spun also assumes that by default your language compiles down to node. By default spun will attempt to run the results using node. You an override this behavior using the options.

The default provider is spun-selenium-webdriver

LICENSE

The MIT License (MIT)

Copyright (c) 2014 Joseph Spencer

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
0.11.32latest

Version History

VersionDownloads (Last 7 Days)Published
0.11.32
0.11.21
0.11.11
0.10.110
0.10.100
0.10.91
0.10.81
0.10.70
0.10.61
0.10.50
0.10.41
0.10.30
0.10.20
0.10.00
0.9.10
0.9.00
0.8.00
0.7.30
0.7.20
0.7.10
0.7.00
0.6.30
0.6.20
0.6.10
0.6.00
0.5.00
0.4.00
0.3.40
0.3.30
0.3.20
0.3.01
0.2.80
0.2.70
0.2.40
0.2.30
0.2.20
0.2.00
0.1.00
0.0.00

Package Sidebar

Install

npm i spun

Weekly Downloads

3

Version

0.11.3

License

MIT

Last publish

Collaborators

  • jsdevel