EA Quality with Unit Testing

 

Hi All,

I am developing MQL5 EA and woluld like to implement more quality and control with unit tests. Does anyone have a recommended library or advise to test EA code to identify bugs.

For example, I use MACD indicator in code and had many issues as it was not working properly and gave 0 values. Using Unit tests I would be able to find this issues early in the development process.

Thanks in advance.

Gadi.

 
Gadi Eichhorn:

Hi All,

I am developing MQL5 EA and woluld like to implement more quality and control with unit tests. Does anyone have a recommended library or advise to test EA code to identify bugs.

For example, I use MACD indicator in code and had many issues as it was not working properly and gave 0 values. Using Unit tests I would be able to find this issues early in the development process.

Thanks in advance.

Gadi.

You can use as starting point the standard library testing scripts in Scripts\Unit Tests folder.
It's not a library but has some ideas.