smarter autotest integration when running alongside rspec2
This commit is contained in:
parent
742812f522
commit
928decefd7
@ -7,11 +7,12 @@ module JasmineMixin
|
|||||||
klass::ALL_HOOKS << [ :run_jasmine, :ran_jasmine ]
|
klass::ALL_HOOKS << [ :run_jasmine, :ran_jasmine ]
|
||||||
end
|
end
|
||||||
|
|
||||||
attr_accessor :is_jasmine_running, :jasmine_to_run
|
attr_accessor :is_jasmine_running, :jasmine_to_run, :jasmine_ran_once
|
||||||
|
|
||||||
def initialize
|
def initialize
|
||||||
super()
|
super()
|
||||||
setup_jasmine_project_mappings
|
setup_jasmine_project_mappings
|
||||||
|
jasmine_ran_once = false
|
||||||
end
|
end
|
||||||
|
|
||||||
def get_to_green
|
def get_to_green
|
||||||
@ -20,6 +21,7 @@ module JasmineMixin
|
|||||||
super if find_files_to_test
|
super if find_files_to_test
|
||||||
|
|
||||||
reset_jasmine(:yes)
|
reset_jasmine(:yes)
|
||||||
|
self.last_mtime = Time.at(0) if !options[:no_full_after_start] && !jasmine_ran_once
|
||||||
run_jasmine if find_files_to_test
|
run_jasmine if find_files_to_test
|
||||||
|
|
||||||
self.is_jasmine_running = :all
|
self.is_jasmine_running = :all
|
||||||
@ -50,6 +52,8 @@ module JasmineMixin
|
|||||||
end
|
end
|
||||||
|
|
||||||
hook :ran_jasmine
|
hook :ran_jasmine
|
||||||
|
|
||||||
|
jasmine_ran_once = true
|
||||||
end
|
end
|
||||||
|
|
||||||
def all_jasmine_good
|
def all_jasmine_good
|
||||||
|
Loading…
Reference in New Issue
Block a user