-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathphpunit.xml
More file actions
58 lines (52 loc) · 2.1 KB
/
Copy pathphpunit.xml
File metadata and controls
58 lines (52 loc) · 2.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
<?xml version="1.0" encoding="UTF-8"?>
<!--
RiskOps - PHPUnit yapılandırması
İKİ AYRI TAKIM, İKİ AYRI ÖN YÜKLEYİCİ
=====================================
unit -> tests/bootstrap-unit.php VERİTABANI GEREKTİRMEZ
integration -> tests/bootstrap-app.php gerçek bootstrap + veritabanı
Neden ayrı: uygulamanın kendi bootstrap'ı ayar tablosunu okuduğu
için her zaman veritabanına gider. Saf mantığı (dil devri kuralı,
maskeleme, skor hesabı, ay penceresi) sınamak için veritabanı
kurmak gereksiz bir engeldir - katkı vermek isteyen biri
"composer test:unit" ile hiçbir kurulum yapmadan
çalıştırabilmeli.
Çalıştırma:
composer test # ikisi de
composer test:unit # veritabanısız
composer test:integration # veritabanı gerekir
-->
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="vendor/phpunit/phpunit/phpunit.xsd"
colors="true"
failOnWarning="true"
failOnRisky="true"
failOnDeprecation="true"
beStrictAboutOutputDuringTests="true"
displayDetailsOnTestsThatTriggerWarnings="true"
displayDetailsOnTestsThatTriggerErrors="true"
cacheDirectory=".phpunit.cache">
<testsuites>
<testsuite name="unit">
<directory>tests/Unit</directory>
</testsuite>
<testsuite name="integration">
<directory>tests/Integration</directory>
</testsuite>
</testsuites>
<source>
<include>
<directory suffix=".php">includes</directory>
</include>
<exclude>
<directory suffix=".php">includes/layout</directory>
<directory suffix=".php">includes/partials</directory>
</exclude>
</source>
<php>
<!-- Testler ortamı kendileri kurar; dışarıdan gelen bayrak sızmasın. -->
<env name="RISKOPS_ENV" value="development"/>
<env name="RISKOPS_DEBUG" value=""/>
<env name="RISKOPS_DEMO" value=""/>
</php>
</phpunit>