Skip to content

Commit

Permalink
mochacompat: Add some FIXMEs
Browse files Browse the repository at this point in the history
References #36
Hopefully last pieces to run most real tests
  • Loading branch information
jonnor committed Apr 8, 2016
1 parent 12d6159 commit c63a136
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions spec/mochacompat.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -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'
4 changes: 2 additions & 2 deletions src/mochacompat.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c63a136

Please sign in to comment.