From the 1980s to the 2000s, Linear Technology published a series of application notes on analog circuits, including quick-and-dirty "DIY" circuits for solving practical lab problems, such as low-noise measurements, rise time measurements, fast pulse generators, low-distortion sine wave generation, etc. A full bibliography of these application notes is available here.
Unsurprisingly, slew rate measurement was also covered: a possible solution is described in Linear Technology AN94 - Slew Rate Verification for Wideband Amplifiers for slew rate measurements up to 2500 V/μs.
The heart of this circuit is crude but effective: a picosecond pulse generator based on the 2N2369 avalanche transistor circuit. The original circuit was introduced in Linear Technology AN47: High Speed Amplifier Techniques, Appendix D: Measuring probe-oscilloscope response. By applying a high voltage from a small capacitor between the collector and emitter of a bipolar transistor, a secondary breakdown is intentionally triggered, causing a sharp discharge.
I've already explained the theory of operation of this basic circuit in another answer, including references, schematics, and oscilloscope traces, just click here.
The transistor should be a type designed for fast switching applications (linear RF transistors don't work well even if they have high transition frequency, because they're not designed for non-linear switching). For a 2N3904, the rise time is around 1 to 2 nanoseconds. The 2N2369 has a rise time as short as 350 ps, it's probably related to the fact that it was designed to be a fast switching transistor with gold-doping - today, they're a rare type. 2N2369 is already out of production but you can find some old-new stock. Meanwhile, the SMD variant PMBT2369 & MMBT2369 is still available.
Note that the 2N2369 transistor was never designed to be an avalanche transistor, we're abusing it - but it works, in fact this circuit is quite famous because of its creativity. Today, there's probably a more modern solution based on fast logic circuits. But this trick was how it was done in the 1980s.
However, to make it practical and convenient for lab use, we need much more than a transistor, and the following problems must be overcame.
It's a freerunning relaxation oscillator, and cannot be controlled. We need to modify it so it can be triggered by an external signal.
The output amplitude is high, around 70 V to 150 V depending on the bias voltage and transistor used. One can use a fixed 3-resistor RF attenuator to adjust its amplitude, but ideally we want to adjust it electronically.
The unmodified pulse shape is a narrow Dirac impulse. We need to modify the circuit so it outputs a Heaviside step instead.
According to the application note, after various improvements, the final circuit is the following monstrosity.
At the top left, LT1553 is a DC/DC converter for supplying the high-voltage bias to the avalanche transistor. By adjusting the feedback signal, the bias voltage can be controlled. At the center of the schematic, LT1394 analog comparators are used for generating an adjustable delay, which is then used to trigger the avalanche transistor. At the bottom right is the modified avalanche transistor pulse generator, a long coax cable (with an open circuit at the far end) is used as a transmission line pulse shaping circuit, changing the pulse shape from a narrow impulse to a step-like pulse.
The rise time of this pulse generator is 360 picoseconds, suitable for testing an opamp with a slew rate as high as 2500 V/μs.
It's not difficult to see that the design and construction of a high-speed pulse generator is a project of its own. It can take a long time to build and debug... If you're on a hurry, the reasonable solution is to simply purchasing a ready-made pulse generator. But if you have a lot of free time, carry on...
If you just need a simple test, I think these elaborate bias, delay and trigger circuits may be unnecessary. You can start with the basic avalanche transistor circuit, then add a coax cable to shape the impulse to a step, then add an RF attenuator to reduce the pulse amplitude. This may be enough for a quick and dirty test. It's also unnecessary to strictly follow the schematics, any circuit with a similar principle of operation can be used. For example, when I first tried to build the avalanche pulse generator, I created the high voltage source using a 555 timer, a 2N5551 switch, and an inductor.