Testing is complex. We need some simpletests. #324226: Write handbook section for country_code should help define what tests need to assess.

Comments

nedjo’s picture

Priority: Normal » Critical

If we can get at least some basic testing in place, this is probably our best use of time aside from fixing already identified bugs.

catch’s picture

Here's an initial testing plan and more or less the order we should do them in:

* Enable languages in locale
* Enable and disable countries in country code (check for default + checkbox behaviour)
* Enable and disable languages for countries
* Associate countries with language (check for language creation)
* Create some translated content (inc. content type setup)
* Enable country and language switcher blocks
* Test behaviour of country and language switcher blocks and how this interacts with country code configuration options (force global/session variables for this probably)
* Path rewrite checking
* Views*

- for views, I think probably create a view manually, export it, put this into a variable within the test, import and enable it from there.

Please add anything you can think of to this, I'll start writing them a bit later today.

nedjo’s picture

Status: Active » Fixed

Initial set of tests in place for adding countries and languages. Currently, all tests pass. Nice work, catch and stella!

We'll open separate issues now for further tests.

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.