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

Betty unit test. #88

Open
wants to merge 17 commits into
base: dev
Choose a base branch
from
Open

Betty unit test. #88

wants to merge 17 commits into from

Conversation

ghost
Copy link

@ghost ghost commented May 16, 2014

Add OS executor test suite.

@ghost
Copy link
Author

ghost commented May 16, 2014

Add DateTime executor unit test.

@ghost ghost changed the title Add OS executor unit test. Betty unit test. May 16, 2014
@igorrKurr
Copy link
Contributor

I think that it is not very good approach when you add functionality just to make test pass.
I've implemented my vision of module test in #101 .
I think it's a little better than that version because it allows strictly check if module methods was correct.

@ghost
Copy link
Author

ghost commented May 20, 2014

  1. OS executor test suite. Update: Change the way it tests the specified module functionality as suggested by Jeff Pickhardt. Now the test suite is more robust.

@ghost
Copy link
Author

ghost commented May 20, 2014

  1. DateTime executor test suite. Update: Change the way it tests the specified module functionality as suggested by Jeff Pickhardt. Now the test suite is more robust.

@ghost
Copy link
Author

ghost commented May 20, 2014

  1. Count executor test suite.

@ghost
Copy link
Author

ghost commented May 20, 2014

  1. Find executor test suite.

@ghost
Copy link
Author

ghost commented May 20, 2014

I think that it is not very good approach when you add functionality just to make test pass.
I've implemented my vision of module test in #101 .
I think it's a little better than that version because it allows strictly check if module methods was correct

Nope. The purpose of these test suites are not checking the correctness of specified module methods. The correct purpose is to see that does the specified module return our preferred command or not?

@ghost
Copy link
Author

ghost commented May 20, 2014

  1. Internet executor test suite.

@ghost
Copy link
Author

ghost commented May 20, 2014

@pickhardt need you to participate here.
@pannous need you to participate here.

@igorrKurr
Copy link
Contributor

The correct purpose is to see that does the specified module return our preferred command or not?

Yes, but you've said what I mean.In your new tests you've checked functionality.But in previous version you've not.So my comment was about that.Now your tests seem to be ok.

Nope. The purpose of these test suites are not checking the correctness of specified module methods.

You test module here.So as much aspects you'd test as better your test suite is.I understand that you can't write test on help methods, but all other methods module functionality depends on are better to cover.Maybe not now, but it is good practice when your test coverage is high.

@pickhardt
Copy link
Owner

The new tests you wrote are pretty good, @Ch0c0late. @igorrKurr's approach to testing is better because he tests the actual command response, and because he doesn't add functionality to the actual code just for the purposes of testing.

I can't automatically merge this pull request due to merge conflicts. Probably because I just merged this one https://github.com/pickhardt/betty/pull/101/files Can you fix the merge conflicts?

@ghost
Copy link
Author

ghost commented May 21, 2014

@pickhardt Should I merge the upstream change(those the @igorrKurr wrote) into this branch?

@pickhardt
Copy link
Owner

Yeah, you'll have to merge the current dev into your branch.

Sent from my Android.
On May 20, 2014 11:10 PM, "Muhammad Hussein Nasrollahpour" <
[email protected]> wrote:

@pickhardt https://github.com/pickhardt Should I merge the upstream
change(those the @igorrKurr https://github.com/igorrKurr wrote) into
this branch?

Reply to this email directly or view it on GitHubhttps://github.com//pull/88#issuecomment-43715580
.

@ghost
Copy link
Author

ghost commented May 21, 2014

@pickhardt Thanks. I'm going to merge it.

@ghost
Copy link
Author

ghost commented May 21, 2014

@pickhardt Merged dev into betty unit-test branch. Hope it works correctly.

@ghost
Copy link
Author

ghost commented May 27, 2014

@pickhardt Wrote test for all of betty's modules.

@brysgo
Copy link
Collaborator

brysgo commented Jul 30, 2014

These integration tests look great!

In terms of test style, can I get someone to look at #129

@ghost
Copy link
Author

ghost commented Jul 30, 2014

@brysgo Took a look at it. Looks good.

@brysgo
Copy link
Collaborator

brysgo commented Jul 30, 2014

Getting these tests in is high priority for me. I'm going to merge in my fun tests and we can use the test configuration from it here.

@brysgo
Copy link
Collaborator

brysgo commented Jul 30, 2014

If you rebase this off the current dev branch, you can run bundle then rake to run the tests.

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.

3 participants