mirror of https://github.com/FriendsOfTYPO3/tea.git synced 2024-12-22 23:06:11 +01:00

[FEATURE] Allow stand-alone tests

This commit is contained in:
Oliver Klee 2017-05-05 18:00:40 +02:00
parent 2902815998
commit 15dc45eca7
4 changed files with 35 additions and 38 deletions

15
.gitignore vendored
View file

@ -1,14 +1,6 @@
#########################
# global ignore file
########################
# ignoring temporary files (left by e.g. vim)
# ignoring by common IDE's used directories/files
# dont ignore .rej and .orig as we want to see/clean files after conflict resolution
#
# for local exclude patterns please edit .git/info/exclude
#
*~
*.bak
.Build/*
*.idea
*.project
*.swp
@ -19,8 +11,5 @@
.settings
.TemporaryItems
.webprj
composer.lock
nbproject
# Ignore documentation folders generated by the extension builder.
doc/
Documentation.tmpl/

View file

@ -1,24 +0,0 @@
<phpunit
backupGlobals="true"
backupStaticAttributes="false"
bootstrap="../../../../typo3/sysext/core/Build/UnitTestsBootstrap.php"
colors="false"
convertErrorsToExceptions="true"
convertWarningsToExceptions="true"
forceCoversAnnotation="false"
processIsolation="false"
stopOnError="false"
stopOnFailure="false"
stopOnIncomplete="false"
stopOnSkipped="false"
verbose="false"
>
<testsuites>
<testsuite name="Unit tests">
<directory>../Tests/Unit/</directory>
</testsuite>
<testsuite name="Functional tests">
<directory>../Tests/Functional/</directory>
</testsuite>
</testsuites>
</phpunit>

View file

@ -11,6 +11,9 @@ records both using the PHPUnit extension testing framework and DBUnit.
The functional test for the Utility/FileUtility class provides examples
for working with [vfsStream](https://github.com/mikey179/vfsStream/).
For information on the different ways to execute the tests, please have a look
at the [handout to my workshops on test-driven development (TDD)](https://github.com/oliverklee/tdd-reader).
## About me (Oliver Klee)

View file

@ -17,13 +17,42 @@
"tea": "self.version",
"typo3-ter/tea": "self.version"
},
"repositories": [
{
"type": "composer",
"url": "https://composer.typo3.org/"
}
],
"require": {
"typo3/cms-core": "^7.6.0 || ^8.7.0"
"typo3/cms": "^7.6.0"
},
"require-dev": {
"namelesscoder/typo3-repository-client": "^1.2",
"nimut/testing-framework": "^1.0",
"mikey179/vfsStream": "^1.4",
"typo3-ter/phpunit": "*",
"phpunit/phpunit": "^4.7 || ^5.0"
},
"config": {
"vendor-dir": ".Build/vendor",
"bin-dir": ".Build/bin"
},
"scripts": {
"post-autoload-dump": [
"mkdir -p .Build/Web/typo3conf/ext/",
"[ -L .Build/Web/typo3conf/ext/tea ]|| ln -snvf ../../../../. .Build/Web/typo3conf/ext/tea"
]
},
"autoload": {
"psr-4": {
"OliverKlee\\Tea\\": "Classes/",
"OliverKlee\\Tea\\Tests\\": "Tests/"
}
},
"extra": {
"typo3/cms": {
"cms-package-dir": "{$vendor-dir}/typo3/cms",
"web-dir": ".Build/Web"
}
}
}