-
Notifications
You must be signed in to change notification settings - Fork 80
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
Tests for mqtt interactions #992
Tests for mqtt interactions #992
Conversation
Signed-off-by: Hasan Eroglu <hasanheroglu@gmail.com>
Signed-off-by: Hasan eroglu <hasanheroglu@gmail.com>
Signed-off-by: Hasan eroglu <hasanheroglu@gmail.com>
Signed-off-by: Hasan eroglu <hasanheroglu@gmail.com>
Signed-off-by: Hasan eroglu <hasanheroglu@gmail.com>
Signed-off-by: Hasan eroglu <hasanheroglu@gmail.com>
Tests were failing for |
Signed-off-by: Hasan eroglu <hasanheroglu@gmail.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some inputs:
- The testing file is called mqtt-client-subscribe-test.integration.ts : the new tests are about writing and invoking actions. We have two options: rename the file to mqtt-client-test.integration.ts and use a describe to group the different tests OR move the new tests in a new file.
- You tested for different input types which is great, but there is a lot of duplicated code. Can you try to refactor it to have less code duplicated?
- I left some minor comments below about timeouts and failing.
packages/binding-mqtt/test/mqtt-client-subscribe-test.integration.ts
Outdated
Show resolved
Hide resolved
packages/binding-mqtt/test/mqtt-client-subscribe-test.integration.ts
Outdated
Show resolved
Hide resolved
Signed-off-by: Hasan eroglu <hasanheroglu@gmail.com>
Note: I noticed you merged in master which was not a good idea since the testing is broken at the moment but we are about to fix that, see #995 |
FYI: #995 has been merged and merging in master again should run the test workflow again. |
Co-authored-by: Jan Romann <jan.romann@uni-bremen.de>
Co-authored-by: Jan Romann <jan.romann@uni-bremen.de>
Signed-off-by: Hasan Eroglu <hasanheroglu@gmail.com>
…/thingweb.node-wot into tests-for-mqtt-interactions
…/thingweb.node-wot into tests-for-mqtt-interactions
Signed-off-by: Hasan Eroglu <hasanheroglu@gmail.com>
Codecov Report
❗ Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the Github App Integration for your organization. Read more. @@ Coverage Diff @@
## master #992 +/- ##
==========================================
+ Coverage 74.64% 75.79% +1.15%
==========================================
Files 72 72
Lines 14882 14856 -26
Branches 1412 1429 +17
==========================================
+ Hits 11108 11260 +152
+ Misses 3741 3563 -178
Partials 33 33
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Much better now! thank you! I think we can move on and fix the details in the future.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's good to see code coverage improve 👍
No description provided.