I have this code for a Rake file
Dir.chdir("WebApp/test/selenium") do
FileList.new("**/*Test*.rb").exclude(/.*Base.*.rb/).exclude(/.*exclude.*.rb/).each do |file|
status = Process.spawn_w2("ruby #{file}")
raise "At least one selenium component test failed to pass" if status != 0
end
end
I want to turn it into a Gruntfile (I have been trying with grunt-exec) but I have no idea how to pass a Fileset that includes a pattern but excludes others.
How could I do it?