{"id":111322,"date":"2017-02-27T22:45:27","date_gmt":"2017-02-27T22:45:27","guid":{"rendered":"http:\/\/www.timestored.com\/b\/?p=111322"},"modified":"2017-04-13T10:50:21","modified_gmt":"2017-04-13T10:50:21","slug":"qunit-adds-an-html-diff-report","status":"publish","type":"post","link":"https:\/\/www.timestored.com\/b\/qunit-adds-an-html-diff-report\/","title":{"rendered":"qUnit adds an HTML Diff Report"},"content":{"rendered":"<p><a href=\"http:\/\/timestored.com\/kdb-guides\/kdb-regression-unit-tests\">qUnit<\/a> has added a new HTML report to allow visually easily seeing the difference between expected kdb results and actual results. To generate a report you could call:<\/p>\n<p><code><\/p>\n<pre>.qunit.generateReport[.qunit.runTests[]; `:html\/qunit.html]<\/pre>\n<p><\/code><\/p>\n<p><a href=\"http:\/\/timestored.com\/kdb-guides\/kdb-regression-unit-tests#test-report\"><img src=\"http:\/\/timestored.com\/images\/qunit-test-html-report.png\" alt=\"qUnit HTML Diff\" style='border:1px solid #444'\/><\/a><\/p>\n<p>It&#8217;s also added a <code><\/p>\n<pre>.qunit.assertKnown[actualResult; expectedFilename; msg]<\/pre>\n<p><\/code> call to allow comparing an actual results to a file on disk. While allow easy updating of that file and avoiding naming collisions.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>qUnit has added a new HTML report to allow visually easily seeing the difference between expected kdb results and actual results. To generate a report you could call: .qunit.generateReport[.qunit.runTests[]; `:html\/qunit.html] It&#8217;s also added a .qunit.assertKnown[actualResult; expectedFilename; msg] call to allow comparing an actual results to a file on disk. While allow easy updating of that [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_bbp_topic_count":0,"_bbp_reply_count":0,"_bbp_total_topic_count":0,"_bbp_total_reply_count":0,"_bbp_voice_count":0,"_bbp_anonymous_reply_count":0,"_bbp_topic_count_hidden":0,"_bbp_reply_count_hidden":0,"_bbp_forum_subforum_count":0},"categories":[2],"tags":[85,98,86],"_links":{"self":[{"href":"https:\/\/www.timestored.com\/b\/wp-json\/wp\/v2\/posts\/111322"}],"collection":[{"href":"https:\/\/www.timestored.com\/b\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.timestored.com\/b\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.timestored.com\/b\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/www.timestored.com\/b\/wp-json\/wp\/v2\/comments?post=111322"}],"version-history":[{"count":10,"href":"https:\/\/www.timestored.com\/b\/wp-json\/wp\/v2\/posts\/111322\/revisions"}],"predecessor-version":[{"id":111333,"href":"https:\/\/www.timestored.com\/b\/wp-json\/wp\/v2\/posts\/111322\/revisions\/111333"}],"wp:attachment":[{"href":"https:\/\/www.timestored.com\/b\/wp-json\/wp\/v2\/media?parent=111322"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.timestored.com\/b\/wp-json\/wp\/v2\/categories?post=111322"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.timestored.com\/b\/wp-json\/wp\/v2\/tags?post=111322"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}