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
»
Forcing NUnit
Forcing NUnit
Options
Previous Topic
Next Topic
devdept
#1
Posted :
Monday, February 18, 2019 9:54:31 AM(UTC)
Rank: Advanced Member
Groups: Registered
Joined: 10/13/2012(UTC)
Posts: 53
Location: Italy
Was thanked: 2 time(s) in 2 post(s)
Hi There,
How do I force NUnit over MSTest in NCrunch?
Thanks,
Alberto
Back to top
User Profile
View All Posts by User
View Thanks
Remco
#2
Posted :
Monday, February 18, 2019 10:28:34 AM(UTC)
Rank: NCrunch Developer
Groups: Administrators
Joined: 4/16/2011(UTC)
Posts: 7,144
Thanks: 959 times
Was thanked: 1290 time(s) in 1196 post(s)
Hi Alberto,
I'm not entirely sure what you're asking. NCrunch uses different adapters for each of these frameworks. If you have a project using both frameworks, NCrunch will use both adapters to execute all of the tests.
It's possible to disable the adapters on a per-project basis via the configuration window.
Back to top
User Profile
View All Posts by User
View Thanks
devdept
#3
Posted :
Monday, February 18, 2019 10:43:46 AM(UTC)
Rank: Advanced Member
Groups: Registered
Joined: 10/13/2012(UTC)
Posts: 53
Location: Italy
Was thanked: 2 time(s) in 2 post(s)
Hi Remco,
Inside Visual Studio, we can manually run tests using VStudio Test Explorer (MStest) or Resharper(NUnit). I was wondering if we could specify a preference with NCrunch.
Thanks,
Alberto
Back to top
User Profile
View All Posts by User
View Thanks
Remco
#4
Posted :
Monday, February 18, 2019 9:37:22 PM(UTC)
Rank: NCrunch Developer
Groups: Administrators
Joined: 4/16/2011(UTC)
Posts: 7,144
Thanks: 959 times
Was thanked: 1290 time(s) in 1196 post(s)
Hi Alberto,
NCrunch uses its own adapters to interact with test frameworks, it doesn't integrate with Resharper or VSTest. So the only way for NCrunch to run NUnit tests is with its NUnit adapter, and the only way it can run MSTest tests is using its own MSTest adapter (which is actually an emulator).
Back to top
User Profile
View All Posts by User
View Thanks
devdept
#5
Posted :
Tuesday, February 19, 2019 6:26:46 AM(UTC)
Rank: Advanced Member
Groups: Registered
Joined: 10/13/2012(UTC)
Posts: 53
Location: Italy
Was thanked: 2 time(s) in 2 post(s)
Thanks Remco,
Yes, we decorate the tests with the following attributes that enable both MStest and Nunit. It's time to make a choice.
[TestCategory("Surf"), TestMethod, NUnit.Framework.Test]
Thanks again.
Alberto
Back to top
User Profile
View All Posts by User
View Thanks
Remco
#6
Posted :
Tuesday, February 19, 2019 10:17:36 PM(UTC)
Rank: NCrunch Developer
Groups: Administrators
Joined: 4/16/2011(UTC)
Posts: 7,144
Thanks: 959 times
Was thanked: 1290 time(s) in 1196 post(s)
For this you can just disable one of NCrunch's adapters and use the framework of your choice.
The MSTest one is probably higher performance, as it's actually an emulator (not integrated), so NCrunch has more optimisation options for it.
Back to top
User Profile
View All Posts by User
View Thanks
Users browsing this topic
Guest
NCrunch Forum
»
General Support
»
Build/Test Issues
»
Forcing NUnit
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.029 seconds.
Take NCrunch for a spin
Do your fingers a favour and supercharge your testing workflow
Free Download