I'm prepping to try working on some of the Lean issues in github. I'm a Mac/Linux JVM guy, so I'm coming up the Win10/VisualStudio/.Net/C# learning curve.
I set up a brand new Win 10, 64 bit development machine. Clean install. Fully up-to-date.
I've followed all the tutorials for getting Lean set up in Visual Studio Community Edition 2019, got C# algo running, got Python algo running, installed the Visual Studio extension.
Before I create a feature branch and start making changes, I'd like to be able to run and pass all tests.
I have tried going to Test - Windows - Test Explorer. The tests are discovered, but they are not run.
When I select an individual test, right-click on it and run it, the Error Message says "Test could not be run. Check the Tests Output Pane for details." The Tests Output pane says this:
" Warning] No test matches the given testcase filter `FullyQualifiedName=QuantConnect.Tests.RegressionTests.AlgorithmStatisticsRegression` in C:\Users\username\projects\Lean\Tests\bin\Debug\QuantConnect.Tests.dll"
Is there something that needs to be configured? Is the only way to run tests by submitting a PR to the QuantConnect CI setup?
Any help would be appreciated.
Kind regards,
Frank
Jason Mark
I'm planning on setting up a local development environment too but on a MacBook Pro. I'm a mobile app developer so I use a Mac for most of my programming. I'll let you know how it goes.
Frank Norman
Jason, I don't think that is going to work. Lean still relies on some Visual Studio capabilities that are only in their Windows version. (That is, VS Code won't work. Rider won't work.) They have a roadmap item to migrate fully to .Net Core, which will help, but that is not complete yet.
Frank Norman
My original question still stands. Anyone out there run tests locally before submitting your changes via PR?
Frank Norman
The material on this website is provided for informational purposes only and does not constitute an offer to sell, a solicitation to buy, or a recommendation or endorsement for any security or strategy, nor does it constitute an offer to provide investment advisory services by QuantConnect. In addition, the material offers no opinion with respect to the suitability of any security or specific investment. QuantConnect makes no guarantees as to the accuracy or completeness of the views expressed in the website. The views are subject to change, and may have become unreliable for various reasons, including changes in market conditions or economic circumstances. All investments involve risk, including loss of principal. You should consult with an investment professional before making any investment decisions.
To unlock posting to the community forums please complete at least 30% of Boot Camp.
You can continue your Boot Camp training progress from the terminal. We hope to see you in the community soon!