6ef2ead929
* Do not update price scale for fillforward data - Do no update price scale for fill forward data. FillForward data should keep using the prev scale for which it was created. Adding unit tests - When cloning do not lose IsFillForward flag state, affects QuoteBars/Ticks, does not affect TradeBars since they perform a memberwise clone. Adding unit tests * Auxiliaries shouldn't really affect on applied price factor scale. Despite we can receeive FillForward'ed data points, corresponding Auxiliaries for them are not FillForward so we do meet the condition and then refresh price factor. As a result all futher FF data points are scaled too. * Regression algorithm to check that FillForward'ed data points arrived with last real price factor * Add trade for regression algorithm - Minot tweaks and adding trade for new regression algorithm. - Updating AddOptionContractExpiresRegressionAlgorithm because it is using the symbol for which new data was added. Co-authored-by: Adalyat Nazirov <aenazirov@gmail.com>
QuantConnect Testing
Before starting any testing, follow the installation instructions to get LEAN running C# algorithms in your machine. For any Python related tests please ensure you have followed the setup as described here.
If the above installation, build, and initial run was succesful than we can move forward to testing.
Visual Studio:
Locating Tests
- Open Visual Studios
- Open Test Explorer ("Test" > "Test Explorer")
- The list should populate itself as it reads all the tests it found during the build process. If not, press "Run All Tests" and let VS find all of the tests.
- From here select the tests you would like to run and begin running them.
Failed Test Logs
- On a failed test, check the test for information by clicking on the desired test and selecting "Open Additional Output"
- This will show the stack trace and where the code failed to meet the testing requirements.
Common Problems
Having .NetFramework issues with testing?
- Install NUnit3TestAdapter for VS
Missing dependencies for Python Algorithm?
- Use pip or conda to install the module.