Skip to content

Added generation of spoken form #1671

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

Merged
merged 8 commits into from
Aug 1, 2023
Merged

Added generation of spoken form #1671

merged 8 commits into from
Aug 1, 2023

Conversation

AndreasArvidsson
Copy link
Member

@AndreasArvidsson AndreasArvidsson commented Jul 22, 2023

Checklist

  • Use spoken form generation when recording tests. Update message with the generated spoken form.
  • I have added tests
  • [/] I have updated the docs and cheatsheet
  • [/] I have not broken the cheatsheet
  • Add tests for list targets with 0 and 1 element, ensuring there's no spoken form
  • Add tests for list destination with 0 and 1 element, ensuring there's no spoken form

Copy link
Member

@pokey pokey left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

partial review

@AndreasArvidsson
Copy link
Member Author

@pokey Updated wit requested changes from our meetup

@pokey
Copy link
Member

pokey commented Jul 26, 2023

@AndreasArvidsson did we want to use the spoken form generator for recording test cases in this PR? Tbh, I think I'd almost prefer if update fixtures launch config updated spoken forms. Makes me a bit less nervous than just automatically generating new test cases for the spoken form generator that are based on its behaviour at that moment and requiring us to carefully review them.

But I'd lean towards having one or the other in this PR, as otherwise it's going to be pretty inconvenient the next time someone records a test

@pokey pokey force-pushed the generateSpokenForms branch 4 times, most recently from 3d29789 to cd498dc Compare July 31, 2023 14:45
@pokey pokey changed the base branch from main to pokey/standardize-test-fixture-serialization July 31, 2023 14:46
@pokey pokey force-pushed the generateSpokenForms branch 2 times, most recently from cd2749c to f0092fa Compare July 31, 2023 16:07
Comment on lines +173 to +175
if (destination.destinations.length < 2) {
throw new NoSpokenFormError("List destination with < 2 elements");
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No way to speak this one

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same here. I would argue that this should be a normal error.

@pokey pokey force-pushed the generateSpokenForms branch from f0092fa to ef56dae Compare July 31, 2023 16:12
@pokey pokey force-pushed the base/generateSpokenForms branch from 77d2682 to c287af6 Compare July 31, 2023 16:12
@pokey pokey force-pushed the generateSpokenForms branch from 9af3d4f to 5321898 Compare August 1, 2023 09:53
@pokey pokey changed the base branch from base/generateSpokenForms to main August 1, 2023 09:53
Copy link
Member

@pokey pokey left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm happy, but @AndreasArvidsson have a look through my comments to make sure you're happy with my changes

@pokey pokey marked this pull request as ready for review August 1, 2023 09:56
@pokey
Copy link
Member

pokey commented Aug 1, 2023

aggh looks like it's time to fix that E2BIG thing. wrote up a fix; going to test that it works here then cherry pick it to new PR

@pokey pokey marked this pull request as draft August 1, 2023 11:53
@pokey pokey force-pushed the generateSpokenForms branch from b5c3837 to 1e97077 Compare August 1, 2023 12:02
@pokey pokey force-pushed the generateSpokenForms branch from 2eb2572 to ee8cbbd Compare August 1, 2023 13:02
@pokey pokey marked this pull request as ready for review August 1, 2023 13:14
@pokey pokey enabled auto-merge August 1, 2023 13:14
@pokey pokey added this pull request to the merge queue Aug 1, 2023
Merged via the queue into main with commit 9718dde Aug 1, 2023
@pokey pokey deleted the generateSpokenForms branch August 1, 2023 13:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants