ngageoint / geopackage-js

GeoPackage JavaScript Library
http://ngageoint.github.io/geopackage-js/
MIT License
310 stars 78 forks source link

browser-test target fails #113

Closed bradh closed 5 years ago

bradh commented 6 years ago

The first problem is that the browserify-istanbul dev dependency is missing. Fairly easy fix.

However, once getting past that, this is a bit more confusing:

bradh@ubuntu1710:~/geopackage-js$ yarn browser-test
yarn run v1.6.0
$ browserify -t browserify-istanbul ./test/test.js --standalone tests --exclude sqlite3 --exclude inquirer -o bundle/test.bundle.js -d
$ ./test/cli
events.js:183
      throw er; // Unhandled 'error' event
      ^

Error: spawn node_modules/.bin/mocha-phantomjs ENOENT
    at _errnoException (util.js:1022:11)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:190:19)
    at onErrorNT (internal/child_process.js:372:16)
    at _combinedTickCallback (internal/process/next_tick.js:138:11)
    at process._tickCallback (internal/process/next_tick.js:180:9)
    at Function.Module.runMain (module.js:695:11)
    at startup (bootstrap_node.js:188:16)
    at bootstrap_node.js:609:3
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

Possibly it doesn't like my VM environment, but its hard to see.

danielbarela commented 6 years ago

I think browser-test was a failed attempt to run the browser tests on the command line that probably should have been removed. I run the browser tests by running build-browser-test and then starting a local http server from the root directory and navigating to http:///test/index.html

However, if you can get the browser tests working on the command line that would be great.

danielbarela commented 5 years ago

Any update on this @bradh or is this OBE?

bradh commented 5 years ago

I haven't done any work on it.