Uwe,
Test suites are always a great thing. I think I created a test case for
each of the changes that I made - certainly the major ones. I have made
no real attempt build tests for the existing code, so the coverage is
not good. Without tests for existing functionality the tests won't
catch regressions.
Good test cases, without an issue to address, are difficult to write.
You can cover the base cases, but the corner cases escape you, and
that's always where the bugs are.
We should be able to run the tests on Android and on J2SE. There is
support for JUnit on Android. So long as we don't lose even the minimal
tests that we have, I don't much care. If there's a way to use Ruboto
on Android and Ruby on a PC against the same codebase, that's fine with me.
I think that test cases are an ongoing effort , retrofitting with 100%
coverage might be quite a project. Shooting for more test cases by
1.0.0 is good, 100% and we'll probably never release.
A good place to start would be a test case that covers the regression.
Jim
PS Is anyone on any of the SQLite mailing lists? It might be good to
announce the SQLDroid project there. Tests or no tests, I think
SQLDroid is more reliable and feature complete than other J2SE SQLite
JDBC drivers (totally unbiased opinion!).
On 10/26/2012 07:21 AM, Uwe Kubosch wrote:
> Before releasing the 1.0.0 version, I think we should have a working
> test suite.
>
> I experienced a regression between version 0.3.0 and 1.0.0.RC1, and we
> really should avoid that.
>
> I can add a test suite using Ruboto. I am on the Ruboto team, and that
> is how I use SQLDroid, so that is the natural way for me to test it.
> Does anybody else want to add a test suite in another way? Please speak
> up! I will back up any effort on this.
>
> If we decide that adding a test suite using Ruboto is OK, I would like
> some input on how to organise the test project. The easiest way for me
> is to convert the project to a Ruboto project. That will pollute the
> project a little, but makes testing very easy. I will push a proposal on
> how to do this on a "ruboto" branch so you can see how I imagine we can
> do it. Again, I welcome input on other ways to do it, for example as a
> separate test project independent of the core project.
>
> When a test suite is in place, we will run it on a continuos integration
> server on every commit to avoid regressions.
>
> What do you think?
>
> —
> Reply to this email directly or view it on GitHub
> <
https://github.com/SQLDroid/SQLDroid/issues/5>.
>
--
Jim Redman
(505) 662 5156 x85
http://www.ergotech.com