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-Driven Development #32

Open
fernandocastor opened this issue May 6, 2013 · 6 comments
Open

Test-Driven Development #32

fernandocastor opened this issue May 6, 2013 · 6 comments

Comments

@fernandocastor
Copy link
Member

I was thinking about, from now on, adopting a more test-driven approach to developing Groundhog. You guys ever heard about that? If not, take a look at http://en.wikipedia.org/wiki/Test-driven_development. I think it is very useful from specification and design perspectives, much more so than from a testing viewpoint. What do you think?

@rodrigoalvesvieira
Copy link
Contributor

Yes, I'm very used to TDD. It's just that as a starter-level Java dev, I'm not very used to JUnit, but the way TDD frameworks work don't vary too much. I'm enthusiastic about having tests in Groundhog.

@gustavopinto, do you have previous experience with JUnit? If so, I'll ask that whenever possible you create the test structure and some initial, basic test so I can fully get how the tool works and implement other tests. We'll also have to see how we'll mock 1 the tests so that they don't actually perform requests to the forges' APIs.

@fernandocastor
Copy link
Member Author

This is true, Rodrigo. Mocking it up will be important, since we have no control over the database (the forges).

@gustavopinto
Copy link
Member

hey @rodrigoalvesvieira, I actually had committed some test code. They need improvements, I know.. In relation to mock, I highly recommend mockito. I'll plug it whenever possible.

@rodrigoalvesvieira
Copy link
Contributor

Oh I see :)

I'll add more then when I have the time.

@dnr2
Copy link
Member

dnr2 commented May 8, 2013

Very nice!!

I've never used this test-driven approach before, although I've already studied this subject in the software engineering course! I will take a look on this again, but I believe that it won't be a problem for me anyway.

@rodrigoalvesvieira
Copy link
Contributor

I started a branch for the mocks https://github.com/spgroup/groundhog/tree/tests-mocking

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

4 participants