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

Create Unit Test Cases for each testable unit. #29

Open
alvin-reyes opened this issue Dec 28, 2016 · 1 comment
Open

Create Unit Test Cases for each testable unit. #29

alvin-reyes opened this issue Dec 28, 2016 · 1 comment
Assignees

Comments

@alvin-reyes
Copy link
Collaborator

No description provided.

@alvin-reyes alvin-reyes self-assigned this Dec 28, 2016
@alvin-reyes alvin-reyes modified the milestones: v1.1.0, v1.1.0-RC1 Dec 30, 2016
@aurasphere
Copy link
Collaborator

I'm working on a test infrastructure that will make the tests really simple to implement. You wil extend a base test class and you will have to implement two methods. The first one is the usual defineBehavior from the BaseBehavior/AbstractFbBot. The second one will return an array of an expected result objects which is a tuple of messages to be send to the bot and result expected from Facebook. If the result mismatch, the tests fail. The infrastructure will also skip automatically the tests if the environment variables are not set, so it will pass local builds.

@aurasphere aurasphere self-assigned this Jan 4, 2017
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