extension_builder icon indicating copy to clipboard operation
extension_builder copied to clipboard

Add basic local testing setup to generated extension

Open alexander-nitsche opened this issue 4 years ago • 1 comments

Is your feature request related to a problem? Please describe. The tests of a generated extension cannot be executed directly, but the user has to set up an individual test environment, e.g. using the official TYPO3 documentation, which is error-prone.

Describe the solution you'd like The TYPO3 Core already has a runTests.sh that handles all test scenarios in a convenient and comprehensive docker way, supporting Linux / MacOs / Windows. Generating a similar runTests.sh together with the TYPO3 extension in the Extension Builder would give the user a tool to run unit/function/acceptance tests of the extension immediately and provide inspiration for an individual test environment.

alexander-nitsche avatar Jan 07 '22 09:01 alexander-nitsche

That is already on my todo list and also related to https://github.com/FriendsOfTYPO3/extension_builder/issues/430. The main question is if we want to use "the tea way of testing" or more like the core because tea doesn't use a runTests.sh.

simonschaufi avatar Jan 07 '22 11:01 simonschaufi