简体   繁体   中英

how better to run integration test on Dapr web API project?

How I can run integration tests using Dapr? it is possible to run WebApplicationFactory on Web API Dapr project? I see many errors when I run it, and unfortunately all is relate to Dapr create services.

Maybe I can mock it somehow or create stub for Dapr?

I tried to use docker-compose, but I have to much services, maybe I can avoid using docker-compose on tests, if I need only integration tests.

I think you can, by using the in-memory testing approach made possible in asp.net core MVC

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM