Unit Tests with FoxMock
This was presented by Christof Wollenhaupt at Virtual Fox Fest 2024: https://virtualfoxfest.com The idea behind unit tests is to test units as small as possible at the earliest time. With small sample classes, this works beautifully. When applying unit tests to a real project, especially existing ones, we quickly discover how many complex interdependencies there are in our code. Most VFP applications use global application objects, and most objects rely on others to perform their duty. FoxMock is a mockup framework mainly for unit tests. With FoxMock you can dynamically create objects with methods, properties, subobjects and—most importantly—behavior and validation. By replacing all dependencies of the tested object with mock objects, you can restrict the test to a single object without going through a heavy redesign of the entire app.
Download
0 formatsNo download links available.