-
Notifications
You must be signed in to change notification settings - Fork 12
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
Unit tests need a hook to prefill the objects/states DB #14
Comments
Hi, How I fill |
By default the tests take what is defined in io-package.json |
It`s not appropriate, because I need test following cases:
I think that adapter should be create in each test suite (for example in describe->beforeEach may be) or is there another way to test my adapter |
So you want to dynamically change the adapter config before each test? |
Yes. I need configure my adapter or emit command from low-level device (via mock) before each test. |
Also needed in some cases where default values can not be used for testing ... |
There is now the property |
https://travis-ci.org/Apollon77/ioBroker.asterisk/jobs/504447452
https://travis-ci.org/Apollon77/ioBroker.tankerkoenig/jobs/504453662#L672
The text was updated successfully, but these errors were encountered: