Jessecar96 / SteamBot

Automated bot software for interacting with Steam Trade
http://scrap.tf
MIT License
1.33k stars 910 forks source link

No test is available #1124

Closed sesigl closed 6 years ago

sesigl commented 6 years ago

Hi,

first, thank you for this project. It's amazing and the implementation itself works and is awesome to play around with. I am a Java guy but that's a good way to get in touch with c# 👍 .

Anyways, I am having troubles running the tests. Whenever I try to execute them I get:

[13/05/2018 11:09:24 Informational] ------ Run test started ------
[13/05/2018 11:09:25 Warning] No test is available in ... SteamBotUnitTest\bin\Debug\SteamBotUnitTest.dll. Make sure that test discoverer & executors are registered and platform & framework version settings are appropriate and try again.
[13/05/2018 11:09:25 Informational] ========== Run test finished: 0 run (0:00:00,997527) ==========

I see all tests in the test explorer. But whenever I click run tests I get errors on each of them, basically, they are not executed.

It's probably some basic configuration issue but its hard for me to find the root issue. Do you have any ideas whats wrong ?

Regards

sesigl commented 6 years ago

Unfortunately, I fixed it by fiddling around...

  1. Create a new C# .net core project in Visual Studio 2018
  2. Copy all *.cs files in the projects / subprojects
  3. add missing dependencies like NuGet packages and assembly references
  4. make it build
  5. correct all Paths that throw exceptions
  6. start the bot
  7. add a new test project that will work now