Skip to content

Instantly share code, notes, and snippets.

@sousk
Created May 18, 2010 06:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sousk/404686 to your computer and use it in GitHub Desktop.
Save sousk/404686 to your computer and use it in GitHub Desktop.
#!/usr/bin/env ruby
$LOAD_PATH << "#{ENV["TM_SUPPORT_PATH"]}/lib"
require "web_preview"
class SymfonyLimeTest
attr_reader :root_dir, :test_file
def initialize(args=ENV)
@root_dir = ENV['TM_PROJECT_DIRECTORY']
@test_file = ENV['TM_FILEPATH']
@symfony = ENV['SYMFONY']
end
def test_file
@test_file
end
def run
Dir.chdir @root_dir do
system "php #{@test_file}"
end
end
end
dt = SymfonyLimeTest.new
html_header "LimeTest - #{dt.test_file}"
puts "<pre><code>"
dt.run
puts "</code></pre>"
html_footer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment