Skip to the content.

Tests

There is currently 2 automated tests available for :

Automated tests

End to end (user application)

The scope of the application and its features are basically covered; these tests are not yet very detailed but already allow to check the essential. It follows 3 dimensions, according to Strategy:

Prerequisites

The tests

Suites available by user type (screen size used) :

Tests have some name conventions :

Running the tests on an instance

  1. in your browser, launch Selenium IDE and open project tests/ladecadanse.side
  2. select a test in a suite
  3. enter the URL to test (local, prod…)
  4. run all tests in suite

Edit

…

Functional (API)

Prerequisites

The application API must be configured with its access credentials defined in app/env.php (LADECADANSE_API_USER and LADECADANSE_API_KEY)

Setup

Copy tests/.env_model to a new file tests/.env and enter the values used by your tests (URL targeted and submitted credentials)

The tests

Running the tests on an instance

php vendor/bin/codecept run

Strategy

Criteria considered to build tests suites (their scope and depth)

Depth of checks in order to meet the user expectations of user actions, by order of precision and complexity to test :

  1. links respond and in their content the basic data are displayed, according to user :
    • selection by
      • filtering
        • entity type : event, lieu…
        • entity values : region, date
        • format (html, json, rss…)
      • scope
        • detail : collection or single item
        • entity detail (values selection) : summary or detailed
    • intention : view, add/edit, delete, other (report, export…)
  2. data displayed is relevant according to filter (events : date, category, etc.) and scope (as in the previous point)
  3. users are guided in expected way by handling their mistakes (error handling, particularly in forms)
  4. data is modified exactly according to user action on it
  5. special and unexpected cases are handled