• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

yeoman / generator / 481
94%

Build:
DEFAULT BRANCH: master
Ran 26 Nov 2013 08:52PM UTC
Jobs 2
Files 21
Run time –
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
481

Pull #383

travis-ci

artoale
Abstract I/O interface to support non-cli env.

An `Environment` object, when instantiated, now expects an (optional)
`Adapter` (the default adapter being `TerminalAdapter`, for CLI I/O
sinteraction). This abstraction layer allow for `Environment` clients
other than `yo` to provide their own I/O mechanics (e.g GUI inside of
a code editor plugin for yeoman).

An `Adapter` is an object wich exposes at least 3 methods:

* `prompt` - an [Inquirer.js](https://github.com/SBoudrias/Inquirer.js/)-like
function for collecting user input (available as Base.prototype.prompt)
to generators
* `diff` - function called to show the difference between two strings
* `log` - it's both a function and an object. See (lib/util/log.js)[lib/util/log.js]
for details of the default implementation and which methods are to be
supported.
Pull Request #383: Abstract Base.prototype.prompt to support non-cli env.

1021 of 1139 relevant lines covered (89.64%)

135.34 hits per line

Uncovered Existing Lines

Lines Coverage ∆ File
7
100.0
/home/travis/build/yeoman/generator/lib/env/index.js
9
100.0
/home/travis/build/yeoman/generator/lib/base.js
18
100.0
/home/travis/build/yeoman/generator/lib/actions/actions.js
18
100.0
/home/travis/build/yeoman/generator/lib/util/conflicter.js
Jobs
ID Job ID Ran Files Coverage
1 481.1 (DEBUG="generators:*") 26 Nov 2013 08:52PM UTC 0
89.64
Travis Job 481.1
2 481.2 (DEBUG="generators:*") 26 Nov 2013 08:52PM UTC 0
89.64
Travis Job 481.2
Source Files on build 481
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #481
  • Pull Request #383
  • PR Base - master (#479)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc