{"id":852,"date":"2008-05-07T20:09:47","date_gmt":"2008-05-07T18:09:47","guid":{"rendered":"http:\/\/notizblog.org\/?p=852"},"modified":"2023-11-21T11:12:46","modified_gmt":"2023-11-21T10:12:46","slug":"microformats-testsuites","status":"publish","type":"post","link":"https:\/\/notiz.blog\/2008\/05\/07\/microformats-testsuites\/","title":{"rendered":"Microformats Testsuites"},"content":{"rendered":"\n<p>In den letzten Tagen wurde in der Microformats-Community viel \u00fcber das Thema standardisiertes Parsen und einheitliches Darstellen der verschiedenen Mikroformate (<a href=\"http:\/\/microformats.org\/wiki\/hCard\">hCard<\/a> im speziellen) diskutiert.<\/p>\n\n\n\n<p>Leider gab es bisher keinen einheitlichen &#8222;Microformats-Acid-Tests&#8220; sondern nur <a href=\"https:\/\/web.archive.org\/web\/20130828214444\/http:\/\/examples.tobyinkster.co.uk\/hcalendar-acid1.html\">vereinzelte<\/a> (projektspezifische) Seiten um einige Spezialf\u00e4lle zu testen.<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter\"><img decoding=\"async\" src=\"https:\/\/notiz.blog\/wp-content\/uploads\/2008\/05\/microformats-testsuites.jpg\" alt=\"microformats-testsuites.jpg\" \/><\/figure>\n\n\n\n<p><a href=\"https:\/\/web.archive.org\/web\/20190405130616\/https:\/\/glennjones.net\/\">Glenn Jones<\/a>, einer der Macher von <a href=\"https:\/\/web.archive.org\/web\/20121114174332\/http:\/\/lab.backnetwork.com:80\/ufXtract\/\">ufXtract<\/a> hat jetzt eine sehr sch\u00f6ne <a href=\"https:\/\/web.archive.org\/web\/20110922130627\/http:\/\/www.ufxtract.com\/testsuite\/\">Microformats-Testsuite<\/a> erstellt, die parser-unabh\u00e4ngig funktionieren soll um eventuelle Interpretationsfehler erkennen und vergleichen zu k\u00f6nnen.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">The Testrunner<\/h4>\n\n\n\n<p>Um die Tests so einfach wie m\u00f6glich zu gestalten, hat Glenn einen einen JavaScript-Testrunner entwickelt (siehe Screenshot). Testen kann man den <em>Runner<\/em> unter z.B. <a href=\"https:\/\/web.archive.org\/web\/20080510130400\/http:\/\/ufxtract.com:80\/testsuite\/hcard\/1.0\/hcard1.htm\">http:\/\/ufxtract.com\/testsuite\/hcard\/1.0\/hcard1.htm<\/a> in dem man einfach <strong>Alt + X<\/strong> dr\u00fcckt (<strong>CTRL + ALT + X<\/strong> auf dem Mac).<\/p>\n\n\n\n<p>Hier sei nochmal erw\u00e4hnt warum es so wichtig ist, dass jeder Parser das gleiche (micro)JSON-Format nutzt:<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n\t<p>Please note that at this stage the JSON standardisation process can cause a test to be marked as failed when it could be judged to have passed. <a href=\"https:\/\/web.archive.org\/web\/20100328104729\/http:\/\/www.glennjones.net:80\/Post\/836\/Microformatstest-suiteconcept.htm\">#<\/a><\/p>\n<\/blockquote>\n\n\n\n<p>Nur bei einer gleichen JSON-Struktur kann der Output sinnvoll verglichen werden. Eine erste Version der <abbr title=\"JSON hCard\">jCard<\/abbr> (danke nochmal an <a href=\"https:\/\/web.archive.org\/web\/20090211121813\/http:\/\/lib.omnia-computing.de:80\/hcardmapper\">Gordon Oheim<\/a> f\u00fcr sein Engagement) findet man im <a href=\"http:\/\/microformats.org\/wiki\/jcard\">Microformats-Wiki<\/a>.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Testsuite-API<\/h4>\n\n\n\n<p>Wer die Testsuite f\u00fcr seinen eigenen Parser einsetzen will, sollte sich mal die <a href=\"https:\/\/web.archive.org\/web\/20131230115402\/http:\/\/www.ufxtract.com:80\/proxies\/proxy.aspx\">Testsuite-API<\/a> zu Gem\u00fcte f\u00fchren.<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n\t<p>Rather than just build something in isolation I thought it would be nice to find a way to share this work with the community. <a href=\"https:\/\/web.archive.org\/web\/20100328104729\/http:\/\/www.glennjones.net:80\/Post\/836\/Microformatstest-suiteconcept.htm\">#<\/a><\/p>\n<\/blockquote>\n\n\n\n<p>Gro\u00dfartige Arbeit!<\/p>\n\n\n\n<p>Interessante Links zu dem Thema:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n\t<li><a href=\"https:\/\/web.archive.org\/web\/20100328104729\/http:\/\/www.glennjones.net:80\/Post\/836\/Microformatstest-suiteconcept.htm\">Microformats test-suite concept<\/a><\/li>\n\t<li><a href=\"http:\/\/groups.google.com\/group\/microformats\/browse_thread\/thread\/f0e2baa3ace94448\">hCalendar Acid Test #1<\/a><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>In den letzten Tagen wurde in der Microformats-Community viel \u00fcber das Thema standardisiertes Parsen und einheitliches Darstellen der verschiedenen Mikroformate (hCard im speziellen) diskutiert. Leider gab es bisher keinen einheitlichen &#8222;Microformats-Acid-Tests&#8220; sondern nur vereinzelte (projektspezifische) Seiten um einige Spezialf\u00e4lle zu testen. Glenn Jones, einer der Macher von ufXtract hat jetzt eine sehr sch\u00f6ne Microformats-Testsuite erstellt, [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"webmentions_disabled_pings":false,"webmentions_disabled":false,"activitypub_content_warning":"","activitypub_content_visibility":"","activitypub_max_image_attachments":4,"activitypub_interaction_policy_quote":"anyone","activitypub_status":"","footnotes":""},"categories":[2],"tags":[5171,164,195,410,600,599],"class_list":{"0":"post-852","1":"post","2":"type-post","3":"status-publish","4":"format-standard","6":"category-web","7":"tag-fediblog","8":"tag-microformats","9":"tag-operator","10":"tag-optimus","11":"tag-testsuite","12":"tag-ufxtract","13":"h-entry","14":"hentry"},"_links":{"self":[{"href":"https:\/\/notiz.blog\/wp-api\/wp\/v2\/posts\/852","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/notiz.blog\/wp-api\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/notiz.blog\/wp-api\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/notiz.blog\/wp-api\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/notiz.blog\/wp-api\/wp\/v2\/comments?post=852"}],"version-history":[{"count":3,"href":"https:\/\/notiz.blog\/wp-api\/wp\/v2\/posts\/852\/revisions"}],"predecessor-version":[{"id":24369,"href":"https:\/\/notiz.blog\/wp-api\/wp\/v2\/posts\/852\/revisions\/24369"}],"wp:attachment":[{"href":"https:\/\/notiz.blog\/wp-api\/wp\/v2\/media?parent=852"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/notiz.blog\/wp-api\/wp\/v2\/categories?post=852"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/notiz.blog\/wp-api\/wp\/v2\/tags?post=852"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}