0.3.11 • Published 7 years ago

guide-automation v0.3.11

Weekly downloads
1
License
MIT
Repository
-
Last release
7 years ago

guide-automation

A helper library for writing scripts to run through guides. Allows you to build an application and test it along the way.

Install

npm install guide-automation

Usage

guide-automation consists of helpers for testing parts of guides, as well as a queue to make sure tests are written in order. A typical usage looks like:

var guide = require("guide-automation")();

guide.step("Install donejs", function(){
	return guide.runCommand("npm", "install donejs -g".split(" "));
});

guide.step("Start donejs develop", function(){
	process.chdir("donejs-chat");
	var child = this.canServe = guide.executeCommand("donejs", ["develop"]).childProcess;

	var server = streamWhen(child.stdout, /can-serve starting on/);
	var liveReload = streamWhen(child.stderr, /Live-reload server/);
	return Promise.all([server, liveReload]);
});

guide.test(function(){
	return guide.nodeTest(__dirname + "/steps/3-donejs-develop/test.js");
});

API

License

MIT

0.3.11

7 years ago

0.3.10

7 years ago

0.3.9

7 years ago

0.3.8

7 years ago

0.3.7

7 years ago

0.3.6

7 years ago

0.3.5

7 years ago

0.3.4

7 years ago

0.3.3

7 years ago

0.3.2

8 years ago

0.3.1

8 years ago

0.3.0

8 years ago

0.2.6

8 years ago

0.2.5

8 years ago

0.2.3

8 years ago

0.2.2

8 years ago

0.2.1

8 years ago

0.2.0

8 years ago

0.1.14

8 years ago

0.1.13

8 years ago

0.1.12

8 years ago

0.1.11

8 years ago

0.1.10

8 years ago

0.1.9

8 years ago

0.1.8

8 years ago

0.1.7

8 years ago

0.1.6

8 years ago

0.1.5

8 years ago

0.1.4

8 years ago

0.1.3

8 years ago

0.1.2

8 years ago

0.1.1

8 years ago

0.1.0

8 years ago

0.0.5

8 years ago

0.0.4

8 years ago

0.0.3

8 years ago

0.0.2

8 years ago

0.0.1

8 years ago