Skip Menu |
 

This queue is for tickets about the Devel-PerlySense CPAN distribution.

Report information
The Basics
Id: 67853
Status: new
Priority: 0/
Queue: Devel-PerlySense

People
Owner: Nobody in particular
Requestors: user42 [...] zip.com.au
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: ps/expected-test-count and Test.pm
Date: Sat, 30 Apr 2011 09:54:09 +1000
To: bug-Devel-PerlySense [...] rt.cpan.org
From: Kevin Ryde <user42 [...] zip.com.au>
Download (untitled) / with headers
text/plain 518b
When running a Test.pm test script outside of the test harness there's no summary for ps/expected-test-count to pick up. It might as the last thing it tries, look for the last ok or not ok for how many tests were actually run, ;; in a raw run of a Test.pm (without the test harness) there's ;; no count summary, look for the last "ok" or "not ok" (goto-char (point-max)) (if (re-search-backward "^\\(not \\)?ok \\([0-9]+\\)$" nil t) (throw 'count-string (string-to-number (match-string 2))))


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.