Question

Are there any unit testing frameworks for Intersystems Caché? If so, please list some.

Was it helpful?

Solution

Caché has a built-in one - see their documentation of the %UnitTest package. Also, they have a fairly decent tutorial in their documentation that you can reference. Granted, %UnitTest is a bit quirky and not as fully featured as the more well-known xUnit test frameworks, but it's great if you have nothing else.

OTHER TIPS

This isn't exactly what you asked for, but I was in the same situation you are in and I didn't think any existing unit test frameworks were very good, so I ported an early version of JUnit as described in JUnit A Cook's Tour.

Back in the early versions of the original *Unit (I forget the exact name) the author wouldn't distribute source code, but would guide people through writing their own version, so they would feel confident to modify it to suit their needs. I spent at most 1/2 a day on it before I wrote my first unit test in it. I would recommend doing the same.

I'd give you the source code but I don't own it and I don't want to have that conversation with the owner of my company.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top