Skip to content

Commit abc768c

Browse files
author
unknown
committed
Updated gruntfile, fixed examples, verified unit tests, updated dockerfile to run unit tests automatically, updated package.json dev dependencies.
1 parent 316ea29 commit abc768c

File tree

356 files changed

+383
-87091
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

356 files changed

+383
-87091
lines changed
Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,12 @@ RUN apt-get -y update && apt-get install -y git && apt-get install -y vim && apt
77
#install necesary npm packages
88
RUN npm install -g mocha
99

10-
#move mock data files
11-
1210
#set the working directory
13-
WORKDIR /source/NodejsBinding
11+
WORKDIR /source
1412

1513
# copy move files script
16-
COPY moveFiles.sh /source/NodejsBinding/moveFiles.sh
17-
RUN chmod 755 /source/NodejsBinding/moveFiles.sh
14+
COPY moveFiles.sh /source/moveFiles.sh
15+
RUN chmod 755 /source/moveFiles.sh
1816

1917
CMD ./moveFiles.sh; /bin/bash
2018

Gruntfile.js

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,15 @@ module.exports = function(grunt) {
55
// Project configuration.
66
grunt.initConfig({
77
clean: ["node_modules", "target"],
8-
nodeunit: {
9-
all: ["tests/**/*Test.js"]
8+
mochaTest: {
9+
test: {
10+
options: {
11+
reporter: 'spec',
12+
quiet: false, // Optionally suppress output to standard out (defaults to false)
13+
clearRequireCache: false // Optionally clear the require cache before running tests (defaults to false)
14+
},
15+
src: ['test/**/*.js']
16+
}
1017
},
1118
eslint: {
1219
lib: {
@@ -73,6 +80,7 @@ module.exports = function(grunt) {
7380
grunt.loadNpmTasks("grunt-eslint");
7481
grunt.loadNpmTasks("grunt-istanbul");
7582
grunt.loadNpmTasks("grunt-jsdoc");
83+
grunt.loadNpmTasks('grunt-mocha-test');
7684

7785
// Task definitions.
7886
// run `grunt <task>` in command line and it will run the sequence in brackets
@@ -81,4 +89,5 @@ module.exports = function(grunt) {
8189
grunt.registerTask("lint", ["eslint"]);
8290
grunt.registerTask("test", ["instrument", "nodeunit", "storeCoverage", "makeReport"]); // with coverage report
8391
grunt.registerTask("nock", ["instrument", "nodeunit:nock", "storeCoverage", "makeReport"]);
92+
grunt.registerTask('default', 'mochaTest');
8493
};

NodejsBinding/test/Api.js

Lines changed: 0 additions & 103 deletions
This file was deleted.

NodejsBinding/test/examples/morphology_compound-components.js

Lines changed: 0 additions & 27 deletions
This file was deleted.

NodejsBinding/test/examples/morphology_han-readings.js

Lines changed: 0 additions & 27 deletions
This file was deleted.

NodejsBinding/test/examples/morphology_parts-of-speech.js

Lines changed: 0 additions & 27 deletions
This file was deleted.

NodejsBinding/test/package.json

Lines changed: 0 additions & 35 deletions
This file was deleted.

NodejsBinding/test/rosetteConstants.js

Lines changed: 0 additions & 52 deletions
This file was deleted.

0 commit comments

Comments
 (0)