I’m trying to create a custom build system for Crystal. I’m having some trouble parsing all data needed with the current available options, file_regex
and line_regex
. I’ve also skimmed through https://www.sublimetext.com/docs/3/build_systems.html for more information.
Running the tests for a given file yield the following output:
FF
Failures:
1) GitBrowse::GitHub generates repository URL
Failure/Error: url.to_s.should eq("https://github.com/kevinsjoberg/git_browse")
Expected: "https://github.com/kevinsjoberg/git_browse"
got: "abc"
# spec/git_browse/github_spec.cr:6
2) GitBrowse::GitHub fails
Failure/Error: false.should eq(true)
Expected: true
got: false
# spec/git_browse/github_spec.cr:10
Finished in 139 microseconds
2 examples, 2 failures, 0 errors, 0 pending
Failed examples:
crystal spec spec/git_browse/github_spec.cr:4 # GitBrowse::GitHub generates repository URL
crystal spec spec/git_browse/github_spec.cr:9 # GitBrowse::GitHub fails
I’ve managed to capture filename and line number, but grabbing the message has been unsuccessful. Any pointers in there right direction would be much appreciated.
Cheers!