helhum / ext_scaffold Goto Github PK
View Code? Open in Web Editor NEWExtension skeleton for TYPO3 >= 7.4.0 including complete test setup
Extension skeleton for TYPO3 >= 7.4.0 including complete test setup
To reflect the code, the >= 7.4.0
needs to be changed to >= 7.6.0
.
I've just tried to setup a proper testing environment with this extension as base but failed because of this reason:
In this line https://github.com/helhum/ext_scaffold/blob/master/composer.json#L24 you require typo3/cms-core
only which just installes the core extension in .Build/Web/typo3/sysext/core
When I make the following request, I get an error:
TYPO3_PATH_WEB=$PWD/.Build/Web TYPO3_PATH_ROOT=$PWD/.Build/Web .Build/bin/phpunit --colors -c .Build/vendor/nimut/testing-framework/res/Configuration/UnitTests.xml Tests/Unit
Unable to determine path to entry script. Please check your path or set an environment variable 'TYPO3_PATH_ROOT' to your root path.
because of this line: https://github.com/Nimut/testing-framework/blob/master/src/TestingFramework/Bootstrap/AbstractBootstrap.php#L138-L143 which looks for .Build/Web/typo3/index.php
which does not exist in my case.
Changing my require line to typo3/cms
fixes the problem.
PS: I have even tried it with THIS extension and the tests are not working atm.
Hi Helmut,
thanks for putting up this example.
The composer.json loads tests classes only for core and fluid tests. So the example commands you name do not work. They start tests without proper classes loaded. E.g. dbal tests.
If the aim is to have the starter run a view tests of TYPO3, quickly, a command to only run units tests of the sysext/core may be a way to go.
Henri
This will allow easy access to the current build status.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.