-
-
Notifications
You must be signed in to change notification settings - Fork 197
Add tests #35
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 tests #35
Conversation
global._ = require("underscore"); | ||
global.$injector = require("../lib/common/yok").injector; | ||
$injector.require("config", "../lib/config"); | ||
$injector.require("resources", "../lib/resource-loader"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is unneeded. We don't have resource-loader
LoggerStubs, FileSystemStubs and ErrorsStubs are duplicated with icenium-cli. It should be better to be extracted in |
tasks: ['ts:devall'], | ||
tasks: [ | ||
'ts:devall', | ||
'shell:dev_unit_tests' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Mixed tabs and spaces
The stub implementations are test-dependent. It is possible that a stub gets modified due to a specific need when testing a project-specific class. And, it is possible that various stubs exist depending on the test scenario. |
"grunt-ts": "1.11.2", | ||
"mocha": "1.21.4", | ||
"mocha-fibers": "https://github.com/tailsu/mocha-fibers/tarball/master", | ||
"should": "^4.0.4" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
just 4.0.4
:)
squash and go 👍 |
|
||
dev_unit_tests: { | ||
command: [ | ||
"call node_modules\\.bin\\mocha.cmd --ui mocha-fibers --recursive --reporter tap --require test/test-bootstrap.js --timeout 15000 test/" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should make this platform agnostic so I can run it on my Mac as well. Consider using grunt-mocha
for example.
Almost there. 😄 Can you rebase it on master and squash it? |
👍 |
1 similar comment
👍 |
Add mocha and should.js; Add a test; Adjust the grunt and the files accordingly.