From c83102c6650b1e9dfdd3586a0ec76db07c950e83 Mon Sep 17 00:00:00 2001 From: Brian Gough Date: Tue, 31 Jan 2017 10:40:05 +0000 Subject: [PATCH] add debugging to acceptance tests --- .../clsi/test/acceptance/coffee/ExampleDocumentTests.coffee | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/services/clsi/test/acceptance/coffee/ExampleDocumentTests.coffee b/services/clsi/test/acceptance/coffee/ExampleDocumentTests.coffee index f7f82ac12c..23c3407bf3 100644 --- a/services/clsi/test/acceptance/coffee/ExampleDocumentTests.coffee +++ b/services/clsi/test/acceptance/coffee/ExampleDocumentTests.coffee @@ -23,7 +23,7 @@ compare = (originalPath, generatedPath, callback = (error, same) ->) -> if stderr.trim() == "0 (0)" callback null, true else - console.log stderr + console.log "compare result", stderr callback null, false compareMultiplePages = (project_id, callback = (error) ->) -> @@ -72,11 +72,13 @@ describe "Example Documents", -> it "should generate the correct pdf", (done) -> Client.compileDirectory @project_id, fixturePath("examples"), example_dir, 4242, (error, res, body) => + console.log "DEBUG: error", error, "body", body pdf = Client.getOutputFile body, "pdf" downloadAndComparePdf(@project_id, example_dir, pdf.url, done) it "should generate the correct pdf on the second run as well", (done) -> Client.compileDirectory @project_id, fixturePath("examples"), example_dir, 4242, (error, res, body) => + console.log "DEBUG: error", error, "body", body pdf = Client.getOutputFile body, "pdf" downloadAndComparePdf(@project_id, example_dir, pdf.url, done)