RSpec does not have this built in, but you don’t need it to be in order to 
achieve this, here is how to do that from a linux command line.

`rspec $(cat your_file.txt)`

Cheers
Jon Rowe
---------------------------
[email protected]
jonrowe.co.uk

On 9 April 2020 at 10:37, Eric Kessler wrote:
> I've looked around online a bit but cannot find any examples of (or evidence 
> that it is even possible to) have RSpec run a set of specs listed in an 
> arbitrary file as some other test frameworks can do. I don't really want to 
> build a command line that is thousands of characters long in order to run 
> many specific tests but I can easily stick the list of specs that I want to 
> run in a file like this:
>
> ```
> path/to/some_spec.rb[1:1:1]
>
> path/to/some_spec.rb[1:2:1]
>
> path/to/some_other_spec.rb[3:1]
>
> ...
> etc.
> ```
>
> Does RSpec have a mechanism that can handle that kind of input or am I 
> limited to just specifying files and patterns on the command line?
>
>
> Thanks,
> Eric K
>
>
>
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"rspec" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rspec/dejalu-217-4de4212a-ea22-4b01-9d3a-754b80ff97bb%40jonrowe.co.uk.

Reply via email to