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

Remove external service dependencies when testing #4

Open
allanlasser opened this issue Jan 6, 2017 · 0 comments
Open

Remove external service dependencies when testing #4

allanlasser opened this issue Jan 6, 2017 · 0 comments

Comments

@allanlasser
Copy link
Contributor

By default, Feathers expects services to be available when testing. This makes testing harder and, ideally, tests should have zero external dependencies. There's a few ways we could solve this:

  • perhaps the easiest is to use Node to execute the command docker-compose start postgres redis before any tests run, and execute docker-compose stop postgres redis after all tests have run.
  • Another way would be to find a way to remove this dependency, either by mocking the sequelize library methods or by creating a test-specific Feathers app, rather than using the dev/prod app.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant