@@ -9,19 +9,28 @@ const http = require("http");
10var filepath = null;
10var filepath = null;
12−
12+ .option("--run", "run all the tests")
13 .arguments("<filepath>")
13 .arguments("<filepath>")
14 .action(function (p) {
14 .action(function (p) {
15− filepath = p;
15+ filepath = path.join("./cases/open", p);
17 .parse(process.argv);
17 .parse(process.argv);
19(async () => {
19(async () => {
20− var dir = "tmp";
20+ if (filepath == null) {
21− if (!fs.existsSync(dir)) {
21+ console.log("Open Cases");
22− fs.mkdirSync(dir);
22+ console.log("");
23+ fs.readdirSync("./tests-rendering/cases/open").forEach((file) => {
24+ if (file.endsWith("elm")) {
25+ console.log(" " + file);
25 console.log("Compiling tests");
34 console.log("Compiling tests");
26 let content = await build.compile_to_string({
35 let content = await build.compile_to_string({
27 template: "./tests-rendering/automation/templates/gather-styles.html",
36 template: "./tests-rendering/automation/templates/gather-styles.html",