The benefits of unit tests are systematic and obvious.
Recently an IT manager was telling me about his experience. His team consists of 12 developers and 2 project managers. Before, 3 engineers dedicated themselves to testing applications.
With an average project of
400 windows, the time dedicated to testing before the release of a new version was of 3 weeks.
Since they started using WINDEV unit tests, a version's test validation time has gone down to one or maybe 2 days tops!
The team is more responsive if a regression is detected.
The gain is obvious, it changes the team's life and it's more satisfying for them. They can now concentrate on more creative tasks.
Here's how to do it!When you're developing and integrating new features, you have to make changes in procedures and windows whose good performance has been certified over several versions. These procedures and windows are used pretty much on a daily basis by your users and clients. Therefore it's necessary to pay special attention to their smooth functioning, track any regression that a new version might have brought in and reduce any defect related costs.
WINDEV brings us a precious help in this procedure aiming at making our new versions more reliable, thanks to its “Unit Test Editor”.
The Unit Test Editor lets you save, from the creation of your windows and procedures, test scenarios in an intuitive manner.
Let's take the example of a window:
To start saving a test, all you have to do is click on the “Save” icon on the WINDEV toolbar.

Your window is now executed interactively, and all you have to do is perform actions (keyboard, mouse) that you wish to incorporate into the test.
To stop saving the test all you have to do is close the window.
WINDEV now generates the WLanguage code that corresponds to your actions, the test scenario.
You will find the command
EmulateMouse for mouse actions,
EmulateInput for keyboard manipulations,...
At any time, you can replay the test scenario and WINDEV will tell you in the test report if the test has been validated or not.
Of course, WINDEV also makes regular suggestions to run your complete test scenario (reintegration in the SCM, creation of the .exe, ...) to verify the overall quality of your application.
Thanks to WINDEV, this is how you can deploy the new versions of your applications with peace of mind.
You will be able to meet deadlines providing more reliable applications.