From: SourceForge.net <no...@so...> - 2009-12-01 02:20:28
|
Feature Requests item #1647993, was opened at 2007-01-30 15:01 Message generated for change (Comment added) made by sf-robot You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=365278&aid=1647993&group_id=15278 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: None >Status: Closed Resolution: None Priority: 5 Private: No Submitted By: G. Cooper (inanutshell) Assigned to: Nobody/Anonymous (nobody) Summary: @RunWith(LightweightParameters) Initial Comment: The intended use of Parameterized unit tests is for large amounts of data. With this in mind the most time-efficient convention to refer to an individual parameter is by index, i.e. "myTest[3912]". In cases where the data is a much smaller set and the user is willing to take a small performance hit, it would be nice to be able to refer to/see the parameters by a name, i.e. "myTest['testTwoPlusTwo']", "myTest['searchWithLastNameOnly']", etc. As was discussed on the JUnit mailing list ("Which parameter in my list failed?", 2007-01-29), something like a "@RunWith(LightweightParameters)" or "@RunWith(NamedParameters)", which would "look for a getTestName() method on the test object in order to create a test name" may be a good solution. ---------------------------------------------------------------------- >Comment By: SourceForge Robot (sf-robot) Date: 2009-12-01 02:20 Message: This Tracker item was closed automatically by the system. It was previously set to a Pending status, and the original submitter did not respond within 14 days (the time period specified by the administrator of this Tracker). ---------------------------------------------------------------------- Comment By: David Saff (dsaff) Date: 2009-11-16 17:52 Message: This tracker is being shut down. Please move this item to http://github.com/KentBeck/junit/issues ---------------------------------------------------------------------- Comment By: David Saff (dsaff) Date: 2007-07-27 15:50 Message: Logged In: YES user_id=325156 Originator: NO Tibor, We could potentially build a method-renaming facility into the runners that ship with JUnit, but we would still have no control over third-party runners. If you have a particular use case in mind, consider opening another feature request. Thanks, David Saff ---------------------------------------------------------------------- Comment By: Tibor (bekesit) Date: 2007-07-26 22:08 Message: Logged In: YES user_id=1359662 Originator: NO Hi, This would be a great feature to be able to override the description of a test that should be used/displayed by all the runners. I would highly appreciate if this description could be set programatically to any string not only for parameterized tests, but for any kind of tests. Best regards, Tibor ---------------------------------------------------------------------- Comment By: Havard Rast Blok (havardrb2) Date: 2007-03-12 09:28 Message: Logged In: YES user_id=779926 Originator: NO I would also very much prefer such an option. As an alternative, maybe the existing Parameterized runner could have an option to include the parameters in its description. Example: "testAdd[0]: 1, 2, 3" "testAdd[1]: 2, 2, 4" ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=365278&aid=1647993&group_id=15278 |