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

Switch to run() over setUp() and tearDown() #24

Merged
merged 5 commits into from
Mar 6, 2013
Merged

Switch to run() over setUp() and tearDown() #24

merged 5 commits into from
Mar 6, 2013

Conversation

Fluxx
Copy link
Owner

@Fluxx Fluxx commented Feb 23, 2013

Changes the Exam case to use run() with custom setup and teardown functionality, as opposed to piggy backing on testunit's default setUp and tearDown hooks being called.

This has a few advantages:

  1. It simplifies the code
  2. It allows users of Exam to define their own setUp or tearDown methods in their test cases without needing to call super to ensure the exam versions ran.
  3. Simplifies the API a test runner must implement to be compatible with Exam to just run().

This PR also has some further code cleanup and readability improvements.

@tkaemming
Copy link
Collaborator

+1

Fluxx added a commit that referenced this pull request Mar 6, 2013
Switch to run() over setUp() and tearDown()
@Fluxx Fluxx merged commit 3e10e8c into master Mar 6, 2013
@Fluxx Fluxx deleted the switch_to_run branch March 6, 2013 18:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants