-
Notifications
You must be signed in to change notification settings - Fork 24
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 unit test -- short-term storage cumulation constraints #2563
base: develop
Are you sure you want to change the base?
add unit test -- short-term storage cumulation constraints #2563
Conversation
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.
Nice job ! You might want to test other constraint types (netting, etc.)
set(EXECUTABLE_NAME constraints_builder) | ||
add_executable(${EXECUTABLE_NAME}) | ||
|
||
target_sources(${EXECUTABLE_NAME} | ||
PRIVATE | ||
constraints_builder.cpp | ||
) | ||
|
||
target_link_libraries(${EXECUTABLE_NAME} | ||
PRIVATE | ||
Boost::unit_test_framework | ||
model_antares | ||
antares-solver-simulation | ||
) | ||
|
||
# Storing tests-ts-numbers under the folder Unit-tests in the IDE | ||
set_target_properties(${EXECUTABLE_NAME} PROPERTIES FOLDER Unit-tests) | ||
|
||
add_test(NAME constraints_builder COMMAND ${EXECUTABLE_NAME}) | ||
|
||
set_property(TEST constraints_builder PROPERTY LABELS unit) |
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.
Use the add_boost_test
macro (see #2545)
src/tests/src/solver/optimisation/constraints/constraints_builder.cpp
Outdated
Show resolved
Hide resolved
Quality Gate passedIssues Measures |
No description provided.