mt4-unittest
mt4-unittest copied to clipboard
Unit testing framework for MetaTrader4
I'm had an issue compiling the test include. (Metaeditor 5 build 1241). I got a "UnitTestData' - conversion exists, but is inaccessible" error. Had to change `class UnitTestData : CObject`...
Hello, if you forget to add test to unittest printSummary is failling because of zero division error You can fix that using: ``` double successPercent; double failurePrcent; if (m_allTestCount!=0) {...
Hello, this unittest can't compile ``` //+------------------------------------------------------------------+ //| test_unittest.mq4 | //| Copyright © 2014, FemtoTrader | //| https://sites.google.com/site/femtotrader/ | //+------------------------------------------------------------------+ #property copyright "Copyright © 2014, FemtoTrader" #property link "https://sites.google.com/site/femtotrader/" #property...
Hello, if tests are run every tick like this ``` void OnTick() { if (paramUnitTesting) { runAllTests(); } } ``` and your test have failure, summary can display negative values...