11 lines
484 B
JavaScript
11 lines
484 B
JavaScript
var fs = require("fs");
|
|
var execSync = require("child_process").execSync;
|
|
var path = require("path");
|
|
var testDir = path.join(__dirname, "test");
|
|
var binPath = path.join(__dirname, "..", "..", "node_modules", ".bin");
|
|
var elmTestPath = path.join(binPath, "elm-test");
|
|
var elmMakePath = path.join(binPath, "elm-make");
|
|
|
|
execSync(elmMakePath + " TestRunner.elm --yes --output /dev/null", { cwd: testDir });
|
|
execSync(elmTestPath + " TestRunner.elm", { cwd: testDir, stdio: "inherit" });
|