Meandering Soul

This day is done, I'm going home.
eFranes Penguin Avatar

Speeding up test cycles

12
Jan 2015

Codeception supports several layers of selecting which tests to actually run when you invoke codecept run. This can - among other times - be extremely useful when you’re trying to fix a bug and you really only need that one single test method to run or when you’re just doing API development and don’t need to check all of your UI integration tests for the time being.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
# run all tests in all test suites
$ ./codecept run 

# run all tests in a single test suite
$ ./codecept run <suite> 

# run a single test case in the given suite
$ ./codecept run <suite> <test>          

# run only the given method in the test case
$ ./codecept run <suite> <test>:<method>
  • Published on January 12, 2015
  • 119 words