Questions tagged [pex]

Microsoft Pex is a Visual Studio add-in that generates automated white-box tests for .NET Framework applications.

Microsoft Pex is a Visual Studio add-in that generates automated white-box tests for .NET Framework applications. Integrating into the Visual Studio code editor, Pex finds interesting input-output values of your methods, which you can save as a small test suite with high code coverage.

225 questions
7
votes
5 answers

How Do You Configure Pex to Respect Code Contracts?

Given the following example code, how can I configure Pex to respect my Code Contracts? public static IEnumerable Administrators(this UserGroup userGroup) { Contract.Requires(userGroup != null); …
Jim G.
  • 15,141
  • 22
  • 103
  • 166
7
votes
5 answers

Error code 2753 during install

Today I needed to re-install Microsoft Pex on my develop machine. I'm using Windows 7, 32 bit, Visual Studio 2010, .NET 2/3.5 I launched the usual installer, but it stopped with a mysterious 2753 error. How can I proceed with the installation?
alcor
  • 638
  • 1
  • 13
  • 27
7
votes
2 answers

Pex (not Moles) in VS 2012

I'm looking for the Pex Addin for VS 2012 (or its equivalent). I know Moles became Fakes (http://msdn.microsoft.com/en-us/library/hh549175.aspx) which is present. I want the Pex part as input generator for automated WhiteBox testing. I'm not sure…
wishi
  • 7,188
  • 17
  • 64
  • 103
7
votes
2 answers

Moving away from Pex and Moles in VS 2012?

When it comes to testing I've backed into it. I'm now a huge fan, and often do something like TDD. In VS 2010 for design and regressions I've just used MSTEST. This is great - all my projects are open source and connected to my work anyway (physics…
Gordon
  • 3,012
  • 2
  • 26
  • 35
7
votes
1 answer

is pex really still active?

Sorry for the beginner question. My bits are from 2010. I found a thread that say in 2011 there will be an update. Did I really find the last bits? I don't want to ride another dead tool.
flori
  • 71
  • 5
6
votes
1 answer

Python PEX loading

I've been trying to wrap my head around the python pex utility (https://pex.readthedocs.org/en/latest/) for bundling some applications into .pex files for deployment. My app isn't large enough to require twitters pants build tool, as well as I have…
Jeff U.
  • 616
  • 1
  • 6
  • 12
6
votes
1 answer

Can Pex automatically discover type overflow / underflow conditions?

Suppose there is a method like this (C#): public static int Add(int x, int y) { return x + y; } If the sum does not fit into the int data type it is probably an error situation which is worth a unit test. Is Pex able to identify such errors and…
Viktor Lukashov
  • 338
  • 1
  • 6
5
votes
1 answer

Force Pex to ignore generated code, can I do it without a reference to the Pex assembly?

I'm trying to start using Pex, and I have certain code that I want it to ignore testing. I create configuration sections for config files using the Configuration Section Designer addin. Unfortunately the code generated is not quite perfect, because…
Adam
  • 1,011
  • 1
  • 10
  • 25
5
votes
0 answers

Databricks PySpark with PEX: how can I configure a PySpark job on Databricks using PEX for dependencies?

I am attempting to create a PySpark job via the Databricks UI (with spark-submit) using the spark-submit parameters below (dependencies are on the PEX file), but I am getting an exception that the PEX file does not exist. It's my understanding that…
r_g_s_
  • 224
  • 1
  • 8
5
votes
1 answer

Pex and F# in Visual Studio 2010 Ultimate

I have been trying using Pex in a F# project but I have faced several issues on which I would appreciate some help: Visual Studio Pex addin worked for half an hour and not for complex project exploration. After that each time I run a Pex…
Nicolas
  • 51
  • 1
5
votes
2 answers

How run a flask app packaged as pex in gunicorn?

I am planning to package my flask app as a pex for self contained distribution, wondering how can I run the pex in Gunicorn ? or maybe packaging even gunicorn in the executable so when I run the pex, flask app runs in gunicorn . is that even…
user2616355
  • 423
  • 1
  • 4
  • 15
5
votes
3 answers

Can I use PEX with Visual Studio 2012?

I don't see any current information about the plans to make Pex work on Visual Studio 2012.
David Allen
  • 829
  • 7
  • 15
5
votes
4 answers

Is Pex (and its output) suitable for an enterprise environment?

I love the idea of Pex - autogenerating unit tests through static code analysis - but the tests that are actually generated by the tool are horrible, ugly, tightly coupled to Pex modules, difficult to read and understand etc. Is a tool like that…
MalcomTucker
  • 7,407
  • 14
  • 72
  • 93
4
votes
1 answer

Moles exited with code -1002, how can I know what happen to it?

I'm using Pex and Moles 0.94.51023.0 with VS2010 SP1. I have successfully made some Moles type of some Assembly reference and tested some cases. But this time with another reference, Moles has an error: Error 3 The command ""C:\Program…
bychance
  • 282
  • 4
  • 14
4
votes
1 answer

Pex - testing 'Type' parameters

I have a couple of methods that check for assignablity or interface assignabilty between types. Therefore I have signatures like (Type type1, Type type2). Pex struggles to generate inputs for these parameters and ends up with some type build…
Adam
  • 1,011
  • 1
  • 10
  • 25
1
2
3
14 15