-
Notifications
You must be signed in to change notification settings - Fork 196
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Increase coverage using automatic cloud snapshot tests #5958
Comments
I think high level user story makes sense, I'm only unsure about the choice to to automatically take snapshots of every test the user writes. By default, Wing's syntax encourages you to reuse the same test fixtures or preflight components for multiple tests so that you don't have to write the same things over and over. So in the code below, the three tests would all produce identical snapshots, which is not great. let bucket = new cloud.Bucket();
let api = new cloud.Api();
let dynamodb = new dynamodb.Table();
test "scenario 1" {
// ...
}
test "scenario 2" {
// ...
}
test "scenario 3" {
// ...
} |
I think a single |
An RFC for #5958. A proposal for a feature that will capture a snapshot of the synthesis output from `wing test` to reduce regressions in cloud implementations.
An RFC for #5958. A proposal for a feature that will capture a snapshot of the synthesis output from `wing test` to reduce regressions in cloud implementations. *By submitting this pull request, I confirm that my contribution is made under the terms of the [Wing Cloud Contribution License](https://github.com/winglang/wing/blob/main/CONTRIBUTION_LICENSE.md)*.
Yes, we still need to run this in winglibs, but that's a different issue. |
I'd like to be able to capture a snapshot of the output when compiling to cloud targets and use it to protect against regressions in CI (without having to deploy to the cloud).
RFC
See #6044
Community Notes
The text was updated successfully, but these errors were encountered: