Documentation for typ ?

4 views
Skip to first unread message

Dirk Pranke

unread,
Jul 24, 2015, 2:55:26 PM7/24/15
to telemetry, Joel Ong, Joshua Bell, Ojan Vafai
Hi all,

Most of you probably are at least vaguely aware that telemetry_unittests and test-webkitpy are thin wrappers around the typ
library:


Right now, the documentation for typ is thin-to-nonexistent. There's command-line help, and mostly it's a wrapper around
unitttest, so it's reasonably self-explanatory, but it does have a number of features unittest doesn't that aren't that well
documented, and I don't like code w/ no documentation.

But, I don't really want to write docs that aren't that useful to people, and you all are probably the people (outside of me)
that have used it the most, which isn't saying that much ;).

What sort of documentation would you like to see? Command-line usage? API reference documentation? Cookbook examples?
Fine the way it is?

Cheers,

-- Dirk

PS. To head off a question: I've also filed crbug.com/513804 to get a standalone mirror of typ.

Dirk Pranke

unread,
Jul 28, 2015, 11:07:04 AM7/28/15
to telemetry, Joel Ong, Joshua Bell, Ojan Vafai
ping?

zh...@google.com

unread,
Jul 29, 2015, 12:21:32 PM7/29/15
to telemetry, jo...@chromium.org, jsb...@chromium.org, oj...@chromium.org, dpr...@chromium.org
I may not be able to speak for the Telemetry team. But based on my past experience working with typ, I would like to see cookbook examples and explanations on how the public hooks are used, e.g., the ones declared in runner.Runner.__init__(). Thanks!

Best
-Zhen

Nat Duca

unread,
Jul 29, 2015, 5:24:26 PM7/29/15
to Zhen Wang, telemetry, jo...@chromium.org, Joshua Bell, Ojan Vafai, Dirk Pranke
If nothing else, I'd love a basic 1,2,3 set of snippets that get you going with a typ-derived project. Eg name your test modules X_foo.py, then make a run_tests.py script taht includes blah.

Dirk Pranke

unread,
Jul 29, 2015, 5:28:39 PM7/29/15
to Nat Duca, Zhen Wang, telemetry, Joel Ong, Joshua Bell, Ojan Vafai
Sure, makes sense.
Reply all
Reply to author
Forward
0 new messages