codeception-skill
This skill enables you to generate Codeception acceptance tests using the Actor pattern and Cest format, streamlining test automation for web applications. It leverages TestMu AI's testing expertise to help you build robust, maintainable test suites that follow Codeception best practices.
codeception-skill helps you write Codeception tests in PHP by guiding you through the Actor pattern, where a tester object (typically $I) represents the user interacting with your application. In Codeception's Cest format, you define test methods within a class, and the Actor ($I) provides methods like $I->amOnPage(), $I->see(), and $I->fillField() to perform actions and assertions. This skill teaches you how to structure these tests following Codeception best practices, making your acceptance test suites robust and maintainable.
AI-generated summary based on this skill's SKILL.md
Decision gist · record as of 2026-07-24
codeception-skill helps you write Codeception tests in PHP by guiding you through the Actor pattern, where a tester object (typically $I) represents the user interacting with your application. In Codeception's Cest format, you define test methods within a class, and the Actor ($I) provides methods like $I->amOnPage(), $I->see(), and $I->fillField() to perform actions and assertions. This skill teaches you how to structure these tests following Codeception best practices, making your acceptance test suites robust and maintainable.
Use it when
- codeception-skill explains that the Codeception actor pattern is a core design principle where an Actor object (usually $I) simulates.
- codeception-skill walks you through Codeception setup and configuration for PHP projects, covering installation.
Verify before relying
Read SKILL.md below before installing (4 files). Open directory: indexed for reading, not audited.
Install
LambdaTest/agent-skills/codeception-skill · repository language: Python
Open directory. Skills are indexed for reading, not audited. Review a skill's body before installing it.
Frequently asked questions
AI-generated answers based on this skill's SKILL.md and metadata
How do I write Codeception tests in PHP using the Actor pattern?
codeception-skill helps you write Codeception tests in PHP by guiding you through the Actor pattern, where a tester object (typically $I) represents the user interacting with your application. In Codeception's Cest format, you define test methods within a class, and the Actor ($I) provides methods like $I->amOnPage(), $I->see(), and $I->fillField() to perform actions and assertions. This skill teaches you how to structure these tests following Codeception best practices, making your acceptance test suites robust and maintainable.
What is the Codeception actor pattern and how does it work?
codeception-skill explains that the Codeception actor pattern is a core design principle where an Actor object (usually $I) simulates a user's interactions with your web application. The actor provides a fluent, readable API for navigating pages, filling forms, clicking buttons, and making assertions. This pattern makes tests more expressive and easier to understand—instead of low-level WebDriver commands, you write human-readable statements like $I->amOnPage('/login') and $I->see('Welcome'). The skill guides you through implementing this pattern in your Cest-format test files.
How do I set up and configure Codeception for end-to-end or functional testing in PHP projects?
codeception-skill walks you through Codeception setup and configuration for PHP projects, covering installation, suite configuration (acceptance, functional, unit), and WebDriver setup for end-to-end testing. You'll learn to configure codeception.yml with browser drivers, database connections, and module settings. The skill also covers functional testing without a browser and acceptance testing with WebDriver or Selenium. It helps you integrate these configurations into your CI/CD pipelines and cloud platforms like LambdaTest, ensuring your PHP project has a complete testing infrastructure.
What are Codeception Page Objects and how do I implement them to structure tests?
codeception-skill teaches you that Page Objects are a design pattern for organizing Codeception tests by encapsulating page-specific interactions and assertions into reusable classes. Instead of scattering $I->fillField() and $I->see() calls throughout your tests, you create a Page Object class with methods like loginAs() or verifySuccessMessage() that bundle related actions. This approach improves test maintainability and reusability. The skill shows you how to create custom helpers and Page Object classes, integrate them into your Cest files, and leverage Codeception's module system to structure complex test suites.
How can I use Codeception for acceptance testing with methods like $I->amOnPage and $I->see?
codeception-skill provides detailed guidance on Codeception acceptance testing methods that form the core of the Actor API. Methods like $I->amOnPage('/path') navigate to URLs, $I->see('text') asserts visible content, $I->fillField('selector', 'value') populates form fields, and $I->click('button') triggers interactions. The skill teaches you how to chain these methods in your Cest test classes to simulate complete user workflows. It also covers advanced assertions like $I->dontSee(), $I->grabTextFrom(), and XPath selector usage, enabling you to write comprehensive acceptance tests that validate your web application's behavior end-to-end.
How do I integrate Codeception with CI/CD pipelines and cloud platforms like LambdaTest?
codeception-skill covers integrating Codeception into CI/CD workflows and cloud testing platforms. You'll learn to configure Codeception for GitHub Actions, GitLab CI, and other CI systems, automating test execution on every commit. The skill also guides you through LambdaTest cloud integration, allowing you to run acceptance tests across multiple browsers and operating systems without maintaining local infrastructure. It includes configuration examples for WebDriver endpoints, parallel execution, and reporting, helping you build scalable, cloud-based testing pipelines for your PHP projects.
SKILL.md
Rendered from the published skill. Quoted content, verbatim.
Codeception Testing Skill
Core Patterns
Acceptance Test (Cest)
```php <?php // tests/Acceptance/LoginCest.php
class LoginCest { public function _before(AcceptanceTester $I) { $I->amOnPage('/login'); }
public function loginWithValidCredentials(AcceptanceTester $I)
{
$I->fillField('email', 'user@test.com');
$I->fillField('password', 'password123');
$I->click('Login');
$I->see('Dashboard');
$I->seeInCurrentUrl('/dashboard');
$I->seeElement('.welcome-message');
}
public function loginWithInvalidCredentials(AcceptanceTester $I)
{
$I->fillField('email', 'wrong@test.com');
$I->fillField('password', 'wrong');
$I->click('Login');
(truncated - see the full file via the links below)
File tree — 4 files
codeception-skill/SKILL.md
codeception-skill/reference/advanced-patterns.md
codeception-skill/reference/cloud-integration.md
codeception-skill/reference/playbook.md
Let your AI agent find skills like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 56,283 agent skills by what they can do, searchable in plain language.
wish › “Generate or write Codeception acceptance tests using the Actor pattern and Cest format”
Give your agent the search over MCP, or paste the wish link into any chat. No install? Search from any chat →
Related skills
This skill enables you to create and run Behat behavior-driven development tests using Gherkin syntax, making it straightforward to validate PHP web application behavior through readable, executable specifications. Leverage structured scenario definitions to bridge the gap between business requirements and automated test coverage.
This skill streamlines end-to-end testing by automating the generation of Laravel Dusk browser test scripts. It enables developers to quickly scaffold and compose test cases for web application workflows, reducing manual test writing overhead and accelerating QA automation cycles.
This skill empowers you to create Selenide test scripts in Java, streamlining UI automation workflows. Leverage AI assistance to generate robust browser testing code that integrates seamlessly with your test infrastructure and development pipeline.
This skill enables you to automatically generate Capybara acceptance tests for web applications, streamlining your test automation workflow. Built by LambdaTest (now TestMu AI), it simplifies the process of creating robust browser-based test scenarios without manual coding overhead.
phpunit-skill streamlines the creation of PHPUnit test suites by automating test case generation, assertion setup, and lifecycle method configuration. Designed for developers building robust PHP testing workflows, this skill reduces boilerplate code and accelerates test-driven development cycles.
selenium-skill enables you to create robust Selenium WebDriver test automation scripts in your preferred programming language through intelligent code synthesis. Streamline browser testing by leveraging AI to generate production-ready test logic, reducing manual scripting overhead and accelerating test suite development.
More skills testcafe-skill (MIT) · geb-skill (MIT) · nemojs-skill (MIT)