Opened 12 years ago

Closed 11 years ago

#6 closed task (fixed)

Unit tests

Reported by: tobixen Owned by: guaka
Priority: major Milestone:
Component: FrameWork Keywords: test


We should most certainly have some kind of automated tests browsing through at least the more critical parts of the site to see if it works as expected.

Tobias has some experience with this.

Change History (9)

comment:1 Changed 12 years ago by philipp

  • Owner changed from yj to philipp

comment:2 Changed 12 years ago by philipp

  • Owner philipp deleted

comment:3 Changed 11 years ago by guaka

  • follow_up set to none
  • freq_reported set to 1
  • Owner set to guaka
  • show_on_bw set to 0
  • Summary changed from Look into functional tests to Unit tests

I changed the title from "Look into functional tests" into "Unit tests", since that's more appropriate.

comment:4 Changed 11 years ago by guaka

I'm going for SimpleTest.

comment:5 Changed 11 years ago by guaka

proof of concept in [4195] and [4196]

I will add some more before closing this ticket

comment:6 Changed 11 years ago by guaka

  • Keywords test added

comment:7 Changed 11 years ago by tobixen

Great that we get some test code :-)

As I've understood it, unit tests are bottom-up tests of units, like classes, methods and functions. In my experience, unit tests are good for ensuring that things work as intended from the start.

Functional tests are top-down tests for checking that the functionality works as expected, i.e. by browsing the pages. In my experience, functional tests have been very good for preventing a commit from screwing up old functionality.

I think that for this project at this stage, functional tests are more important than unit tests.

comment:8 Changed 11 years ago by guaka

I created #426 for functional tests.

Indeed, unit testing and functional testing is quite different. Both are important. Unit testing seems easier to set up, and now I just want to do something useful to get started.

comment:9 Changed 11 years ago by guaka

  • Resolution set to fixed
  • Status changed from new to closed

I've been trying to add more but haven't found anything to add yet.

If you know something nice to add, let me know and reopen this ticket :)

Note: See TracTickets for help on using tickets.