diff --git a/bin/create-elm-app-cli.js b/bin/create-elm-app-cli.js old mode 100644 new mode 100755 diff --git a/bin/elm-app-cli.js b/bin/elm-app-cli.js old mode 100644 new mode 100755 index 9f82b864..290d696f --- a/bin/elm-app-cli.js +++ b/bin/elm-app-cli.js @@ -30,9 +30,18 @@ switch (script) { break; case 'test': { + let args = []; + Object.keys(argv || {}).forEach(function(key) { + if (key !== '_' && key !== 'compiler') { + args = args.concat([`--${key}`, argv[key]]); + } + }); + + args = args.concat(['--compiler', path.normalize(executablePaths['elm-make'])]); + const cp = spawn.sync( path.resolve(__dirname, '..', 'node_modules/elm-test/bin/elm-test'), - [ '--compiler', path.normalize(executablePaths['elm-make']) ], + args, { stdio: 'inherit' } );