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

Controller Integration Tests #114

Open
seanjparker opened this issue May 26, 2019 · 3 comments
Open

Controller Integration Tests #114

seanjparker opened this issue May 26, 2019 · 3 comments
Labels
back-end Back-end issues tests Issues related to automated tests

Comments

@seanjparker
Copy link
Contributor

We have a very low test coverage when it comes to the controllers, currently around 27% overall. We need to write more tests for both the user and hardware controllers. The other controllers need new tests to be written.

@seanjparker seanjparker added back-end Back-end issues tests Issues related to automated tests labels May 26, 2019
@kzalys
Copy link
Contributor

kzalys commented May 26, 2019

Why integration tests? We should be able to mock out all of the controllers' dependencies with the new architecture and make unit tests.

@seanjparker
Copy link
Contributor Author

Currently, we have some controller tests, we send HTTP requests to a version of the built application which doesn't just tests the controllers but also hits the services, routers and database. I suppose these would be more like system tests since we are testing every component together. We can also do unit tests for the controllers which is a good idea.

@kzalys
Copy link
Contributor

kzalys commented May 27, 2019

Yeah I think if we're doing new tests for the controllers, they should be unit tests (they're probably quicker to write than e2e tests at this point). Having a few end-to-end tests for the entire system might be a good idea as well but if the controllers are covered by unit tests, I'm not too sure it would make sense investing a lot of effort into end-to-end tests since we'd just be checking the same test cases as in the unit tests.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
back-end Back-end issues tests Issues related to automated tests
Projects
None yet
Development

No branches or pull requests

2 participants