From: SourceForge.net <no...@so...> - 2009-12-01 02:20:34
|
Feature Requests item #1247104, was opened at 2005-07-28 20:50 Message generated for change (Comment added) made by sf-robot You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=365278&aid=1247104&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: Elliotte Rusty Harold (elharo) Assigned to: Nobody/Anonymous (nobody) Summary: @Ignore by platform Initial Comment: I'm not fully up on annotations yet, so my apologies if this is just not possible, but it strikes me that it would be nice if @Ignore took a platform parameter of some kind. That is I;d like to say something like @Ignore(platform=macos) to skip running the test on the Mac. or perhaps it should be the reverse, and this should only run the test on the Mac. I frequently encounter two cases where this would be useful: 1. tests that expose platform bugs and thus fail on one platform but not others. 2. Tests that are specific to a platform. For instance. on Windows I might test that the File menu has an Exit menu item but I wouldn't make that test on a Mac. Perhaps this parameter (or do we need two?) could even be generic. i.e. it could be used on @Test, @Before, @After as well as @Ignore. But something like this would be very helpful. ---------------------------------------------------------------------- >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: Elliotte Rusty Harold (elharo) Date: 2006-10-06 14:12 Message: Logged In: YES user_id=226817 I suspect the @Prerequisite annotation would satisfy this use case. ---------------------------------------------------------------------- Comment By: David Saff (dsaff) Date: 2006-09-30 17:39 Message: Logged In: YES user_id=325156 Interesting. Can you give an example where Antirequesite would be useful? It doesn't look like @Platform, as described here, would give you that functionality, either. ---------------------------------------------------------------------- Comment By: Elliotte Rusty Harold (elharo) Date: 2006-09-29 14:30 Message: Logged In: YES user_id=226817 More or less, though some of the use cases I have in mine are more of an Antirequisite than prerequisite. For instance, I often what to say run this test *unless* something is true, rather than run this test *only if* something is true. Of course you could reverse the logic (run this test if something is not true) but that's usually more opaque. ---------------------------------------------------------------------- Comment By: David Saff (dsaff) Date: 2006-09-29 13:56 Message: Logged In: YES user_id=325156 I agree with the previous comment. Elliotte, would 1447312 satisfy your needs? ---------------------------------------------------------------------- Comment By: Henk van Voorthuijsen (voorth) Date: 2006-04-26 09:54 Message: Logged In: YES user_id=261177 Interestingly, this could be handled as a special case of 1447312... ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=365278&aid=1247104&group_id=15278 |