smithery/valec3

backend-testing-integration

Integration tests, database testing.

Installation

$ npx skills add smithery/valec3 --skill backend-testing-integration

Similar popular skills

Related neighbors and high-traction skills in the same topics — useful to compare before installing.

Also in this package

Other skills from smithery/valec3 · top by installs.

npx skills add smithery/valec3

Browse all from smithery/valec3

More details

Agent compatibility

Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.

Claude Code Not declared
Cursor Not declared
Codex Not declared
GitHub Copilot Not declared
Windsurf Not declared
Gemini CLI Not declared
Cline Not declared
OpenCode Not declared

Package contents

Files included with this skill beyond the listing page.

  • skill md SKILL.md 1,177 B
  • docs SUMMARY.md 71 B

History

  1. First recorded snapshot · 0 installs

SKILL.md

Backend Testing Integration

When to use this skill

  • Testing with database
  • API endpoint testing
  • Feature testing
  • End-to-end flows

Workflow

  • Use test database
  • Seed data
  • Test full flows
  • Reset database
  • Test API responses

Instructions

Database Test

<?php

namespace Tests\Integration;

use CodeIgniter\Test\CIDatabaseTestCase;

class UserModelTest extends CIDatabaseTestCase
{
    protected $seed = 'TestSeeder';
    protected $basePath = 'tests/database';

    public function testFindUserByEmail()
    {
        $model = new UserModel();
        $user = $model->where('email', '[email protected]')->first();

        $this->assertNotNull($user);
        $this->assertEquals('[email protected]', $user->email);
    }
}

Feature Test

<?php

$result = $this->withHeaders(['Authorization' => 'Bearer ' . $token])
    ->post('/api/users', ['name' => 'John'])
    ->json();

$this->assertEquals(201, $result->getStatusCode());

Resources

  • Use separate test database
  • Seed fixtures
  • Test full request/response