swiftlang/swift
Auf GitHub ansehen[SR-5362] StdlibUnittest allows redeclaration of the same-named test; ignores all but last
Open
#47.936 geöffnet am 3. Juli 2017
buggood first issuestandard library
Repository-Metriken
- Stars
- (69.989 Stars)
- PR-Merge-Metriken
- (Durchschn. Merge 7T 6h) (556 gemergte PRs in 30 T)
Beschreibung
| Previous ID | SR-5362 |
| Radar | rdar://problem/33107335 |
| Original Reporter | @dabrahams |
| Type | Bug |
| Status | In Progress |
| Resolution |
| Votes | 0 |
| Component/s | Standard Library |
| Labels | Bug, StarterBug |
| Assignee | None |
| Priority | Medium |
md5: fc8e733c68f3cbbcf633f37b9a56c975
Issue Description:
For example, these two tests have the same name. The first one wouldn't pass, but it never gets run because of the second one.
This affects the reliability and maintainability of our testing. Someone needs to make StdlibUnittest cause a hard error in these cases, identify all the duplicated tests, strip out the bogus ones, and rename any others.
Note: the particular bogus tests referenced here will probably be gone from master by the time this bug is addressed. The links point to an older version of the file.