smithy-rs/codegen-server
david-perez 7299cdd3cd
Improve broken protocol test generation (#3726)
We currently "hotfix" a broken protocol test in-memory, but there's no
mechanism that alerts us when the broken protocol test has been fixed
upstream when updating our Smithy version. This commit introduces such a
mechanism by generating both the original and the fixed test, with a
`#[should_panic]` attribute on the former, so that the test fails when
all its assertions succeed.

With this change, in general this approach of fixing tests in-memory
should now be used over adding the broken test to `expectFail` and
adding the fixed test to a `<protocol>-extras.smithy` Smithy model,
which is substantially more effort.

----

_By submitting this pull request, I confirm that you can use, modify,
copy, and redistribute this contribution, under the terms of your
choice._
2024-07-01 09:23:16 +00:00
..
python Refactor and DRY up protocol test generation (#3713) 2024-06-27 13:24:01 +00:00
src Improve broken protocol test generation (#3726) 2024-07-01 09:23:16 +00:00
typescript Fix the build against JDK 20 (#3323) 2023-12-15 16:18:36 +00:00
README.md Fix Server README to remove stale warning on unstable good generation (#3658) 2024-06-11 09:34:05 +00:00
build.gradle.kts Fix the build against JDK 20 (#3323) 2023-12-15 16:18:36 +00:00

README.md

Smithy Rust Server Generator

Server-side Smithy code generator

Design documentation

Project Layout

  • codegen-server: Server-side code generation.
  • codegen-server-test: Server-side Smithy test and validation generation. Common commands:
    • ./gradlew :codegen-server-test:test Generate code and run tests against it