aws-amplify / aws-amplify/amplify-cli

Function testing

Open
#10,028 3 comments 2 reactions 0 assignees View on GitHub
feature-request functions p4
Dominant language
TypeScript
Stars
2.9k
Forks
825
Avg merge
11d 23h
Merged PRs (30d)
2

Description

### Is this feature request related to a new or existing Amplify category?

function

### Is this related to another service?

_No response_

### Describe the feature you'd like to request

Ability to quickly test functions

### Describe the solution you'd like

I would like to be able to run:
amplify function test
amplify function test [functionName]

and have all (or just the named) function tests be run remotely (or in mock)

tests would be an input/output json file...and potentially a pre/post setup script

I would also like the option of failing a push if the tests fail...on a per function basis

### Describe alternatives you've considered

This could maybe done with hooks, but I'm not sure it would be straightforward.

### Additional context

_No response_

### Is this something that you'd be interested in working on?

- [ ] 👋 I may be able to implement this feature request

### Would this feature include a breaking change?

- [ ] ⚠️ This feature might incur a breaking change

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.