Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • D digitec-wiki
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
  • Deployments
    • Deployments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • Digitec
  • digitec-wiki
  • Wiki
  • phpstorm codeception

Last edited by Mike McLin Sep 17, 2014
Page history
This is an old version of this page. You can view the most recent version or browse the history.

phpstorm codeception

Home / PhpStorm / Running Codeception Tests

Running Codeception Tests in PhpStorm


Setting up the Codeception config

  • Choose the Run > Edit Configurations... menu item.
    • Alternatively, you can also find the Edit Configurations... option in the dropdown located on the PhpStorm toolbar, near the Run button (has green "play" icon).
  • Click the + icon, and add a new PHP Script configuration
  • Name it something like Codeception or Codeception Unit based on how you intend to configure the run.
  • In the File: field, provide a link to the codecept phar file. e.g. /Users/mikemclin/Sites/kd-app/private/vendor/bin/codecept.
  • In the Arguments: field, provide whatever commands you want codecept to run. Here are a few examples:
    • run: Run all tests
    • run unit Run unit test suite
    • run acceptance Run acceptance test suite
    • run path/to/specific/tests Run tests only in this directory
    • See Codeception: Running Tests for more solutions
  • In the Custom working directory: field, provide your app's root directory. e.g. /Users/mikemclin/Sites/kd-app

Running Codeception Tests

  • First, make sure the your Codeception configuration is the current configuration for the PhpStorm Run tool
    • You can select it from the dropdown located on the PhpStorm toolbar, near the Run button (has green "play" icon).
    • Alternatively, you can choose Run > Run... from the menu.
  • Now, you can run your tests
    • Click the Run button (has green "play" icon) on the PhpStorm toolbar
    • Alternatively, you can choose Run > Run 'Codeception' (or whatever you named your config) from the menu.
    • The keyboard shortcut is ctrl + r
Clone repository
  • alpha beta testing
  • browser testing
  • camtasia licenses
  • code delivery processes
  • coding practices
  • css and sass coding standards
  • database schema standards
  • dependency management
  • development environments
  • digitec agile process
  • digitec gitlab styles
  • digitec software promises
  • digitec spec process
  • gitlab administration
  • gitlab issues tags
View All Pages