I did with a hackRF and use it in our production line to test the GPS modules of our PCBs.
Project link https://github.com/osqzss/gps-sdr-sim
Project link https://github.com/osqzss/gps-sdr-sim
To the interested, this paper [0] from microsoft mentions a range of 40-50 meters with off the shelf hardware.
A USRP N2X0 will spoof a phone in the same room just through leakage
I have the SDR streaming satellite data for 5min and it then restarts and retransmitts again. That allows units on the assembly table to get a sat lock and pass the factory test.