Skip to content

Introduce mock testing #32

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

Open
wants to merge 22 commits into
base: develop
Choose a base branch
from
Open

Conversation

khalilhkiri
Copy link
Contributor

No description provided.

@BenjaminRodenberg BenjaminRodenberg changed the title update Readme for the ansys 23R2 and upgraded the configs to preciceV3 update Readme for the Ansys Fluent 23R2 and upgraded the configs to preCICE v3.0.0 Jan 24, 2025
@khalilhkiri khalilhkiri changed the title update Readme for the Ansys Fluent 23R2 and upgraded the configs to preCICE v3.0.0 update Readme for the Ansys Fluent 23R2 and upgraded the configs to preCICE v3.1.2 Jan 27, 2025
@khalilhkiri khalilhkiri force-pushed the develop branch 3 times, most recently from e7aaa32 to 198c0ee Compare February 26, 2025 23:34
Copy link
Member

@BenjaminRodenberg BenjaminRodenberg left a comment

Choose a reason for hiding this comment

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

I factored out #33 from this PR to avoid mixing the mocking (which is still WIP and probably needs some time) with the upgrade to preCICE v3 (which is pretty much ready to merge).

Regarding the mocking: General approach looks good.

Will briefly summarize what todos we discussed yesterday in order to keep @IshaanDesai in the loop:

  • put mocked implementation into dedicated folder (e.g. testing/mock/fluent)
  • split mockedFluent.c into testing/mock/fluent/udf.h and testing/mock/fluent/dynamesh_tools.h
  • automatize selection of mocked vs. non-mocked Fluent. There are two possible approaches:
    1. Use macros to switch between the real #include "udf.h" and the mocked #include "testing/mock/fluent/udf.h".
    2. Always use #include "udf.h" and pick the real/mocked version by selecting the respective makefile with the corresponding include paths.

@khalilhkiri please comment if I forgot any important points.

@BenjaminRodenberg BenjaminRodenberg changed the title update Readme for the Ansys Fluent 23R2 and upgraded the configs to preCICE v3.1.2 Introduce mock testing Feb 28, 2025
@IshaanDesai
Copy link
Member

Shall I have a look or this is still WIP?

@KhalilHkiriFT
Copy link

it s still WIP, needs some more adjustments

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

Successfully merging this pull request may close these issues.

4 participants