Skip to content

GitLab

  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • Comptoir-srv Comptoir-srv
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 59
    • Issues 59
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Comptoir
  • Comptoir-srvComptoir-srv
  • Issues
  • #643
Closed
Open
Created Mar 26, 2019 by Matthieu FAURE@mfaure⛵Owner

Functional tests are not idempotent : creation of accounts

Observed behavior

Functional tests are not idempotent. When you run them for the first time, everything is OK. When you run the same tests a second time, 4 tests appear as being in error.

These four tests are in tests/Acceptance/BasicTestsAccountsCest.php:

  • createAccountAsAssociation
  • createAccountAsPerson
  • createAccountAsAdministration
  • createAccountAsServiceProvider

Expected behavior

Functional tests should be ok, even if they are run twice

Steps to reproduce

  1. Create a Comptoir in Vagrant
  2. Into the VM and from the Comptoir directory, run vendor/bin/codecept run Acceptance (all tests are green)
  3. Re-run exactly the same command: vendor/bin/codecept run Acceptance, then 4 tests are red
Assignee
Assign to
Time tracking