SaturnFramework / Saturn

Opinionated, web development framework for F# which implements the server-side, functional MVC pattern
https://saturnframework.org
MIT License
708 stars 108 forks source link

Issue using WebHostBuilder for integration tests #186

Closed simax closed 5 years ago

simax commented 5 years ago

I see that you intend to add features for testing (#105) which is great but in the meantime I'm trying to build some integration tests but without much joy.

I posted a question on SO that details the issue

I tried replacing the application computation expression with a WebHostBuilder in the API project and it all worked perfectly. However if I try to do something similar in the test project I get an exception when trying to to add the router in the WebHostBuilder.configure method.

Any idea why that is and how I can fix it?

(Thanks for all your had work on Saturn. I've really enjoyed using it.)

simax commented 5 years ago

I finally found the answer to my problem. Nothing to do with Saturn at all. The answer can be found at the linked SO question.