Skip to content
Draft
Show file tree
Hide file tree
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
7 changes: 5 additions & 2 deletions RSpec (all specs).sublime-build
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,16 @@
"cmd": [
"bundle",
"exec",
"rspec"
"rspec",
"--format",
"failures",
],
"keyfiles": [
"Gemfile",
"Gemfile.lock"
],
"selector": "source.ruby",
"file_regex": "rspec ([A-Za-z0-9_.\/ ]+rb):([0-9]+) #()(.+)$",
"file_regex": "([A-Za-z0-9_.\/ ]+rb):([0-9]+):",
"syntax": "Packages/RSpec/RSpec output.sublime-syntax",
"working_dir": "${project_path:${folder:${file_path}}}",
}
5 changes: 4 additions & 1 deletion RSpec (open spec).sublime-build
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,12 @@
"bundle",
"exec",
"rspec",
"--format",
"failures",
"$file"
],
"file_regex": "rspec ([A-Za-z0-9_.\/ ]+rb):([0-9]+) #()(.+)$",
"file_regex": "([A-Za-z0-9_.\/ ]+rb):([0-9]+):",
"working_dir": "${project_path:${folder:${file_path}}}",
"syntax": "Packages/RSpec/RSpec output.sublime-syntax",
"selector": "source.ruby.rspec",
}
15 changes: 15 additions & 0 deletions RSpec output.sublime-syntax
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
%YAML 1.2
---
# See http://www.sublimetext.com/docs/syntax.html
scope: text.build-output.rspec
version: 2
hidden: true

contexts:
main:
- match: "([A-Za-z0-9_.\/ ]+rb):([0-9]+):"
captures:
1: entity.name.filename.build-output
2: constant.numeric.line-number.build-output
- match: '^\[.+\]$'
scope: comment.line.result.build-output
10 changes: 10 additions & 0 deletions tests/syntax_test_rspec_output
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# SYNTAX TEST "Packages/RSpec/RSpec output.sublime-syntax"
./spec/myapp/under_test_spec.rb:16:will return all sorts of things
#<- entity.name.filename.build-output
#^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ entity.name.filename.build-output
# ^^ constant.numeric.line-number.build-output


[Finished in 705ms with exit code 1]
#<- comment.line.result.build-output
#^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ comment.line.result.build-output