Skip to content
This repository has been archived by the owner on Mar 12, 2024. It is now read-only.

Commit

Permalink
updated tests & added tests target
Browse files Browse the repository at this point in the history
  • Loading branch information
schmunk42 committed Dec 29, 2015
1 parent 0cf98f5 commit 054e65f
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 65 deletions.
6 changes: 5 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ else
DOCKER_HOST_IP ?= 127.0.0.1
endif

.PHONY: help default all open bash build setup clean update run-tests TEST STAGE
.PHONY: help default all open bash build setup clean update tests clean-tests run-tests TEST STAGE

default: help

Expand Down Expand Up @@ -58,6 +58,10 @@ clean: ##@docker remove application containers
$(DOCKER_COMPOSE) kill
$(DOCKER_COMPOSE) rm -fv

tests:
$(MAKE) build
$(MAKE) TEST setup up clean-tests run-tests

clean-tests:
$(DOCKER_COMPOSE) run --rm $(PHP_SERVICE) sh -c 'codecept clean'

Expand Down
8 changes: 0 additions & 8 deletions tests/codeception/acceptance/allow_fail/AboutCept.php

This file was deleted.

51 changes: 0 additions & 51 deletions tests/codeception/acceptance/allow_fail/ContactCept.php

This file was deleted.

8 changes: 3 additions & 5 deletions tests/codeception/acceptance/allow_fail/HomeCept.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,8 @@

$I = new AcceptanceTester($scenario);

$I->wantTo('ensure that home page works');
$I->wantTo('ensure that home page is not visible without login');
$I->amOnPage(Yii::$app->homeUrl);
$I->see(getenv('APP_NAME'));
$I->seeLink('About');
$I->click('About');
$I->see('This is the About page.');
$I->dontSee(getenv('APP_NAME'));
$I->seeLink('Login');
$I->makeScreenshot('home');

0 comments on commit 054e65f

Please sign in to comment.