Skip to content

Fix test generation#89

Closed
alice-i-cecile wants to merge 6 commits intoDioxusLabs:mainfrom
alice-i-cecile:fix-gentest
Closed

Fix test generation#89
alice-i-cecile wants to merge 6 commits intoDioxusLabs:mainfrom
alice-i-cecile:fix-gentest

Conversation

@alice-i-cecile
Copy link
Copy Markdown
Collaborator

Objective

Context

This failure was discovered in #46.

Feedback wanted

  1. Do we want to keep this strategy? Or should it be replaced with careful unit tests?
  2. Chrome's implementation of the spec is only one of several possible options; see Question: why layout values are rounded? #77. Its behavior isn't always desirable.
  3. This strategy won't work for other layout algorithms; see Support multiple layout algorithms #28.
  4. The generated code is massive, and makes refactoring remarkably painful. See Rename sprawl::node::Stretch -> sprawl::node::Sprawl #79.
  5. Any help with tokio would be appreciated; I've never touched this section of Rust before.

@alice-i-cecile alice-i-cecile added bug Something isn't working code quality Make the code cleaner or prettier. build system Make continuous integration do the tedious things labels Jun 8, 2022
@alice-i-cecile alice-i-cecile marked this pull request as draft June 8, 2022 18:16
@TimJentzsch
Copy link
Copy Markdown
Collaborator

Do we want to keep this strategy? Or should it be replaced with careful unit tests?

IMO it shouldn't be the main testing strategy, it's definitely a painful to set up (you need to install external tools) so we can't expect every contributor to do it. I think the main tests should be done with unit tests and we can keep something like this in CI to catch edge-cases if feasible.

@alice-i-cecile
Copy link
Copy Markdown
Collaborator Author

Closing in favor of #133. These generated tests are a disaster to maintain.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working build system Make continuous integration do the tedious things code quality Make the code cleaner or prettier.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Fix cargo run --package gentest

2 participants