af958f0ce4
Regression Tests / build (push) Has been cancelled
Build & Test Lean / build (push) Has been cancelled
* - Update symbol-properties-database.csv, SymbolPropertiesDatabase.cs and SymbolProperties.cs with a new column for MinimumOrderSize parameter for Crypto type - Change CanSubmitOrder() method implementation in GDAXBrokerageModel.cs to get the MinimumOrderSize from the security SymbolProperties directly - Add CanSubmitOrder() method in Binance, Bitfinex and Kraken Brokerages models - Add tests to check if CanSubmitOrder() method is working as expected in Binance, Bitfinex, Kraken and GDAX brokerages models - Add tests to check if MinimumOrderSize parameter is loading correctly from symbol-properties-database.csv * Revert "- Update symbol-properties-database.csv, SymbolPropertiesDatabase.cs and SymbolProperties.cs with a new column for MinimumOrderSize parameter for Crypto type" This reverts commit e0fd66a5fa5215a6fccb98b64d4e3bf709007fdf. * Revert "Revert "- Update symbol-properties-database.csv, SymbolPropertiesDatabase.cs and SymbolProperties.cs with a new column for MinimumOrderSize parameter for Crypto type"" This reverts commit b0f37935fc334ba8ff3b8ab09b7d979e4e731526. * Requested changes in Crypto brokerage models - Remove unnecessary commas in symbols-properties-database.csv - Add TestHelpers class to reuse GetSecurity() method - Add IsValidOrderSize() method in DefaultBrokerageModel class - Remove unnecessary classes for brokerage models test helpers * Nit change - Remove unnecessary attribute from DefaultBrokerageModel.cs * Nit change * Nit changes and Regression test - Add Bitfinex BTCUSD hourly data for 2 days - Add regression test BuyBTCWithLessThanOneDollarAlgorithm.cs to test that the order size is taking into account when placing or updating an order - Nit changes * Change CanUpdateOrder() implementation - CanUpdateOrder() now checks if the requested quantity value is valid * Requested Changes - Change regression algorithm BuyBTCWithLessThanOneDollar.cs name and implementation * Nit changes
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.