Skip to content

Adding accceptance suite #10

@jcheron

Description

@jcheron

codeception.yml

delete these 3 lines:

suites:
unit:
path: .

.scrutinitzer.yml

Added:

  • zip extension
  • dev.local in hosts
  • apache2 service with:
    • mode rewrite (for an eventual .htaccess usage)
    • a local site
  • Selenium
  • Google chrome
  • some commands to run before the test

see https://github.com/phpMv/php-reactjs/blob/9d86ced20a5ffbbf94c5ec0c7e7f5c713f9c8b1f/.scrutinizer.yml#L13-L35

Acceptance folder and config

_support folder

We can use exactly the same: https://github.com/phpMv/php-reactjs/tree/main/tests/_support

The local site (tests/www)

https://github.com/phpMv/php-reactjs/tree/main/tests/www

Acceptance test sample

public function tryToHelloMessage(AcceptanceTester $I) {
	$I->amOnPage('/HelloMessage');
	$I->wait(10);
	$I->canSee('Salut Thierry', 'body');
}

The tested url and component correspond to this file: https://github.com/phpMv/php-reactjs/blob/main/tests/www/include/HelloMessage.php

Metadata

Metadata

Assignees

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions