#microformats 2017-03-30

2017-03-30 UTC
chrisaldrich and hectorMcSpector joined the channel
#
hectorMcSpector
Hi Folks
#
hectorMcSpector
I wondering how best to implement the https://github.com/microformats/tests over in Any23-land
#
hectorMcSpector
I would like some advice on how best to make assertions.
#
hectorMcSpector
Right now, our test logic takes a few forms... 1) comparison of entire extracted statements, 2) comparison of statement constituents, and 3) comparison of the number of extracted statements.
#
hectorMcSpector
I get the fact that the test suite provides both sample HTML snippets and corresponding JSON identifying the extracted Microformats.
#
hectorMcSpector
Is the best way just to work through each test manually and derive the result type(s) and propert(ies) manually?
#
hectorMcSpector
Any guidance would be very much appreciated.
#
hectorMcSpector
BTW, the Any23 codebase can be found over at http://any23.apache.org for anyone interested.
[kevinmarks] joined the channel
#
KartikPrabhu
hectorMcSpector: what do you mean by "derive the result type(s) and propert(ies) manually?"
hober joined the channel
#
KartikPrabhu
I think the intention of the test suite is so that the HTML and the JSON to be compared are both given
#
hectorMcSpector
Hi @KartikPrabhu
#
hectorMcSpector
What I mean is that the format of the JSON results is not something which I can currently compare very easily given the output format Any23 currently writes to.
#
hectorMcSpector
We write out statements
#
hectorMcSpector
?s ?p ?o
#
hectorMcSpector
or quads
#
KartikPrabhu
oh, most microformats parsers will output a JSON like tree structure
#
KartikPrabhu
you could convert the JSON-like tree into your favourite format if you'd like
#
hectorMcSpector
... yeah. We don't. However I could just write a microformtas test writer which will.
#
hectorMcSpector
I think that is the solution
tantek joined the channel
#
hectorMcSpector
I can just add a new MicroformatsTestWriter to our existing writer package http://any23.apache.org/apidocs/index.html?org/apache/any23/writer/package-summary.html
#
hectorMcSpector
Thanks KartikPrabhu
#
KartikPrabhu
hectorMcSpector: sure, sorry couldn't be more helpful
#
hectorMcSpector
;)
[cleverdevil], nitot_ and barpthewire joined the channel
pniedzielski[m], martymcguire[m], [dgold], [kevinmarks], nitot, [cleverdevil], [eddie], KartikPrabhu, [keithjgrant], termie, tommorris_, Erkan_Yilmaz_, Guest76513, gRegorLove, tantek, [mko], [aaronpk] and [acegiak_net] joined the channel