Joao,

You normally (after running `rspec --init`) add spec files under `spec`
directory, and name them something like `user_spec.rb`.

And run either focused to one spec file (
https://relishapp.com/rspec/rspec-core/v/3-10/docs/command-line/line-number-appended-to-file-path)
with `rspec spec/my_spec.rb`, or run all your specs with just `rspec`.

All the documentation is available here http://rspec.info/documentation/
I can recommend checking the community RSpec style guide
https://rspec.rubystyle.guide/

On Mon, Nov 30, 2020 at 3:41 PM Joao Miguel Ferreira <
[email protected]> wrote:

> Hello all,
>
> I'm just starting with rspec and with ruby. I have read the examples and I
> can run rspec tests with "ruby my_test.rb".
>
> Is there a way to run many tests? something like a test battery or "please
> run all tests in my_tests directory" ?
>
> Is there something like "best practices" on this matter?
>
> thank you
> João
>
> --
> 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/a8a5871d-8cee-448f-8969-54dbdc8c63f5n%40googlegroups.com
> <https://groups.google.com/d/msgid/rspec/a8a5871d-8cee-448f-8969-54dbdc8c63f5n%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
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/CAAk5Ok8UNQ5GC4E9y9ZibB8PRA%3DspJnY5VX8sGbwyt-QF8qZZQ%40mail.gmail.com.

Reply via email to