Crunch
About
Pricing
Documentation
News
Support
Download
Customer Login
Welcome Guest! To enable all features please
Login
or
Register
.
Forum
Active Topics
Search
Login
Register
Notification
Error
OK
NCrunch Forum
»
General Support
»
Build/Test Issues
»
Test using Owin TestServer fails
Test using Owin TestServer fails
Options
Previous Topic
Next Topic
jonwik
#1
Posted :
Wednesday, November 22, 2017 8:02:59 AM(UTC)
Rank: Newbie
Groups: Registered
Joined: 10/8/2017(UTC)
Posts: 4
Was thanked: 1 time(s) in 1 post(s)
Hello!
Trying to use NCrunch for integration tests against our REST-API using Owin TestServer. No problems when running other test-runners than NCrunch (e.g. Resharper) but when using NCrunch result is always 404 Not Found.
Anybody have a clue why?
Regards
>> Jonas
Back to top
User Profile
View All Posts by User
View Thanks
Remco
#2
Posted :
Wednesday, November 22, 2017 8:14:02 AM(UTC)
Rank: NCrunch Developer
Groups: Administrators
Joined: 4/16/2011(UTC)
Posts: 7,145
Thanks: 959 times
Was thanked: 1290 time(s) in 1196 post(s)
Hi Jonas,
My best guess would be that the server can't find its end-points when it is being hosted in an NCrunch workspace.
I recommend taking a look at your test project when it is hosted in the NCrunch workspace (right click on the test project in the Tests Window, go to Advanced->Browse to workspace), to see how a test project exists when its tests are being run by NCrunch. It's possible this project has an implicit dependency on the web project hosting the endpoints.
Related documentation:
http://www.ncrunch.net/documentation/concepts_workspaces
http://www.ncrunch.net/documentation/considerations-and-constraints_project-atomicity
http://www.ncrunch.net/documentation/considerations-and-constraints_implicit-file-dependencies
Back to top
User Profile
View All Posts by User
View Thanks
jonwik
#3
Posted :
Wednesday, November 22, 2017 8:31:36 AM(UTC)
Rank: Newbie
Groups: Registered
Joined: 10/8/2017(UTC)
Posts: 4
Was thanked: 1 time(s) in 1 post(s)
Thanks Remco
Did forget to mention that this is .NET Core.
Back to top
User Profile
View All Posts by User
View Thanks
Remco
#4
Posted :
Wednesday, November 22, 2017 10:14:52 AM(UTC)
Rank: NCrunch Developer
Groups: Administrators
Joined: 4/16/2011(UTC)
Posts: 7,145
Thanks: 959 times
Was thanked: 1290 time(s) in 1196 post(s)
Thanks. Are you using Microsoft.AspNet.TestHost?
Back to top
User Profile
View All Posts by User
View Thanks
jonwik
#5
Posted :
Wednesday, November 22, 2017 11:24:13 AM(UTC)
Rank: Newbie
Groups: Registered
Joined: 10/8/2017(UTC)
Posts: 4
Was thanked: 1 time(s) in 1 post(s)
Yes, Microsoft.AspNet.TestHost 2.0
I'm using the Microsoft.AspNetCore.TestHost.TestServer existing within the Microsoft.AspNetCore.TestHost nuget.
NCrunch working fine when using "ordinary" .NET Framework and it's Microsoft.Owin.Testing.TestServer .
Back to top
User Profile
View All Posts by User
View Thanks
Remco
#6
Posted :
Wednesday, November 22, 2017 9:46:03 PM(UTC)
Rank: NCrunch Developer
Groups: Administrators
Joined: 4/16/2011(UTC)
Posts: 7,145
Thanks: 959 times
Was thanked: 1290 time(s) in 1196 post(s)
Try the build below and see how you go. We've had some on and off issues with TestHost over the last few months, and I'm aware of at least one problem existing in the v3.11 release that we've managed to fix:
http://downloads.ncrunch.net/NCrunch_Console_3.12.0.14.msi
http://downloads.ncrunch.net/NCrunch_Console_3.12.0.14.zip
http://downloads.ncrunch.net/NCrunch_GridNodeServer_3.12.0.14.msi
http://downloads.ncrunch.net/NCrunch_GridNodeServer_3.12.0.14.zip
http://downloads.ncrunch.net/NCrunch_LicenseServer_3.12.0.14.zip
http://downloads.ncrunch.net/NCrunch_VS2008_3.12.0.14.msi
http://downloads.ncrunch.net/NCrunch_VS2010_3.12.0.14.msi
http://downloads.ncrunch.net/NCrunch_VS2010_3.12.0.14.zip
http://downloads.ncrunch.net/NCrunch_VS2012_3.12.0.14.msi
http://downloads.ncrunch.net/NCrunch_VS2012_3.12.0.14.zip
http://downloads.ncrunch.net/NCrunch_VS2013_3.12.0.14.msi
http://downloads.ncrunch.net/NCrunch_VS2013_3.12.0.14.zip
http://downloads.ncrunch.net/NCrunch_VS2015_3.12.0.14.msi
http://downloads.ncrunch.net/NCrunch_VS2015_3.12.0.14.zip
http://downloads.ncrunch.net/NCrunch_VS2017_3.12.0.14.msi
http://downloads.ncrunch.net/NCrunch_VS2017_3.12.0.14.zip
Back to top
User Profile
View All Posts by User
View Thanks
jonwik
#7
Posted :
Thursday, November 23, 2017 2:29:00 PM(UTC)
Rank: Newbie
Groups: Registered
Joined: 10/8/2017(UTC)
Posts: 4
Was thanked: 1 time(s) in 1 post(s)
Great
That version seems to fix the errors! Thanks!
Back to top
1 user thanked jonwik for this useful post.
Remco
on 11/23/2017(UTC)
User Profile
View All Posts by User
View Thanks
Users browsing this topic
Guest
NCrunch Forum
»
General Support
»
Build/Test Issues
»
Test using Owin TestServer fails
Forum Jump
General Support
- Setup Problems
- Build/Test Issues
- Daily Usage Issues
Crunch Discussion
- General Feedback
- Feature Suggestions
General Discussion
- General Discussion
You
cannot
post new topics in this forum.
You
cannot
reply to topics in this forum.
You
cannot
delete your posts in this forum.
You
cannot
edit your posts in this forum.
You
cannot
create polls in this forum.
You
cannot
vote in polls in this forum.
Watch this topic
Email this topic
Print this topic
» Normal
Threaded
YAF
|
YAF © 2003-2011, Yet Another Forum.NET
This page was generated in 0.049 seconds.
Take NCrunch for a spin
Do your fingers a favour and supercharge your testing workflow
Free Download