Commit graph

101 commits

Author SHA1 Message Date
Dan Cryer 128bfb4a94 Temporarily removing the PHPUnit tests, as they can't be made to work with the current state of the plugin 2014-05-02 14:57:44 +00:00
Dan Cryer 69ea47874f Fixing the horrors of overly long lines, misalignment, and incorrect use of new lines. 2014-05-01 16:53:29 +01:00
steve.brazier cc71045e57 Merge remote-tracking branch 'origin/master' into feature/pluginfactoryconfig
Conflicts:
	PHPCI/Builder.php
	PHPCI/Plugin/Util/Factory.php
2014-03-25 14:13:45 +00:00
steve.brazier d9ff36ddb4 Merge remote-tracking branch 'corpsee/master' 2014-03-10 09:48:50 +00:00
Corpsee 76c9676be3 Added phpunit config/bootstrap files for autostart all tests 2014-03-09 01:44:54 +07:00
meadsteve 3c1cb07e97 Update test ExamplePluginConfg.php to match test. 2014-03-02 20:10:48 +00:00
meadsteve 6d4e49d07b Add code to allow configuration for the plugin factory to be stored on a per install basis. 2014-03-02 19:59:52 +00:00
steve.brazier b60e278cf9 psr2 tidy up of logging code. 2014-02-27 14:23:51 +00:00
Steve B 3370240242 Merge pull request #267 from meadsteve/plugin-discovery
RFC: Plugin discovery
2014-02-25 22:43:38 +00:00
meadsteve 06625513d2 update email tests now that cc can be specified. 2014-02-25 22:39:37 +00:00
meadsteve 28fc30682b add FilesPluginInformation class to retrieve plugins contained with a directory. 2014-02-25 20:52:19 +00:00
meadsteve 6b2d0aebf1 rename LoadedPluginInformation to ComposerPluginInformation. 2014-02-25 19:33:00 +00:00
meadsteve 1f42741623 Merge branch 'master' of https://github.com/Block8/PHPCI into plugin-discovery 2014-02-25 19:26:25 +00:00
meadsteve 71588cd8e1 add LoadedPluginInformation class to process composer's installed.json file and pull out information about phpci plugins. 2013-12-29 17:34:41 +00:00
meadsteve e32635c474 add very basic tests for BuildInterpolator 2013-12-17 15:35:18 +00:00
meadsteve 0c12f0b98d fix monolog name spacing in tests. 2013-12-17 15:05:08 +00:00
meadsteve 30bd11f0dd fix testing namespace 2013-12-17 15:03:48 +00:00
meadsteve 051f51a222 add tests for BuildLogger 2013-12-14 11:07:04 +00:00
meadsteve 8652e579f5 move logging test 2013-12-14 10:41:21 +00:00
meadsteve 356a2293a1 move logging related classes to appropriate namespace. 2013-12-13 16:10:54 +00:00
meadsteve f05ffb3081 update executor test 2013-12-13 16:07:11 +00:00
meadsteve 1bc2117c69 extracted build logging logic from the Builder class. 2013-12-13 15:57:56 +00:00
meadsteve 3a3cc98f86 rename CommandExecutor::executeCommand() so that it's not confused with the Builder::executeCommand() 2013-12-13 14:41:02 +00:00
steve.brazier 8d8714746c move findBinary from Builder to CommandExecutor. 2013-12-12 16:17:11 +00:00
steve.brazier 1307240622 add return value tests for CommandExecutor. 2013-12-12 16:04:07 +00:00
steve.brazier 7a5aa5814f add tests for CommandExecutor. 2013-12-12 14:37:47 +00:00
steve.brazier 974aeeffdc Merge branch 'unit-testing' into plugin-builder 2013-12-06 15:18:37 +00:00
steve.brazier 52a908009d fix PhpUnit test caseing. 2013-12-06 15:17:17 +00:00
steve.brazier e1654ee4b6 add test for Executor::executePlugins 2013-12-06 13:14:19 +00:00
meadsteve 1ca8b9628c remove arguments from Executor test assertions that are not required. 2013-12-06 13:07:48 +00:00
steve.brazier 23d6238aa2 add tests for plugin executor logging 2013-12-06 13:04:27 +00:00
steve.brazier bad0737df1 add tests for Plugin Executor 2013-12-06 12:52:47 +00:00
meadsteve ee9871e4a8 add tests to LoggerConfig for handler attaching. 2013-11-28 21:36:56 +00:00
meadsteve f1052443ab add basic type checking for LoggerConfig::GetFor 2013-11-28 21:17:01 +00:00
Steve B aca6af3fec add test for non-function loader in plugin factory. 2013-11-28 14:12:50 +00:00
Steve B 9891a4be62 force plugin factory to only build plugins matching interface. 2013-11-28 14:05:26 +00:00
meadsteve 080784adc5 fix test expectations to be exact in phpunit 2013-11-25 21:48:21 +00:00
meadsteve a2c25d2d8f fix builder mocking 2013-11-25 21:30:10 +00:00
meadsteve 03a81a3283 fix whitespace. 2013-11-25 21:19:48 +00:00
meadsteve 9d1d2443a9 Move the mailer constructor logic out of the plugin and in to a factory class for reuse. 2013-11-17 21:26:38 +00:00
meadsteve 51f73458c8 allow swiftmailer object to be passed in to Email Plugin. 2013-11-17 17:50:06 +00:00
meadsteve e1d8239e8a Create factory for plugins that resources can be registered with. 2013-11-17 17:23:35 +00:00
meadsteve 637be4af63 added mocking for missing FindBinary command in phpunit tests 2013-11-03 11:48:01 +00:00
meadsteve 9a60c528dd mocked the missing build object for unit test for phpunit plugin. 2013-11-03 11:33:37 +00:00
meadsteve 84370038aa Added basic body and title for the email notifications. 2013-06-04 21:47:45 +01:00
meadsteve eaac43e0e8 Updating unit test to reflect that the test will fail without any addresses defined. 2013-06-04 20:13:15 +01:00
meadsteve d2c408f589 Updating the email plugin tests so that getSystemConfig is mocked correctly. 2013-06-01 13:31:15 +01:00
meadsteve f0a5ba50ca Filled out the Plugin\Email::sendEmail(). Pulls in the following settings from the phpci config under the heading email_settings:
smtp_address
smtp_port
smtp_username
smtp_password

and

from_address
2013-06-01 09:40:05 +01:00
meadsteve f76a2a75cc Empty Email plugin and test committed. 2013-05-31 12:56:35 +01:00
Dan Cryer 6094b7013c Add file-level docblock to every file. 2013-05-16 02:16:56 +01:00
meadsteve 2914e3a87d Added a unit test case for the PHPUnit plugin. It's not fully comprehensive but good to get these started. 2013-05-16 10:52:33 +01:00