-
Notifications
You must be signed in to change notification settings - Fork 89
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
Feature/energymanagement unit tests #1015
Conversation
b0ab335
to
084c801
Compare
084c801
to
e00f7d6
Compare
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.
should this file end with " copy.json" (including the space?)
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.
The JSONs will be entirely rewritten in PR1033 again, so leaving as is for now
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.
should this file end with " copy.json" (including the space?)
return optimized_values; | ||
} | ||
|
||
} // namespace module |
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.
missing newline, in general the new json files are missing a newline at the end as well
Essentially input and expected output of the run_optimizer function can be specified in a single JSON file. One unit test per file will programmatically be added to compare the output with the expected output and show a JSON diff if the test fails. Several new test cases are added and the previous C++ based unit tests are converted to JSON. Signed-off-by: Cornelius Claussen <[email protected]> Signed-off-by: Andreas Heinrich <[email protected]> Signed-off-by: Piet Gömpel <[email protected]>
e00f7d6
to
f8e39de
Compare
Describe your changes
This PR introduces new JSON based tests for EnergyManager.
Essentially input and expected output of the run_optimizer function can be specified in a single JSON file.
One unit test per file will programmatically be added to compare the output with the expected output and show a JSON diff if the test fails.
Several new test cases are added and the previous C++ based unit tests are converted to JSON.
Issue ticket number and link
Checklist before requesting a review