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

Extending Integration tests #363

Merged
merged 1 commit into from
Jan 22, 2017
Merged

Extending Integration tests #363

merged 1 commit into from
Jan 22, 2017

Conversation

nickbalestra
Copy link
Contributor

Added complex integration test to cover situations like the one reported with #358

@nickbalestra nickbalestra changed the title Added complex integration test Extending Integration tests Jan 21, 2017
@nickbalestra nickbalestra force-pushed the integrationTests branch 2 times, most recently from cc43773 to 5a073af Compare January 21, 2017 17:06
});

it('should save compiled data provider', function(done){
packageServerScript(
Copy link
Member

@matteofigus matteofigus Jan 21, 2017

Choose a reason for hiding this comment

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

what if we bring all of this stuff inside the beforeEach and we save the results (compiledContent + error) into a variable, so then we can have more individual "it" (sync) tests that can explain a little bit better what we are doing?
e.g. first test we have no error, then test wrapping correctly works for do, another for the for, and another one for the while? I think it would improve readability and maintainability

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good point!

@nickbalestra
Copy link
Contributor Author

@matteofigus updated the tests, let me know what you think

@matteofigus matteofigus merged commit 11eaac4 into master Jan 22, 2017
@matteofigus matteofigus deleted the integrationTests branch January 22, 2017 10:42
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.

2 participants