Skip to content
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
9 tasks done
chapmandu opened this issue Jul 22, 2016 · 2 comments
Closed
9 tasks done

Proposal - Add new event methods to Test Framework #651

chapmandu opened this issue Jul 22, 2016 · 2 comments
Assignees
Milestone

Comments

@chapmandu
Copy link
Contributor

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
Copy link
Contributor

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
Copy link
Contributor Author

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

No branches or pull requests

2 participants