From c63a136500658ab1cc3389454e58191595b9b5b8 Mon Sep 17 00:00:00 2001 From: Jon Nordby Date: Fri, 8 Apr 2016 01:11:01 +0200 Subject: [PATCH] mochacompat: Add some FIXMEs References #36 Hopefully last pieces to run most real tests --- spec/mochacompat.coffee | 4 ++++ src/mochacompat.coffee | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/spec/mochacompat.coffee b/spec/mochacompat.coffee index ac06150..5ad7388 100644 --- a/spec/mochacompat.coffee +++ b/spec/mochacompat.coffee @@ -141,3 +141,7 @@ describe 'Mocha compatibility runner', -> done() it 'has error message of the Chai assertion', -> chai.expect(testcase?.error).to.contain 'expected 42 to equal 41' + + describe 'suite with some skipped tests', -> + it 'skipped tests should be marked as such' + it 'non-skipped tests should be ran' diff --git a/src/mochacompat.coffee b/src/mochacompat.coffee index 2c78729..1f19c8c 100644 --- a/src/mochacompat.coffee +++ b/src/mochacompat.coffee @@ -77,8 +77,8 @@ loadSuite = (fbpSuite, suite) -> for testcase in suite.tests #console.log 't', testcase - fullName = fbpSuite.name + testcase.parent.title + testcase.title - id = testId fullName + fullName = fbpSuite.name + testcase.parent.title + testcase.title # FIXME: make the full name recursive + id = testId fullName # FIXME: salt so it does not collide testcase._fbpid = id fbpCase = name: testcase.parent.title