You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: 05_testing_and_ci/boost_testing_precice_demo.md
+6-6Lines changed: 6 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -17,7 +17,7 @@ Look around preCICE in the terminal + text editor.
17
17
- Clear separation in preCICE: integration tests only directly use API of preCICE.
18
18
- They are located in `tests` folder.
19
19
- Look at `tests/serial/initialize-data/Explicit.cpp`:
20
-
- Explain `PRECICE_TEST_SETUP` and how it is used: test is run on two MPI ranks living in seperate MPI communicators.
20
+
- Explain `PRECICE_TEST_SETUP` and how it is used: test is run on two MPI ranks living in separate MPI communicators.
21
21
- Information can be accessed via `context`.
22
22
- More information: [blog post on bssw.io on multiphysics testing](https://bssw.io/blog_posts/overcoming-complexity-in-testing-multiphysics-coupling-software)
23
23
@@ -30,11 +30,11 @@ Look around preCICE in the terminal + text editor.
30
30
- Sometimes, we want white-box testing:
31
31
- Why? Access and/or check private members
32
32
- Could `friend` the test, but this quickly gets out of hand
33
-
- Example: class `src/time/Waveform.hpp`
34
-
- Has public and private members. We want to check the private members in tests.
35
-
- Does not `friend` every test, but only `WaveformFixture`
36
-
-`src/testing/WaveformFixture.hpp` has functions to access private members
37
-
- This fixture is used in many tests in `src/time/tests/WaveformTests` (but not handed over to test like normal UTF fixtures)
33
+
- Example: class `src/precice/implDataContext.hpp`
34
+
- Has public and protected or private members. We want to check the protected members in tests.
35
+
- Does not `friend` every test, but only `DataContextFixture`
36
+
-`src/testing/DataContextFixture.hpp` has functions to access protected members
37
+
- This fixture is used in many tests in `src/precice/tests/DataContextTest` (but not handed over to test like normal UTF fixtures)
-**60** min.: [Boost.Test and CTest in Action: SideMade Demo](https://github.com/Simulation-Software-Engineering/Lecture-Material/blob/main/05_testing_and_ci/boost_testing_sidemade_demo.md)
140
+
-**10** min.: [Boost.Test in the Real World: preCICE Demo](https://github.com/Simulation-Software-Engineering/Lecture-Material/blob/main/05_testing_and_ci/boost_testing_precice_demo.md)
141
+
142
+
## 13.2 – Wed, January 28, 2026
143
+
144
+
-**90** min.: [Boost.Test and CTest in Action: SideMade Exercise](https://github.com/Simulation-Software-Engineering/Lecture-Material/blob/main/05_testing_and_ci/boost_testing_exercise.md)
0 commit comments