forked from sharedstreets/mobility-metrics
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
748043f
commit e89173d
Showing
8 changed files
with
130 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
const { test } = require("tap"); | ||
const { exec } = require("child_process"); | ||
const path = require("path"); | ||
const rimraf = require("rimraf"); | ||
|
||
test("cli", { timeout: 1200000 }, async t => { | ||
const bin = path.join(__dirname, "../src/cli.js"); | ||
const config = path.join(__dirname, "./fixtures/cli/config.json"); | ||
const cache = path.join(__dirname, "./fixtures/cli/cache"); | ||
const public = path.join(__dirname, "./fixtures/cli/public"); | ||
|
||
rimraf.sync(cache); | ||
rimraf.sync(public); | ||
|
||
var cmd = | ||
"node " + | ||
bin + | ||
" --config " + | ||
config + | ||
" --public " + | ||
public + | ||
" --cache " + | ||
cache + | ||
" --day 2019-07-15"; | ||
console.log(cmd); | ||
const { error, stdout, stderr } = await exec(cmd); | ||
|
||
/* | ||
//console.log(error); | ||
for await (let chunk of stderr) { | ||
//console.log(chunk.toString()); | ||
} | ||
for await (let chunk of stdout) { | ||
//console.log(chunk.toString()); | ||
}*/ | ||
|
||
t.done(); | ||
}); |
Binary file not shown.
Binary file not shown.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.