Comparing version 0.19.1-beta3 to 0.19.1-revision2
@@ -42,3 +42,3 @@ // @flow | ||
return new Promise(function(resolve, reject) { | ||
var proc = spawn(readElmiPath, [], { | ||
var proc = spawn(readElmiPath, ['--for-elm-test'], { | ||
cwd: projectRootDir, | ||
@@ -66,3 +66,3 @@ env: process.env, | ||
try { | ||
let outline = JSON.parse(jsonStr).details.outline; | ||
let outline = JSON.parse(jsonStr).outline; | ||
@@ -108,3 +108,3 @@ if (outline.type !== 'ValidPkg') { | ||
const args = elmVersion ? ['--elm-version=' + elmVersion] : []; | ||
let proc = spawn(readElmiPath, args, { | ||
let proc = spawn(readElmiPath, args.concat(['--for-elm-test']), { | ||
cwd: testRootDir, | ||
@@ -134,3 +134,3 @@ env: process.env, | ||
try { | ||
modules = JSON.parse(jsonStr).internals; | ||
modules = JSON.parse(jsonStr).testModules; | ||
} catch (err) { | ||
@@ -141,25 +141,9 @@ reject('Received invalid JSON from test interface search: ' + err); | ||
var filteredModules = _.flatMap(modules, function(mod) { | ||
var eligible = _.flatMap(_.toPairs(mod.values), function(pair) { | ||
var name = pair[0]; | ||
var annotation = pair[1].annotation; | ||
if ( | ||
annotation.moduleName && | ||
annotation.moduleName.package === 'elm-explorations/test' && | ||
annotation.moduleName.module === 'Test' && | ||
annotation.name === 'Test' | ||
) { | ||
return name; | ||
} else { | ||
return []; | ||
} | ||
}); | ||
// Must have at least 1 value of type Test. Otherwise ignore this module. | ||
if (eligible.length > 0) { | ||
if (mod.tests.length > 0) { | ||
return [ | ||
{ | ||
moduleName: mod.module, | ||
moduleName: mod.moduleName, | ||
path: path.resolve(path.join(testRootDir, mod.path)), | ||
tests: eligible, | ||
tests: mod.tests, | ||
}, | ||
@@ -166,0 +150,0 @@ ]; |
{ | ||
"name": "elm-test", | ||
"version": "0.19.1-beta3", | ||
"version": "0.19.1-revision2", | ||
"description": "Run elm-test suites.", | ||
@@ -11,5 +11,5 @@ "main": "elm-test.js", | ||
"flow": "flow", | ||
"test": "flow check && npm run prettier:check && mocha tests && cd elm && node ../bin/elm-test", | ||
"prettier:check": "prettier \"lib/**/*.js\" \"tests/**/*.js\" --list-different --parser flow", | ||
"prettier:write": "prettier \"lib/**/*.js\" \"tests/**/*.js\" --parser flow --write" | ||
"test": "flow check && npm run format:check && mocha tests && cd elm && node ../bin/elm-test", | ||
"format:check": "prettier \"lib/**/*.js\" \"tests/**/*.js\" --list-different --parser flow && elm-format elm --validate", | ||
"format:write": "prettier \"lib/**/*.js\" \"tests/**/*.js\" --parser flow --write && elm-format elm --yes" | ||
}, | ||
@@ -35,10 +35,10 @@ "repository": { | ||
"dependencies": { | ||
"chalk": "2.4.2", | ||
"chokidar": "3.2.0", | ||
"cross-spawn": "7.0.0", | ||
"elmi-to-json": "1.2.0", | ||
"chalk": "3.0.0", | ||
"chokidar": "3.3.0", | ||
"cross-spawn": "7.0.1", | ||
"elmi-to-json": "1.3.0", | ||
"find-parent-dir": "^0.3.0", | ||
"firstline": "2.0.2", | ||
"fs-extra": "8.1.0", | ||
"glob": "7.1.4", | ||
"glob": "7.1.6", | ||
"lodash": "4.17.15", | ||
@@ -50,4 +50,4 @@ "minimist": "^1.2.0", | ||
"supports-color": "7.1.0", | ||
"temp": "0.9.0", | ||
"which": "1.3.1", | ||
"temp": "0.9.1", | ||
"which": "2.0.1", | ||
"xmlbuilder": "^13.0.2" | ||
@@ -58,10 +58,11 @@ }, | ||
"byline": "^5.0.0", | ||
"elm": "0.19.0-bugfix6", | ||
"flow-bin": "0.108.0", | ||
"mocha": "6.2.1", | ||
"elm": "0.19.1-3", | ||
"elm-format": "0.8.2", | ||
"flow-bin": "0.111.3", | ||
"mocha": "6.2.2", | ||
"prettier": "^1.18.2", | ||
"shelljs": "0.8.3", | ||
"strip-ansi": "^5.2.0", | ||
"strip-ansi": "^6.0.0", | ||
"xml2js": "0.4.22" | ||
} | ||
} |
@@ -21,3 +21,3 @@ # node-test-runner [![Version](https://img.shields.io/npm/v/elm-test.svg)](https://www.npmjs.com/package/elm-test) [![Travis build Status](https://travis-ci.org/rtfeldman/node-test-runner.svg?branch=master)](http://travis-ci.org/rtfeldman/node-test-runner) [![AppVeyor Build status](https://ci.appveyor.com/api/projects/status/f2qymrpgdfsad62w/branch/master?svg=true)](https://ci.appveyor.com/project/rtfeldman/node-test-runner/branch/master) | ||
### Comand Line Arguments | ||
### Command Line Arguments | ||
@@ -24,0 +24,0 @@ #### `install` |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
141180
9
1969
+ Addedansi-styles@4.3.0(transitive)
+ Addedchalk@3.0.0(transitive)
+ Addedchokidar@3.3.0(transitive)
+ Addedcolor-convert@2.0.1(transitive)
+ Addedcolor-name@1.1.4(transitive)
+ Addedcross-spawn@7.0.1(transitive)
+ Addedelmi-to-json@1.3.0(transitive)
+ Addedglob@7.1.6(transitive)
+ Addedreaddirp@3.2.0(transitive)
+ Addedshebang-command@2.0.0(transitive)
+ Addedshebang-regex@3.0.0(transitive)
+ Addedtemp@0.9.1(transitive)
+ Addedwhich@2.0.1(transitive)
- Removedansi-styles@3.2.1(transitive)
- Removedchalk@2.4.2(transitive)
- Removedchokidar@3.2.0(transitive)
- Removedcolor-convert@1.9.3(transitive)
- Removedcolor-name@1.1.3(transitive)
- Removedcross-spawn@7.0.0(transitive)
- Removedelmi-to-json@1.2.0(transitive)
- Removedescape-string-regexp@1.0.5(transitive)
- Removedglob@7.1.4(transitive)
- Removedhas-flag@3.0.0(transitive)
- Removedreaddirp@3.1.3(transitive)
- Removedsupports-color@5.5.0(transitive)
- Removedtemp@0.9.0(transitive)
Updatedchalk@3.0.0
Updatedchokidar@3.3.0
Updatedcross-spawn@7.0.1
Updatedelmi-to-json@1.3.0
Updatedglob@7.1.6
Updatedtemp@0.9.1
Updatedwhich@2.0.1