Closed thekid closed 3 years ago
At least for the classes inside the com.amazon.aws.lambda package - the ones in xp.lambda heavily interact with processes and files and may be more easy to simply try out.
com.amazon.aws.lambda
xp.lambda
$ xp coverage -p src/main/php/ src/test/php # ... Tests: 35 passed Memory used: 12548.45 kB (18002.38 kB peak) Time taken: 0.052 seconds Coverage: 30.95% lines covered (65/210) ┌──────────────────────────────────────────────────────┬─────────┬──────┐ │ Class │ % Lines │ Not │ ╞══════════════════════════════════════════════════════╪═════════╪══════╡ │ com.amazon.aws.lambda.Context │ 91.43% │ 3 │ │ com.amazon.aws.lambda.Environment │ 92.86% │ 1 │ │ com.amazon.aws.lambda.Handler │ 88.89% │ 1 │ │ xp.lambda.AwsRunner │ 0.00% │ 33 │ │ xp.lambda.CreateRuntime │ 0.00% │ 23 │ │ xp.lambda.DisplayError │ 0.00% │ 3 │ │ xp.lambda.PackageLambda │ 0.00% │ 39 │ │ xp.lambda.Runner │ 0.00% │ 20 │ │ xp.lambda.Sources │ 100.00% │ │ │ xp.lambda.TestLambda │ 0.00% │ 10 │ └──────────────────────────────────────────────────────┴─────────┴──────┘
Coverage for src/main/php/com/amazon:
src/main/php/com/amazon
Tests: 41 passed Memory used: 10964.78 kB (11022.99 kB peak) Time taken: 0.062 seconds Coverage: 100.00% lines covered (58/58) > coverage/index.html
At least for the classes inside the
com.amazon.aws.lambda
package - the ones inxp.lambda
heavily interact with processes and files and may be more easy to simply try out.