|July 31, 2015, 06:33||
Has no-one created unit tests for OpenFOAM with mocks?
Join Date: Jun 2015
Posts: 3Rep Power: 2
my supervisor and I are writing a library to extend twoPhaseEulerFoam and we have a suite of unit tests for our classes. One of the trickiest bits has been handling depencencies to OpenFOAM classes, in particular as several of them appear to require a mesh to be constructed.
So far we have managed by separating some of the classes that interact with OF with some of those that do our calculations (so the latter are testable). But we believe the 'proper' design would be to have mocks of OF; as far as I can tell, such do not exist.
Is this correct? Might start writing mocks in time, but would like to make sure this would not be duplicating any effort.
Last edited by Kojirion; July 31, 2015 at 09:12.
|Thread||Thread Starter||Forum||Replies||Last Post|
|[ICEM] Merge created block resulting in not connected mesh||imamwfgf||ANSYS Meshing & Geometry||2||October 20, 2013 06:22|
|OpenFOAM 1.7.1 installation problem on OpenSUSE 11.3||flakid||OpenFOAM Installation||16||December 28, 2010 09:48|
|Installation OF1.5-dev||ttdtud||OpenFOAM Installation||46||May 5, 2009 02:32|
|Regarding FoamX running Kindly help out||hariya03||OpenFOAM Pre-Processing||0||April 18, 2008 04:26|
|CFX4.3 -build analysis form||Chie Min||CFX||5||July 12, 2001 23:19|