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

Infrastructure for integration tests + example test #105

Open
kaiboesefeldt opened this issue Apr 22, 2020 · 0 comments
Open

Infrastructure for integration tests + example test #105

kaiboesefeldt opened this issue Apr 22, 2020 · 0 comments
Assignees
Labels
refactoring This is a change of the code structure, which does not change functionality. test New auto-tests or changes in the test infrastructure

Comments

@kaiboesefeldt
Copy link

Branch: requirement_tests
The target is to be able to start a large part of the CovidWatch app in a JUnit test. Those parts of the system, which cannot be run in such a test must be mocked, e.g. GUI, access to BLE, database, backend, must be mocked. Then JUnit tests can be written that trigger events and check results at the mocked system border.
To be able to exchange these components by mocks, they must be instantiated by Koin modules and solely retrieved via Koin. This is the first refactoring step. The target is to be able to run the CovidWatch app in a JUnit test without crash, but just doing nothing.
In a second step, one example integration test shall be written which illustrates how such tests work.

@kaiboesefeldt kaiboesefeldt added refactoring This is a change of the code structure, which does not change functionality. test New auto-tests or changes in the test infrastructure labels Apr 22, 2020
@kaiboesefeldt kaiboesefeldt self-assigned this Apr 22, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
refactoring This is a change of the code structure, which does not change functionality. test New auto-tests or changes in the test infrastructure
Projects
None yet
Development

No branches or pull requests

4 participants