OED icon indicating copy to clipboard operation
OED copied to clipboard

further Obvius testing

Open huss opened this issue 4 years ago • 0 comments

Is your feature request related to a problem? Please describe.

We should have tests to verify that Obvius uploads store the correct information in the database.

Describe the solution you'd like

src/server/test/db/configfileTests.js makes sure the parsing of an Obvius configuration file is correct. However, it does not verify that an actual upload puts the correct data into the database. It should create a meter with the correct name, type, note, etc.

src/server/test/db/loadLogfileToReadingsTests.js similarly checks the parsing and some DB info but not that the loaded readings are correct.

Describe alternatives you've considered

Manually testing was recently done but this is not the correct long-term solution. We missed a bug in OED from a lack of automated tests.

Additional context

@huss can help a developer understand what should happen. Looking at the database after an upload will also show what is expected.

huss avatar Nov 21 '21 17:11 huss