Hi - I answer from the OpenSmartRoute documentation: routing, the API, plans and quotas, self-hosting. Ask away, or open a support ticket if you need a person.
Grounded in the docs - follow a source before acting on it.
e2e - Skill - OpenSmartRoute
Skillv1.0.0
e2e
Every application consumer method must have a corresponding end-to-end (e2e) test to validate its behavior, including security, data transformations, and database interactions.
Instruction file imported from bcgov/SIMS (.github/instructions/e2e.instructions.md). Copyright stays with the author.
GitHub Copilot PR Review: E2E Testing Boilerplate
Every application consumer method must have a corresponding end-to-end (e2e) test to validate its behavior, including security, data transformations, and database interactions.
Core Principles
Isolation: Each test should be independent, setting up its own data and ensuring its data will not affect other tests.
Data Setup: Use saveFake... helpers (e.g., saveFakeStudent, saveFakeApplication) to create a predictable state for each test.
Data Assertion: Ensure that any changes to the database state are asserted after the action is performed.
Code Section: Structure tests with clear Arrange, Act, and Assert sections for readability.
Data Manipulation: Declare a global variable db: E2EDataSources and use it for all DB related operations.
Use it
Copy one of these into your project. Installing also returns the manifest and these snippets.
yaml
targets:
- https://api.opensmartroute.ai/api/v1/registry/bcgov-sims-e2e-instructions/manifest # or paste the manifest below
Manifest
An Open Capability Manifest: the router reads it to know what this does, what it costs and when to pick it.
bcgov-sims-e2e-instructions.ocm.jsonjson
{
"ocm": "1",
"id": "bcgov-sims-e2e-instructions",
"kind": "skill",
"name": "e2e",
"description": "Every application consumer method must have a corresponding end-to-end (e2e) test to validate its behavior, including security, data transformations, and database interactions.",
"publisher": "bcgov",
"version": "1.0.0",
"capabilities": {
"domains": [
"general"
],
"tags": [
"skill-md",
"github-instructions"
],
"languages": [
"en"
]
},
"quality_prior": 0.6,
"examples": [
"Every application consumer method must have a corresponding end-to-end (e2e) test to validate its behavior, including security, data transformations, and database interactions."
],
"primary": false,
"metadata": {
"source": {
"provider": "github-instructions",
"repository": "https://github.com/bcgov/SIMS",
"path": ".github/instructions/e2e.instructions.md",
"ref": "f286f5d45d6eeaf86b731b9f89f1d62d44555749",
"url": "https://github.com/bcgov/SIMS/blob/f286f5d45d6eeaf86b731b9f89f1d62d44555749/.github/instructions/e2e.instructions.md",
"key": "bcgov/SIMS/.github/instructions/e2e.instructions.md"
},
"applies_to": "sources/packages/backend/apps/**/_tests_/**/*.e2e-spec.ts"
},
"instructions": "## GitHub Copilot PR Review: E2E Testing Boilerplate\n\nEvery application consumer method must have a corresponding end-to-end (e2e) test to validate its behavior, including security, data transformations, and database interactions.\n\n### Core Principles\n\n- **Isolation**: Each test should be independent, setting up its own data and ensuring its data will not affect other tests.\n- **Data Setup**: Use `saveFake...` helpers (e.g., `saveFakeStudent`, `saveFakeApplication`) to create a predictable state for each test.\n- **Data Assertion**: Ensure that any changes to the database state are asserted aft",
"cost": {
"context_tokens": 209
}
}
Fetch it by URL: GET /api/v1/registry/bcgov-sims-e2e-instructions/manifest?version=1.0.0
Reviews
Star ratings from people who tried it. One review per account; edit yours any time.
No reviews yet. Install it, try it, and be the first to rate it.