Skip to content

Commit cf46cd9

Browse files
committed
Added basic configuration for tests
1 parent 7efa47c commit cf46cd9

File tree

11 files changed

+58
-0
lines changed

11 files changed

+58
-0
lines changed

.gitattributes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
.gitattributes export-ignore
22
.gitignore export-ignore
33
.travis.yml export-ignore
4+
codeception.yml export-ignore
45
docs export-ignore
56
tests export-ignore

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,6 @@
11
/vendor
2+
/tests/_log/*
3+
/tests/_temp/*
24
/composer.lock
5+
6+
!.gitkeep

codeception.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
paths:
2+
tests: tests
3+
log: tests/_log
4+
data: tests/_data
5+
helpers: tests/_helpers
6+
7+
settings:
8+
bootstrap: _bootstrap.php
9+
suite_class: \PHPUnit_Framework_TestSuite
10+
colors: false
11+
memory_limit: 1024M
12+
log: true
13+
14+
extensions:
15+
enabled:
16+
- Arachne\Codeception\Tracy\Logger
17+
18+
coverage:
19+
enabled: true
20+
include:
21+
- src/*

tests/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
*SuiteGuy.php

tests/_bootstrap.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
<?php
2+
3+
require_once __DIR__ . '/../vendor/autoload.php';

tests/_log/.gitkeep

Whitespace-only changes.

tests/_temp/.gitkeep

Whitespace-only changes.

tests/integration.suite.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
error_level: "E_ALL"
2+
3+
class_name: IntegrationSuiteGuy
4+
5+
modules:
6+
enabled:
7+
- Nette
8+
config:
9+
Nette:
10+
configFiles:
11+
- tests/integration/config/config.neon

tests/integration/_bootstrap.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
<?php

tests/run.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,4 @@
11
./vendor/bin/phpcs -p --standard=vendor/arachne/coding-style/ruleset.xml src
2+
./vendor/bin/phpcs -p --standard=vendor/arachne/coding-style/ruleset.xml --ignore=_* tests
3+
./vendor/bin/codecept build
4+
./vendor/bin/codecept run integration

0 commit comments

Comments
 (0)