DjangoBB

Django based forum engine

  • You are not logged in.

#1 July 25, 2012 19:01:47

jedie
From: germany
Registered: 2012-07-12
Posts: 160
Reputation: +  1  -
Profile   Send e-mail  

unittests...

There are only a few unittests

What is the plan to add more tests?

IMHO it's a good idea to add a “unittest project” to test a “real” running forum.




Some of my Projects:
* Migrate phpBB to DjangoBB with django-phpBB3
* DjangoBB github repro and information about my changes
* PyLucid CMS written in Django: http://www.pylucid.org/

Offline

#2 Aug. 1, 2012 10:14:02

slav0nic
DjangoBB Developer
From: Ukraine
Registered: 2009-10-25
Posts: 382
Reputation: +  5  -
Profile   Send e-mail  

unittests...

jedie
There are only a few unittests
yep and i planned dropped it and rewrite, because it stupid in some part ))

i reopened http://djangobb.org/ticket/29 ticket, release is impossible without tests
also i planned integrate bitten for CI and coverage

Offline

#3 Aug. 2, 2012 11:32:36

jedie
From: germany
Registered: 2012-07-12
Posts: 160
Reputation: +  1  -
Profile   Send e-mail  

unittests...

What's about to add a minimal project for use it in unittests?
Then we can test e.g. the ban stuff, see: http://support.djangobb.org/post/1279/




Some of my Projects:
* Migrate phpBB to DjangoBB with django-phpBB3
* DjangoBB github repro and information about my changes
* PyLucid CMS written in Django: http://www.pylucid.org/

Offline

#4 Aug. 2, 2012 13:34:02

slav0nic
DjangoBB Developer
From: Ukraine
Registered: 2009-10-25
Posts: 382
Reputation: +  5  -
Profile   Send e-mail  

unittests...

jedie
is it actually needed?
maybe testing middleware without project not a big problem

Offline

#5 Aug. 2, 2012 14:01:05

jedie
From: germany
Registered: 2012-07-12
Posts: 160
Reputation: +  1  -
Profile   Send e-mail  

unittests...

You can test more things if there is a testproject.

Beside test for small parts it's a good idea if tests starts at the beginning and check the end: The beginning is send POST/GET via unittest client and the end are assertions of the html response. So you test the complete process.

e.g.:
* check if post form exists for different user type: no form if anonymous and guest post disabled
* test something like “hidden stuff for user groups”
* checking permissions




Some of my Projects:
* Migrate phpBB to DjangoBB with django-phpBB3
* DjangoBB github repro and information about my changes
* PyLucid CMS written in Django: http://www.pylucid.org/

Offline

Board footer

Moderator control

Powered by DjangoBB

Lo-Fi Version