English 中文(简体)
Why Pex is not massive [closed]
原标题:
  • 时间:2010-07-02 12:07:15
  •  标签:
  • pex

Hi there: I was looking at a few videos, etc and I just cant help but wonder why Pex usage seems to be so low?

Are there any problems that are not obvious, or is it just a licence issue?

问题回答

It s a very new tool and to work really well you need to use Code Contracts as well. It also catches a lot of issues like possible integer overflows that a lot of developers think they can just ignore. Pex is amazing and will take off eventually but it has a learning curve so it s going to take some time to percolate through the .Net ecosystem.

I ve used it on a few new development projects and it has saved me two major bugs (not caught by normal unit tests) that would have taken at least a week to track down and fix normally plus a few smaller issues so I m a big proponent of Pex. That said it takes a lot of work to get it producing good results on an existing code base of any size so how cost effective it is will need to be determined on a project by project basis.





相关问题
workaround pex internal class

Is there any way to make pex work when the classes under test are internal? how about sealed classes? I mean after all this type of tool is really good for API testing, you are likely to want to keep ...

Why Pex is not massive [closed]

Hi there: I was looking at a few videos, etc and I just cant help but wonder why Pex usage seems to be so low? Are there any problems that are not obvious, or is it just a licence issue?

Is Pex (Test generation) really useful tool?

Yes, it is possible to generate tests on boundary values for functions like "Sum" or "Divide". Pex is a good tool here. But more often we create tests on business behaviour. Let s consider example ...

How to add [assembly: PexLinqPackage] to a test project

I am trying to get Pex to work with linq in my project. I got this explanation on what I need to do: In order for Pex to support Linq, make sure you add a reference to Microsoft.Pex.Linq.dll and add ...

C# - What does "" equate to?

I am playing with Pex and one of the parameters it passes into my method is "". What does that mean? My guess is an empty string ("") based on the content of my method. However, if it is the same ...

Can Moles be used to create a sealed class?

I am trying to mock my Linq To SQL classes. I have the following code: IQueryable<User> vUser = (from aUser in _ctx.Users where aUser.UserName == userName select aUser); ...

How to use PEX with NUnit tests in VS 2010?

I am aware that the current release of PEX allows use with the NUnit framework. The thing is I can t configure it to use the NUnit framework. In the Options -> PEX: What Exactly do i have to put in ...

热门标签