Testing: create test for tempSensorMockup #157
Labels
No labels
_CRITICAL_
API
app
backEnd
Blocked, waiting for further changes
bug
cleanup
close
design
duplicate
enhancement
feature request
frontEnd
help wanted
invalid
low priority
needs input
needs review
project documentation
question
research
reviewed
script
security
SQL
style
testing
topLevel
wontfix
No milestone
No project
3 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Andras/BoundlessFlowCampus2K#157
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Create tests for the cs file "Program.cs"
Branch (pull-request) is closed and reviewed, should this issue still exist?
Attempted to run test but test was unable to connect with the tempSensorMockup for some reason.

Reviewed written tests and code:
There is only one test, and all it does is validate that the data structure actually contains sensorId, timestamp and temperature. However, it does not establish the correctness of the datastructure, as no testing is performed to ensure that there are is extraneous data present, aka tags/data that shouldn't be there.
There also exists no tests to validate the actual data generated by the tempSensorMockup for either correct value types or allowed values and/or characters. I.E if temperature is inserted in place of the timestamp and vice versa, insertion of special characters, etc.
Recommendations:
This has been merged and a issue to extend the testing scope has been created #234