9b7af08b3e
Build & Test Lean / build (push) Has been cancelled
Regression Tests / build (push) Has been cancelled
* Fixes Market On Open Fill of Equity Fill Model Only use trade data (Tick with Trade type or TradeBar) to get the open price, since MOO is filled with the opening action price. Ensure that this method doesn't use trade data from before the market opens for high-resolution data case. Fix unit tests to show that the new implementation only fills with trade data from the current open market. Change regression tests to reflect the bug fix. In the `ExtendedMarketHoursHistoryRegressionAlgorithm`, MOO was filled with extended market hours. * Fix Bug for Tick Resolution Case For tick susbcription, the tick with the open price information is the the first valid (non-zero) tick of trade type from an open market. Addresses peer-review by moving the if-condition for data belonging to the open market where the subscriscribed types are checked. * Fix Bug for Low Resolution Edge Case For the edge case where the order is placed after the trade bar is open, for example, order places at 1 pm with daily-resolution data. The fill model will not use the open of the bar that will close at midnight, since this value is prior to the order. Adds unit test. Change regression tests to reflect the bug fix. In the `RegressionAlgorithm`, MOO was filled with open prior to the order. The algorithm now has one order less, since the last MOO would need to wait another day to be filled. * Implements SaleCondition and Exchange Check For Tick - Adds additional unit tests for MOO * Fixes Regression Test in DataConsolidatorPythonWrapperTests * Addresses Peer-Review - Adds new unit test cases.
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.