Skip to content
This repository has been archived by the owner on Apr 27, 2021. It is now read-only.

More granular test results #6

Open
ljharb opened this issue May 8, 2015 · 3 comments
Open

More granular test results #6

ljharb opened this issue May 8, 2015 · 3 comments

Comments

@ljharb
Copy link

ljharb commented May 8, 2015

ArrayMethods isn't particularly useful to me. However, an exact report of which methods passed and failed would be wonderful.

The design I think would be amazing is (using "supports" as the root report object):
supports.Array.prototype = true = all tested Array.prototype methods pass
supports.Array.prototype.fill = true = Array.prototype.fill passes
supports.Array = all tested Array methods pass
supports.Array.of = Array.of passes
… and so forth.

For everything that's an API method, this would be very clean. You could then do supports.syntax.arrowFunctions etc if there was concern about namespace overlapping. Alternatively, the above could be supports.api.Array etc.

(filed per https://twitter.com/getify/status/596773738277785600)

@getify
Copy link
Owner

getify commented May 8, 2015

Thanks! Will come back and post some thoughts ASAP. :)

@Mouvedia
Copy link

Just to be sure you want supports.A to only report the support at the first level?
If supports.A.* are supported but supports.A.B.C isn't, would supports.A be true?

@ljharb
Copy link
Author

ljharb commented Jun 13, 2016

@Mouvedia no, I'd want supports.A passing to indicate that every single test nested in that namespace passed.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants