Skip to content

Adopt Boost testing skill - #452

Merged
jbrooksuk merged 1 commit into
mainfrom
codex/adopt-boost-testing-skill
Aug 25, 2026
Merged

Adopt Boost testing skill#452
jbrooksuk merged 1 commit into
mainfrom
codex/adopt-boost-testing-skill

Conversation

@jbrooksuk

Copy link
Copy Markdown
Member

Summary

  • require Laravel Boost 2.6
  • publish the complete testing-best-practices agent skill and rule set
  • keep the adoption scoped to testing guidance

Testing

  • composer validate --strict
  • composer test:lint
  • Pest: 1,061 passed, 2 todos, 54 failed because the Testbench vendor skeleton is missing its Vite manifest; the same setup failure occurred before this change

Require Boost 2.6 so Core can use its latest agent guidance.

Publish the testing best-practices skill for package development.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

馃挕 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 7cb799ddd2

鈩癸笍 About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 馃憤.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +22 to +23
->toContain('<script>')
->not->toContain("<script>alert('xss')</script>");

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Reject raw script tags in the escaping example

For correctly escaped HTML, the output contains &lt;script&gt;, not a literal <script> tag, so this expectation fails for the secure behavior and explicitly requires dangerous markup to survive rendering. An agent following this example could weaken the template or write a security test that accepts partially unescaped output; assert that the raw opening tag is absent and separately verify the safely rendered content.

Useful? React with 馃憤聽/ 馃憥.


Use a PHPUnit assertion only if no Pest expectation and no Laravel assertion exists for the subject.

Assert each fact once. Do not assert a 200 status before `assertSee`, because `assertSee` already shows that the page rendered.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Keep the success-status assertion before assertSee

When an endpoint returns an error response whose body still contains the expected text, assertSee() passes because it only searches the response content; it does not verify a 200 status or prove that the page rendered successfully. Following this instruction therefore leaves HTTP tests unable to detect status regressions, so successful-page tests should retain assertOk() or assertSuccessful() alongside the content assertion.

Useful? React with 馃憤聽/ 馃憥.

@jbrooksuk
jbrooksuk enabled auto-merge (squash) August 25, 2026 17:58
@jbrooksuk
jbrooksuk merged commit 8835061 into main Aug 25, 2026
23 checks passed
@jbrooksuk
jbrooksuk deleted the codex/adopt-boost-testing-skill branch August 25, 2026 17:59
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.

1 participant