Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a coherent unit test framework #163

Merged
merged 3 commits into from
Dec 27, 2016
Merged

Conversation

dmitrizagidulin
Copy link
Contributor

Re-adding @dan-f's PR #156, which seems to have gone missing in master (stray push -f?).

@dmitrizagidulin
Copy link
Contributor Author

In testing this branch, I did an npm install followed by npm test. This is the error I got:

$ npm test

> [email protected] test /Users/dmitri/code/_Solid/rdflib.js
> npm run test:unit && make test

> [email protected] test:unit /Users/dmitri/code/_Solid/rdflib.js
> mocha --growl --require babel-register tests/unit/**-test.js

module.js:440
    throw err;
    ^
Error: Cannot find module 'diff'
    at Function.Module._resolveFilename (module.js:438:15)
    at Function.Module._load (module.js:386:25)
    at Module.require (module.js:466:17)
    at require (internal/module.js:20:19)
    at Object.<anonymous> (/Users/dmitri/code/_Solid/rdflib.js/node_modules/mocha/lib/reporters/base.js:8:12)
    at Module._compile (module.js:541:32)
    at Object.Module._extensions..js (module.js:550:10)
    at Module.load (module.js:456:32)
    at tryModuleLoad (module.js:415:12)
    at Function.Module._load (module.js:407:3)

Am I missing anything obvious?

@dmitrizagidulin
Copy link
Contributor Author

Never mind, was a one-off issue due to an npm linked lib. Sorted it out, npm test runs smoothly now. Merging.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants