AndreClaude Gendron · Sep 19, 2017 1m read

UnitTest : A Mocking Framework for InterSystems objectscript classes.

It is with great pleasure that the CIUSSS de l'Estrie - CHUS is sharing the mocking framework it developed and presented at the InterSystems Summit 2017.  I will update this post with more detailed instructions in the next few weeks but I wanted to share the code and presentation quickly :

I hope you'll find this useful for your unit testing. We are using this extensively for the last 2 years and it really works well! The repo is public, feel free to submit enhancements!

Do not forget to enable the %UnitTest in your SMP. Instructions are online at

Kind regards

André-Claude Gendron

8 0 9 1,350
Log in or sign up to continue

Hi Andre Claude,

Thank you for sharing your framework, and for great presentation at Global Summit. I'm looking forward to see your detailed article in Developers Community!

We have a documentation available online, you can link directly to it:

Also, video recording of Andre's presentation and PDF of his slides are available at

Hi Andre-Claude,

Thank you for the contribution! We've begun to fold the use of this Mock framework into our daily activities.

I know this post is rather old, but I do have a question. Some of the classes in the repository use classes that are not present in the repo any where (Tests.Fw.Mock.CIsEqualObjectParamValidator for example). If you are willing, would you be able to commit those to the GitLab site?

Again, thank you for sharing this with the rest of us.

Sorry about that, I will commit them in the next few days or perhaps tonight. At the time they were not added to the repo because of dependencies but I'm sure I can arrange something. Plus I'll add the latest development we did at CIUSSSE-CHUS. I'm glad someone else uses it ! 

Kind regards,