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

test(gen): make tests more strict and DRY #531

Merged
merged 1 commit into from
Sep 10, 2014

Conversation

kingcody
Copy link
Member

@kingcody kingcody commented Sep 7, 2014

Changes:

  • genFiles(ops) creates an array of expected files based on options given
  • test for generated files on every set of tests
  • test for unexpected files
  • use testExec to be more DRY

Exposes a bug with client/components/socket:
socket.service.js and socket.mock.js are not filtered.
See #530

@kingcody
Copy link
Member Author

kingcody commented Sep 7, 2014

This PR is expected to fail currently. It exposes an issue that was closed in master by #497 and an issue that will be closed by #530.

My hope is to be able to flush out such bugs in the future with the changes this PR implements.

Changes:
- `genFiles(ops)` creates an array of expected files based on options given
- test for generated files on every set of tests
- test for unexpected files
- use testExec to be more DRY

Exposes a bug with `client/components/socket`:
`socket.service.js` and `socket.mock.js` are not filtered.
See angular-fullstack#530
expect(stdout, 'Server tests failed (do you have mongoDB running?) \n' + stdout).to.contain('Done, without errors.');
break;
default:
expect(stderr).to.be.empty;
Copy link
Member Author

Choose a reason for hiding this comment

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

added default to switch

DaftMonk added a commit that referenced this pull request Sep 10, 2014
test(gen): make tests more strict and DRY
@DaftMonk DaftMonk merged commit c16b3c9 into angular-fullstack:canary Sep 10, 2014
@kingcody kingcody deleted the refactor/gen-tests branch September 10, 2014 09:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants