mirror of
https://github.com/cypress-io/cypress.git
synced 2026-05-24 09:29:35 -05:00
driver: properly bind to Cypress for counting pending tests
This commit is contained in:
@@ -1,14 +1,11 @@
|
||||
pending = []
|
||||
|
||||
Cypress.on "test:after:run", (test) ->
|
||||
if test.state is "pending"
|
||||
pending.push(test)
|
||||
|
||||
describe "src/cypress/runner", ->
|
||||
context "pending tests", ->
|
||||
pending = []
|
||||
|
||||
beforeEach ->
|
||||
cy.on "test:after:run", (test) ->
|
||||
if test.state is "pending"
|
||||
pending.push(test)
|
||||
|
||||
return null
|
||||
|
||||
it "is not pending", ->
|
||||
|
||||
it "is pending 1"
|
||||
|
||||
Reference in New Issue
Block a user