Feature Request: Xcode/XCTest should be able mark certain tests as ignored.
| Originator: | designatednerd | ||
| Number: | rdar://20030006 | Date Originated: | 03-Mar-2015 05:52 PM |
| Status: | Open | Resolved: | |
| Product: | Developer Tools | Product Version: | 6.1.1 |
| Classification: | Enhancement | Reproducible: | Not Applicable |
Summary: I would love XCTest to steal a page out of JUnit 4 and Android Studio’s book and add some kind of way to mark that certain tests should be ignored, then display those ignores to the user. The documentation for the @Ignore annotation is available here: http://junit.sourceforge.net/javadoc/org/junit/Ignore.html - perhaps something similar to the new nullable/nonnullable annotations could be used. Steps to Reproduce: 1. Write a test 2. Have some known issue that makes you need to temporarily disable the test (usually: Someone broke something on the server) 3. Realize you have to either use the DISABLED hack (described here: http://www.objc.io/issue-15/xctest.html) or comment out your test until that issue is addressed. Expected Results: 1. Write a test 2. Have some known issue that makes you need to temporarily disable the test. 3. Add ignore annotation, have test skipped and visibly marked as skipped. Actual Results: (see “steps to reproduce”) Regression: None Notes: This has actually come in SUPER handy with my android testing - the tests being marked as ignored make it clear that those tests exist but are not being run. See attached screenshot.
Comments
Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!
Here's the screenshot I attached