Perform the bootstrap command on a copied test directory which has a tests directory and a codeception.dist.yml file.
$ codecept bootstrap
[Exception]
Codeception is already installed in this directory
Is this a bug or expected behavior? If it is by design, what about allowing it? It would be useful when it is needed to copy a tests directory in a working project area to a test server and perform bootstrap.
What do you expect bootstrap command to do if tests directory and codeception.yml file exists?
I would suggest keeping original files if exist and create missing required files. Or possibly add a command option -overwrite or something to overwrite those existent files.
At the moment, it seems even if a tests directory exists, the bootstrap command does not fail. Also acceptance.suite.dist.yml, functional.suite.dist.yml, unit.suite.dist.yml, _bootstrap.php can be placed prior to performing the command. But then, if codeception.dist.yml exists, it fails, which gave me an impression that the behavior is inconsistent.
I don't think that this is a bug.
Most helpful comment
I would suggest keeping original files if exist and create missing required files. Or possibly add a command option
-overwriteor something to overwrite those existent files.At the moment, it seems even if a
testsdirectory exists, thebootstrapcommand does not fail. Alsoacceptance.suite.dist.yml,functional.suite.dist.yml,unit.suite.dist.yml,_bootstrap.phpcan be placed prior to performing the command. But then, ifcodeception.dist.ymlexists, it fails, which gave me an impression that the behavior is inconsistent.