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 unit test -- short-term storage cumulation constraints #2563

Draft
wants to merge 5 commits into
base: develop
Choose a base branch
from

Conversation

a-zakir
Copy link
Contributor

@a-zakir a-zakir commented Jan 7, 2025

No description provided.

@a-zakir a-zakir changed the title add unit test -- st-term cumulation constraints add unit test -- short-term storage cumulation constraints Jan 8, 2025
Copy link
Member

@flomnes flomnes left a 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.)

Comment on lines +1 to +21
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)
Copy link
Member

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)

Copy link

sonarqubecloud bot commented Jan 9, 2025

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

Successfully merging this pull request may close these issues.

2 participants