Permalink
Browse files

Stats usage example

  • Loading branch information...
1 parent cb86ff1 commit 9d11ab851ad59f2b9eb6de3fbba01365b22313b6 Patrick Brosset committed Nov 15, 2012
Showing with 4 additions and 7 deletions.
  1. +3 −6 {test → }/stats.yaml
  2. +1 −1 test/missingfile.js
View
9 test/stats.yaml → stats.yaml
@@ -1,4 +1,5 @@
-source: ../ariatemplates/src
+# Config example to generate stats
+source: ./
destination: ./stats
packages:
stats.html:
@@ -11,8 +12,4 @@ packages:
- ".git/**/*"
- "node_modules/**/*"
- ".*"
- - "*sublime*"
- - "**/*.gif"
- - "**/*.png"
- - "**/*.jpg"
- - "**/*.jpeg"
+ - "*sublime*"
View
2 test/missingfile.js
@@ -1,7 +1,7 @@
var assert = require('assert');
var fs = require('fs');
-describe("packman stack exhaust test", function() {
+describe("packman missing file handling test", function() {
it("should crash on missing file", function(done) {
require("child_process").exec("node packman.js -l 4 -c test/missingfileko.yaml", function(error, stdout, stderr) {
assert.ok(!!error && error.code === 1);

0 comments on commit 9d11ab8

Please sign in to comment.