what did pex replace

What Did PEX Replace: Pipe Materials & Technologies

By Andrew Walker
AD

If you're in the tech industry or follow coding trends, you're likely to have heard of Pex, a tool that was widely used for performing unit tests. Pex is a tool that helps generate marquee tests faster, enabling developers to quickly validate their code. But as technology advances, so do the tools that support it, leading to the question: what has replaced Pex in the world of unit testing?

Pex served its purpose well, but newer tools have emerged with improved features and functionalities that have gradually replaced it. Let's delve into the tools that have stepped up to carry the torch from Pex and explore their features.

IntelliJ's Test Generation Tools

IntelliJ IDEA, a popular Integrated Development Environment (IDE), has native test generation tools that have largely replaced Pex. It automatically generates unit tests based on the code, reducing manual effort and speeding up the testing process.

AD
PEX Supply Pipe: Everything You Need to Know
PEX Supply Pipe: Everything You Need to Know
The Different Types of PEX Pipe for Each Application
The Different Types of PEX Pipe for Each Application
Low Pressure after switching to PEX
Low Pressure after switching to PEX

IntelliJ's tools are integrated within the IDE, making them easily accessible and user-friendly. They provide a simpler way to generate tests, particularly for those new to unit testing.

RunContext

RunContext is a test generation tool from IntelliJ that's similar to Pex. It helps create smarter test cases by automatically converting execution traces into tests. It's a step forward from Pex, especially in its ability to handle complex generics and parameterized types.

PEX Plumbing Pipe Guide: Everything You Need to Know About PEX Piping
PEX Plumbing Pipe Guide: Everything You Need to Know About PEX Piping
Upgrading and replumbing with Pex
Upgrading and replumbing with Pex
How to Protect Pex outside
How to Protect Pex outside

RunContext has seen wider adoption due to its seamless integration with IntelliJ and its ability to generate more comprehensive test cases than Pex. Moreover, it offers better support for modern programming languages and features that Pex lacked.

Tester's User Interface (TUI)

TUI is another tool from IntelliJ designed to simplify testing. It enables exploratory testing, allowing developers to explore and interact with their code to create meaningful test cases.

AD

TUI stands out from Pex and other test generation tools with its 'black-box' approach. This means it focuses more on the user interface and functionality of the software, rather than the underlying code, providing a more holistic testing approach.

How to Make Basic PEX Connections - Fine Homebuilding Pex Plumbing Tips, Pex Pipe Fitting Installation Guide, What Is Pex Plumbing, How To Inspect Pex Plumbing, Pex Plumbing Connections, Pex Plumbing Pipes In Construction, Pex Water Lines, Pex Plumbing Tutorial, Plumbing Tools For Pex Pipes
How to Make Basic PEX Connections - Fine Homebuilding Pex Plumbing Tips, Pex Pipe Fitting Installation Guide, What Is Pex Plumbing, How To Inspect Pex Plumbing, Pex Plumbing Connections, Pex Plumbing Pipes In Construction, Pex Water Lines, Pex Plumbing Tutorial, Plumbing Tools For Pex Pipes
PEX A vs PEX B: Pros and Cons 🤔
PEX A vs PEX B: Pros and Cons 🤔
plumbing with pex tubing instructions and pictures showing how to use the piping hose
plumbing with pex tubing instructions and pictures showing how to use the piping hose
some type of text on a black and white background with the words pixel information everything you need to know about programming with
some type of text on a black and white background with the words pixel information everything you need to know about programming with
6 Reasons Why PEX Plumbing Is Bad for Your House
6 Reasons Why PEX Plumbing Is Bad for Your House
a man working on an electrical box in a house with wood framing around the wall
a man working on an electrical box in a house with wood framing around the wall

Visual Studio's Unit Testing Tools

Microsoft's Visual Studio also offers robust unit testing tools that have been popular among .NET developers. These tools have evolved significantly over the years and have largely replaced Pex in the .NET ecosystem.

Visual Studio's unit testing tools offer a high degree of flexibility and integration, making them a good alternative to Pex. They allow you to create, run, and maintain tests directly from the Visual Studio arena.

AD

Moles

Moles is a tool used to create fake or substitute objects for unit testing. It's part of Microsoft's Pex and Moles framework, but its usefulness has seen it continue to be used even after Pex was phased out.

Replacing corroded PEX tube fittings embedded in wall
Replacing corroded PEX tube fittings embedded in wall
a person holding a pair of pliers in their hand with the tools attached to it
a person holding a pair of pliers in their hand with the tools attached to it
a man kneeling down next to some tools
a man kneeling down next to some tools

Moles enables developers to replace dependencies with realistic mock objects, simplifying test creation and execution. It's a powerful tool that complements other unit testing tools and has been embraced as a Pex successor in many development communities.

Clever Girl

Clever Girl is another tool in Microsoft's Pex and Moles suite. It's designed to test generative functions (functions that generate multiple values) and has been integral in replacing Pex in many cases.

AD

Clever Girl's ability to handle generative functions has made it a valuable tool in the unit testing landscape. It's particularly useful in testing algorithms and other complex functions that require more than one output value.

In conclusion, while Pex was a groundbreaking tool in unit testing, it has been superseded by more advanced tools. Modern IDEs and languages have come a long way in providing robust unit testing features and capabilities. As development continues to evolve, so too will the tools we use to test our code, continuing to challenge and improve the way we work.

AD