Skip to content

Commit

Permalink
(refactor) Update testCase to include pickle object
Browse files Browse the repository at this point in the history
  • Loading branch information
gd46 committed Oct 7, 2017
1 parent 6c8bad2 commit c18e04a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/runtime/test_case_runner.js
Original file line number Diff line number Diff line change
Expand Up @@ -154,11 +154,13 @@ export default class TestCaseRunner {
this.emitPrepared()
this.emit('test-case-started', {})
await this.runHooks(this.beforeHookDefinitions, {
sourceLocation: this.testCaseSourceLocation
sourceLocation: this.testCaseSourceLocation,
pickle: this.testCase.pickle
})
await this.runSteps()
await this.runHooks(this.afterHookDefinitions, {
sourceLocation: this.testCaseSourceLocation,
pickle: this.testCase.pickle,
result: this.result
})
this.emit('test-case-finished', { result: this.result })
Expand Down

0 comments on commit c18e04a

Please sign in to comment.