Integration tests broken after migrating to ASP.NET Core RC2

旧巷老猫 提交于 2019-12-04 06:18:15

I needed some changes to get your repo to work:

  1. I had to rename appsettings.sample.json to appsettings.json, I guess this is just because it's not in source control.
  2. I had to add "buildOptions": { "copyToOutput": [ "appsettings.json" ] } to the project.json of the IntegrationTests project.
  3. Had to change the log level Verbose to Debug in your appsettings.json.

But after this the integration test EndPointsRequiresAuthorization goes through the dependency injection, and for me it fails with an exception in ShikashiBotManager, I guess because I don't have the Postgre DB set up.
For you it already fails before this, because it cannot resolve the IShikashiBotManager interface, right?

Can you try to do a complete purge of your local repository with git clean -xfd (NOTE: your not commited local changes will be deleted), rebuild and try again?

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!