Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Explain how to run a single test file with rake #1238

Merged
merged 1 commit into from
Jul 2, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -137,8 +137,13 @@ If you're here to implement a lexer for your awesome language, there's a good ch

### Run the tests

You can test the core of Rouge simply by running `rake` (no `bundle exec` required), or `rake spec TEST=spec/xxx_spec.rb`
to run a single test file.
You can test the core of Rouge simply by running `rake` (no `bundle exec` required). You can also run a single test file by
pyrmont marked this conversation as resolved.
Show resolved Hide resolved
setting the `TEST` environment variable to the path of the desired test. For example, to test just the *`ruby` lexer* which is
at path, `spec/lexers/ruby_spec.rb` within the repository, one may simply run the following:

```sh
TEST=spec/lexers/ruby_spec.rb rake
```

It's also set up with `guard`, if you like.

Expand Down