Skip to content

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

Merged
merged 1 commit into from
Aug 14, 2014
Merged

Add tests #35

merged 1 commit into from
Aug 14, 2014

Conversation

ErjanGavalji
Copy link
Contributor

Add mocha and should.js; Add a test; Adjust the grunt and the files accordingly.

global._ = require("underscore");
global.$injector = require("../lib/common/yok").injector;
$injector.require("config", "../lib/config");
$injector.require("resources", "../lib/resource-loader");
Copy link
Contributor

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

@Fatme
Copy link
Contributor

Fatme commented Aug 12, 2014

LoggerStubs, FileSystemStubs and ErrorsStubs are duplicated with icenium-cli. It should be better to be extracted in common-lib

tasks: ['ts:devall'],
tasks: [
'ts:devall',
'shell:dev_unit_tests'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Mixed tabs and spaces

@ErjanGavalji
Copy link
Contributor Author

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"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just 4.0.4 :)

@Fatme
Copy link
Contributor

Fatme commented Aug 12, 2014

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/"
Copy link

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.

@ligaz
Copy link

ligaz commented Aug 13, 2014

Almost there. 😄 Can you rebase it on master and squash it?

@ligaz
Copy link

ligaz commented Aug 14, 2014

👍

1 similar comment
@teobugslayer
Copy link
Contributor

👍

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.

4 participants