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

Add tests for Energy #90

Merged
merged 4 commits into from
Oct 15, 2021
Merged

Add tests for Energy #90

merged 4 commits into from
Oct 15, 2021

Conversation

DurgNomis-drol
Copy link
Owner

@DurgNomis-drol DurgNomis-drol commented Oct 15, 2021

This should add some important tests that covers scenarios where different combinations of data is available.

@DurgNomis-drol DurgNomis-drol requested a review from joro75 October 15, 2021 17:50
@DurgNomis-drol DurgNomis-drol changed the title Adds tests for Energy Add tests for Energy Oct 15, 2021
Copy link
Collaborator

@joro75 joro75 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wow, that is some good testing👍
At least the conversion of this data is extensively tested.

@DurgNomis-drol
Copy link
Owner Author

@joro75 That was the goal. It was getting harder and harder to make sure no bugs slipped in every time I added a new feature or supported a new model. 😃

@DurgNomis-drol DurgNomis-drol merged commit 28a1933 into master Oct 15, 2021
@DurgNomis-drol DurgNomis-drol deleted the tests-energy branch October 15, 2021 20:13
@joro75
Copy link
Collaborator

joro75 commented Oct 15, 2021

Yes, that is also one of the advantages of having unittests. It shows/explains what the code is doing, and what the expected outcome of the code-function is.

@DurgNomis-drol
Copy link
Owner Author

I have never used unittests before and it was a daunting task to start learning it.

The next one is for HVAC data, but that is also pretty complicated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants