Skip to content

Conversation

@GromNaN
Copy link
Member

@GromNaN GromNaN commented Jan 11, 2026

In order to ensure there is no regression in the generated test case (#1773), they must be run in MakerBundle's CI.

The markTestIncomplete call stops the execution by throwing and exception. Skipping all the test body. By moving this call at the end of the method, the tests are fully run.

I even wonder if marking tests as incomplete serves any purpose.

For reference, this was added in #307, this point was not discussed.

@tcoch
Copy link
Contributor

tcoch commented Jan 13, 2026

I believe it's good for now to mark tests as incomplete, for two reasons:

  • check L75 : // Use assertions to check that the properties are properly displayed.. Wit hthat you state that the generated tests are incomplete
  • When using the command, there's a disclaimer about this being an experimental feature. Marking test as incomplete forces the developer to check what was generated, or at least to remove theses lines.

But yes, moving them at the end of the method is good for the CI!

@GromNaN GromNaN merged commit 4994519 into symfony:1.x Jan 13, 2026
11 checks passed
@GromNaN GromNaN deleted the test-incomplete branch January 13, 2026 10:51
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