Skip to content

Latest commit

 

History

History
38 lines (32 loc) · 1.64 KB

README.md

File metadata and controls

38 lines (32 loc) · 1.64 KB

Testify test demo package to start Codeception tests

We want to show you how to build your own tests from scratch

Installation guide

We use here a setup for our local Chrome browser. This is important to develop things. You can also go a way with the offical selenium docker chrome container and TigerVLC zu connect you. But on our daily work we use this.

For a client with a Mac we setup this little step tutorial. Roland Golla is working on Ubuntu and can also do his work. For windows user its a better way to go with npm packages.

Installation steps

Use environment vars to make this run local and on the Testify online tool. Please without the last "/".

export WEBDRIVER_URL="127.0.0.1" && export WEBSITE_URL="https://www.wikipedia.de"

Install Chromedriver to connect your Selenium server to your local browser. Can be that there is also a way to only use Chromedriver. But we do not know this so far ;)

brew cask install chromedriver

Install a local Selenium server. It runs by default on port 4444

brew install selenium-server-standalone

Run your tests. The parameter --steps will show you the steps on the terminal. --html will generate a HTML report and -vvv gives you better verbose information.

vendor/bin/codecept run acceptance --steps --html -vvv

Run a single test cest

vendor/bin/codecept run acceptance Search --steps --html -vvv

Run a specific test

vendor/bin/codecept run acceptance Search/SearchCest:autocompleteItemsMatchSearchWord --steps --html -vvv

Offical webpage Testify by Never Code Alone

Testify Never Code Alone