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