concept data pipe in category java

appears as: data pipes
Java Testing with Spock

This is an excerpt from Manning's book Java Testing with Spock.

Spock is flexible when it comes to parameterized tests. If offers a complete portfolio of techniques adaptable to your situation, no matter the complexity of your test data. The most basic format of parameterized tests (data tables) was already demonstrated in chapter 3. This chapter also explains data pipes (the underlying mechanism of data tables) and shows how to write custom data providers with Spock, which is the most flexible solution (but needs more programming effort).

But sometimes the test parameters are computed on the spot or come from an external source (typically a file, as you’ll see later in this chapter). For those cases, using data pipes is a better option. Data pipes are a lower-level construct of Spock parameterized tests that can be used when you want to dynamically create/read test parameters.[8]