bellangelo / test-the-cloud

此包的最新版本(dev-main)没有可用的许可信息。

PHPUnit 扩展,用于测试您的云基础设施

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

This package is auto-updated.

Last update: 2024-09-08 11:02:23 UTC


README

A PHPUnit 扩展,用于测试您的云基础设施。

安装

composer require bellangelo/test-the-cloud

配置扩展

<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>

路线图

  • 通过配置加载 AWS 凭据。
  • 断言资源包含标签。
  • 在资源中强制执行命名约定。
  • 添加对 PHPUnit 10+ 的支持。