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

Test suite not correctly written #1

Open
jerryjohnjacob opened this issue Jul 19, 2016 · 1 comment
Open

Test suite not correctly written #1

jerryjohnjacob opened this issue Jul 19, 2016 · 1 comment

Comments

@jerryjohnjacob
Copy link

When we write tests, we don't usually check whether an instance of a class responds to a particular method. Instead, we check whether that method behaves correctly given various situations/scenarios. Your tests should ensure that in the event of code changes, the original functionality is still intact (these are what we call regression tests - just a fancy term).

Let's look at the tests written for the plugin handler and the resume maker. I can change the internal implementation of the methods and the tests wouldn't catch the changes.

Let me know if you need help understanding this more.

@sherfin94
Copy link
Owner

Issue well understood. I shall write tests that tests the internal implementation of the given entity.

So instead of checking whether it responds to all those method calls, I have to see if they are performing the tasks(or making the internal changes they should make). Got it, thanks.

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

No branches or pull requests

2 participants