Skip to content

Instantly share code, notes, and snippets.

@andreasneuber
Last active October 4, 2022 06:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save andreasneuber/f2acf6d0fc845011b92b10d880dc9342 to your computer and use it in GitHub Desktop.
Save andreasneuber/f2acf6d0fc845011b92b10d880dc9342 to your computer and use it in GitHub Desktop.
For an even quicker Codeception quickstart on Windows 10 ;-)
for /f "delims=" %%a in ('wmic OS get localdatetime ^| find "."') do set datetime=%%a
set "YYYY=%datetime:~0,4%"
set "MM=%datetime:~4,2%"
set "DD=%datetime:~6,2%"
set "HH=%datetime:~8,2%"
set "MI=%datetime:~10,2%"
set "SS=%datetime:~12,2%"
set fullstamp=%YYYY%-%MM%-%DD%-%HH%-%MI%-%SS%
echo %fullstamp%
mkdir %fullstamp%
timeout 1
cd %fullstamp%
git init
echo .idea/> .gitignore
echo .vscode/>> .gitignore
echo .DS_Store/>> .gitignore
echo. >> .gitignore
echo vendor/>> .gitignore
echo tests/_output/>> .gitignore
echo tests/_support/_generated/>> .gitignore
echo. >> .gitignore
echo codeception.yml>> .gitignore
call composer require "codeception/codeception" --dev
php vendor/bin/codecept bootstrap
php vendor/bin/codecept build
php vendor/bin/codecept generate:cest Acceptance First
copy codeception.yml codeception.dist.yml
pause
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment