diff --git a/lib/tasks/qunit.rake b/lib/tasks/qunit.rake
index 061ae69ffb6..07e9a48b6ed 100644
--- a/lib/tasks/qunit.rake
+++ b/lib/tasks/qunit.rake
@@ -37,6 +37,16 @@ task "qunit:test" => :environment do
     test_path = "#{Rails.root}/vendor/assets/javascripts"
     cmd = "phantomjs #{test_path}/run-qunit.js http://localhost:#{port}/qunit"
 
+    options = {}
+
+    %w{module filter}.each do |arg|
+      options[arg] = ENV[arg.upcase] if ENV[arg.upcase].present?
+    end
+
+    if options.present?
+      cmd += "?#{options.to_query.gsub('+', '%20')}"
+    end
+
     # wait for server to respond, will exception out on failure
     tries = 0
     begin