bellangelo/test-the-cloud

There is no license information available for the latest version (dev-main) of this package.

PHPUnit extension to test your cloud infrastructure

dev-main 2023-11-08 00:55 UTC

This package is auto-updated.

Last update: 2024-05-08 10:20:29 UTC


README

A PHPUnit extension for testing your cloud infrastructure.

Installation

composer require bellangelo/test-the-cloud

Configuring the extension

<phpunit
	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	xsi:noNamespaceSchemaLocation="vendor/phpunit/phpunit/phpunit.xsd"
	bootstrap="vendor/autoload.php"
>
+	<extensions>
+		<extension class="Bellangelo\TestTheCloud\Extension">
+			<arguments>
+				<array>
+					<element key="template">
+						<string>my-template</string>
+					</element>
+				</array>
+			</arguments>
+		</extension>
	</extensions>
	<testsuites>
		<testsuite name="unit">
			<directory>test/Unit/</directory>
		</testsuite>
	</testsuites>
</phpunit>

Roadmap

  • Load AWS credentials through the configuration.
  • Assert resources contain tag.
  • Enforce name conventions in resources.
  • Add support for PHPUnit 10+.