Revision: 86dce768d729
Branch: default
Author: Pekka Klärck
Date: Thu Feb 6 12:34:59 2014 UTC
Log: report.html: Test search support also full name.
Update issue 1634
Support also full name with test search.
http://code.google.com/p/robotframework/source/detail?r=86dce768d729
Modified:
/src/robot/htmldata/rebot/model.js
/src/robot/htmldata/rebot/report.html
=======================================
--- /src/robot/htmldata/rebot/model.js Wed Feb 5 13:17:55 2014 UTC
+++ /src/robot/htmldata/rebot/model.js Thu Feb 6 12:34:59 2014 UTC
@@ -132,7 +132,10 @@
test.message = data.message;
test.matchesTagPattern = function (pattern) {
return containsTagPattern(test.tags, pattern);
- }
+ };
+ test.matchesNamePattern = function (pattern) {
+ return util.Matcher(pattern).matchesAny([test.name,
test.fullName]);
+ };
return test;
}
=======================================
--- /src/robot/htmldata/rebot/report.html Thu Feb 6 11:03:45 2014 UTC
+++ /src/robot/htmldata/rebot/report.html Thu Feb 6 12:34:59 2014 UTC
@@ -257,7 +257,7 @@
else
tests = window.testdata.suite().allTests();
return util.filter(tests, function (test) {
- if (testPattern && !util.Matcher(testPattern).matches(test.name))
+ if (testPattern && !test.matchesNamePattern(testPattern))
return false;
if (includePattern && !test.matchesTagPattern(includePattern))
return false;
--
---
You received this message because you are subscribed to the Google Groups "robotframework-commit" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to robotframework-commit+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.