jira.codehaus.org

  • Log In Access more options
    • Online Help
    • Keyboard Shortcuts
    • About JIRA
    • JIRA Credits
    • What?s New
  • Dashboards Access more options (Alt+d)
  • Projects Access more options (Alt+p)
  • Issues Access more options (Alt+i)
  • JtestR
  • JTESTR-59

No output when no tests found.

  • Log In
  • Views
    • XML
    • Word
    • Printable

Details

  • Type: Improvement Improvement
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: JtestR 0.3
  • Fix Version/s: JtestR 0.3.1
  • Component/s: Test running
  • Labels:
    None

Description

When no tests are found by for some reason (wrong src dir for tests specified, user has forgotten to let the class extend TestCase, etc) jtestr run is very quiet which can be confusing for new users:
test:
[jtestr] [debug] finding tests
[jtestr] [debug] loading helpers
[jtestr] [debug] loading factories
BUILD SUCCESSFUL

It would be helpful with a line that warns that no tests have been found, or at least "0 tests, 0 errors, 0 failed".

  • Options
    • Sort By Name
    • Sort By Date
    • Ascending
    • Descending
    • Download All

Attachments

  1. File
    result_report.diff
    22/Jul/08 2:27 AM
    20 kB
    Lars Westergren

Activity

Ascending order - Click to sort in descending order
  • All
  • Comments
  • Work Log
  • History
  • Activity
Hide
Permalink
Lars Westergren added a comment - 22/Jul/08 2:27 AM

Here is a first attempt at fixing this, I've basically just added an array that keeps track of results. Testrun methods are now expected to return a resultset that responds to aggregate_results.

I haven't added any new tests for this yet unfortunately.

Show
Lars Westergren added a comment - 22/Jul/08 2:27 AM Here is a first attempt at fixing this, I've basically just added an array that keeps track of results. Testrun methods are now expected to return a resultset that responds to aggregate_results. I haven't added any new tests for this yet unfortunately.
Hide
Permalink
Ola Bini added a comment - 14/Aug/08 9:47 AM

Sorry, I will not apply this until there is some tests that document the behavior. =)

Show
Ola Bini added a comment - 14/Aug/08 9:47 AM Sorry, I will not apply this until there is some tests that document the behavior. =)
Hide
Permalink
Ola Bini added a comment - 14/Aug/08 2:25 PM

Also, the patch includes lots of changes due to whitespace and things like colons being replaced with 'then' statements in case-whens. Lots of noise that have nothing to do with the functionality. =/

Show
Ola Bini added a comment - 14/Aug/08 2:25 PM Also, the patch includes lots of changes due to whitespace and things like colons being replaced with 'then' statements in case-whens. Lots of noise that have nothing to do with the functionality. =/
Hide
Permalink
Ola Bini added a comment - 15/Aug/08 3:05 AM

This has been fixed on trunk, by implementing an aggregator object that gets sent to the generic result handler.

Show
Ola Bini added a comment - 15/Aug/08 3:05 AM This has been fixed on trunk, by implementing an aggregator object that gets sent to the generic result handler.

People

  • Assignee:
    Ola Bini
    Reporter:
    Lars Westergren
Vote (0)
Watch (0)

Dates

  • Created:
    10/Jul/08 3:41 AM
    Updated:
    17/Aug/08 6:47 AM
    Resolved:
    15/Aug/08 3:05 AM
  • Atlassian JIRA (v5.0.4#731-sha1:3aa7374)
  • Report a problem
  • Powered by a free Atlassian JIRA open source license for Codehaus. Try JIRA - bug tracking software for your team.