[Kstars-devel] Test cases in KStars

Rafał Kułaga rl.kulaga at gmail.com
Sun Oct 30 20:25:16 UTC 2011


Hi!

>From my experience, adding (decent and meaningful) test cases after a
large piece of code is written can be much harder than writing the
code itself, so I wish you luck in writing them :-)

For GUI-related stuff, simple "manual" tests can be more effective
that automated tests, because latter are in this case really hard to
write. Jason's QA check list looks like a good approach to this
problem.

Writing test cases for numerical stuff is not my story, so I can't
comment on that.

I think that the most important thing to fix in KStars is its data
storage/loading. Currently, if you change any entries in most of the
*.dat files, KStars can crash because of many strong assumptions about
file contents in *load() methods. Storing stuff in databases would be
much better choice.

Also, shouldn't we have some kind of development branch for commits
that could introduce regressions? Committing such changes to master
branch is like walking on the razor's edge.

Cheers,
Rafal


2011/10/30 Akarsh Simha <akarshsimha at gmail.com>:
> Hi
>
> I believe that one of the things that we should have but do not have
> are test cases.
>
> I don't know anything about writing test cases, so I'm asking for
> help. I might not be able to implement any of this until vacations in
> December, but I'm just trying to get some ideas about it, and if
> someone wants to go ahead and write some tests, that would be good
> too.
>
> KStars is pretty tightly bound, so testing could be a problem, but I
> think a lot of the computational routines can be tested. However, I
> don't know if it is superfluous, for instance, to test things like
> EquatorialToHorizontal, and I don't have much else in mind that can be
> tested.
>
> Looking forward to some suggestions and ideas.
>
> Also, Jason used to do a Quality Assurance list before every
> release. The list is somewhat outdated, but that might be a good
> source to look for behaviors to write test cases for:
>
> http://techbase.kde.org/Projects/Edu/KStars/QA_List_4.6
>
> Regards
> Akarsh
> _______________________________________________
> Kstars-devel mailing list
> Kstars-devel at kde.org
> https://mail.kde.org/mailman/listinfo/kstars-devel
>


More information about the Kstars-devel mailing list