New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Proposal - Add new event methods to Test Framework #651

Closed
chapmandu opened this Issue Jul 22, 2016 · 2 comments

Comments

2 participants
@chapmandu
Member

chapmandu commented Jul 22, 2016

New methods:

beforeAll() - executes once per request before the first has run
afterAll() - executes once per request after all tests have finished
packageSetup() - executes once per package before the first has run (and before setup()
packageTeardown() - executes once per package after tests have run (after teardown())

So in this sequence...

beforeAll()

/* Foo.cfc package */
packageSetup()

setup()
test_something()
teardown()

setup()
test_something_else()
teardown()

packageTeardown()
// end Foo.cfc

/* Bar.cfc package */
packageSetup()

setup()
test_something()
teardown()

packageTeardown()
// end Bar.cfc

afterAll()
  • beforeAll()
  • afterAll()
  • packageSetup()
  • packageTeardown()
  • Document new functions
  • Document tests request lifecycle (order of function execution)
  • Document processAction()
  • Document getRedirect()
  • Document format parameter [html|junit|json]

@chapmandu chapmandu added this to the 2.0.0 milestone Jul 22, 2016

@neokoenig

This comment has been minimized.

Member

neokoenig commented Jul 22, 2016

Yes, great idea; This would really help tracking down those really odd caching things in-between tests which occasionally crop up too.

@chapmandu chapmandu self-assigned this Jul 22, 2016

chapmandu added a commit that referenced this issue Jul 22, 2016

@chapmandu

This comment has been minimized.

@chapmandu chapmandu closed this Jul 29, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment