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

Question about Integration Testing #1

Open
zoomore opened this issue Jul 6, 2018 · 0 comments
Open

Question about Integration Testing #1

zoomore opened this issue Jul 6, 2018 · 0 comments

Comments

@zoomore
Copy link

zoomore commented Jul 6, 2018

Hi, thank you for your manning videos, it is a great course.
I am having a trouble with integration testing in ch3 since you let the js function query the real DynamoDb and expect to return 8 restaurants.
Now if I insert more restaurants I will, of course, break the test.

  • What is your thought on this?
  • Should we weaken the test and only test if more than one restaurant appear?

I guess an easy way around this would be to set up a specific stage for the integration tests but then I will rely on some kind of fixture that I will insert in the database and then run all my tests.
I have always found it difficult to work with testing fixtures since changing the fixtures themselves will break most of the tests.

  • Is using fixture on a testing stage the way to go?

I think this chapter is missing a unit test video that will mock the getRestaurants function.

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

No branches or pull requests

1 participant