Continuous Testing

Continuous Testing

Guides an AI agent to build continuous testing into CI/CD pipelines with GitHub Actions, GitLab CI and Jenkins, including test selection, parallel runs and flaky test detection.

Skill files9 files

references/

scripts/

templates/

SKILL.md103 lines
1
---
2
name: continuous-testing
3
description: >
4
Integrate automated testing into CI/CD pipelines for continuous quality
5
feedback. Use for continuous testing, CI testing, automated testing pipelines,
6
test orchestration, and DevOps quality practices.
7
---
8
9
# Continuous Testing
10
11
## Table of Contents
12
13
- [Overview](#overview)
14
- [When to Use](#when-to-use)
15
- [Quick Start](#quick-start)
16
- [Reference Guides](#reference-guides)
17
- [Best Practices](#best-practices)
18
19
## Overview
20
21
Continuous testing integrates automated testing throughout the software development lifecycle, providing rapid feedback on quality at every stage. It shifts testing left in the development process and ensures that code changes are validated automatically before reaching production.
22
23
## When to Use
24
25
- Setting up CI/CD pipelines
26
- Automating test execution on commits
27
- Implementing shift-left testing
28
- Running tests in parallel
29
- Creating test gates for deployments
30
- Monitoring test health
31
- Optimizing test execution time
32
- Establishing quality gates
33
34
## Quick Start
35
36
Minimal working example:
37
38
```yaml
39
# .github/workflows/ci.yml
40
name: Continuous Testing
41
42
on:
43
push:
44
branches: [main, develop]
45
pull_request:
46
branches: [main, develop]
47
48
env:
49
NODE_VERSION: "18"
50
51
jobs:
52
# Unit tests - Fast feedback
53
unit-tests:
54
runs-on: ubuntu-latest
55
timeout-minutes: 10
56
57
steps:
58
- uses: actions/checkout@v3
59
60
- name: Setup Node.js
61
uses: actions/setup-node@v3
62
with:
63
node-version: ${{ env.NODE_VERSION }}
64
// ... (see reference guides for full implementation)
65
```
66
67
## Reference Guides
68
69
Detailed implementations in the `references/` directory:
70
71
| Guide | Contents |
72
|---|---|
73
| [GitHub Actions CI Pipeline](references/github-actions-ci-pipeline.md) | GitHub Actions CI Pipeline |
74
| [GitLab CI Pipeline](references/gitlab-ci-pipeline.md) | GitLab CI Pipeline |
75
| [Jenkins Pipeline](references/jenkins-pipeline.md) | Jenkins Pipeline |
76
| [Test Selection Strategy](references/test-selection-strategy.md) | Test Selection Strategy |
77
| [Flaky Test Detection](references/flaky-test-detection.md) | Flaky Test Detection |
78
| [Test Metrics Dashboard](references/test-metrics-dashboard.md) | Test Metrics Dashboard |
79
80
## Best Practices
81
82
### ✅ DO
83
84
- Run fast tests first (unit → integration → E2E)
85
- Parallelize test execution
86
- Cache dependencies
87
- Set appropriate timeouts
88
- Monitor test health and flakiness
89
- Implement quality gates
90
- Use test selection strategies
91
- Generate comprehensive reports
92
93
### ❌ DON'T
94
95
- Run all tests sequentially
96
- Ignore flaky tests
97
- Skip test maintenance
98
- Allow tests to depend on each other
99
- Run slow tests on every commit
100
- Deploy with failing tests
101
- Ignore test execution time
102
- Skip security scanning
103

© AJ Geddes · MIT · source · posted by @OpenSourceBuffGuy on promptparty.com

@OpenSourceBuffGuy

I find openly licensed prompts and post them here.

0 followers · 13,692 prompts

More by @OpenSourceBuffGuy

See all
Chest-up editorial portrait in oversized black blazer prompt image

Chest-up editorial portrait in oversized black blazer

Turns a reference photo into a chest-up fashion editorial portrait in an oversized black blazer, with a locked identity and soft side sunlight on a white wall.

image-prompt, gpt-image, reference-image, face-reference, portrait, woman, editorial, fashion, fashion-shoot, medium-shot, natural-light, white-background, vertical-format, photorealistic, luxury, negative-prompt, guardrails, photography, for-photographers, for-artists, quick, bokeh, headshot, soft-lighting

Skater clears a stair set in one low tracking shot prompt image

Skater clears a stair set in one low tracking shot

Writes a 30-second continuous low tracking shot of a skateboarder clearing stairs at golden hour, in six-second beats with a locked face and outfit.

video-prompt, timed-beats, tracking-shot, single-take, camera-movement, action, sports, kling, character-consistency, golden-hour, low-angle, natural-light, wide-shot, photorealistic, cinematic, guardrails, for-filmmakers, man, full-body, slow-motion, structured-output

Four city outfit change with depth reference prompt image

Four city outfit change with depth reference

Directs a 12-second vertical video where one woman spins through four city outfit changes, locked to outfit pictures, a face crop and a depth-video motion reference.

video-prompt, reference-image, character-consistency, face-reference, timed-beats, multi-shot, vertical-format, transformation, video-ad, travel, scene-transitions, camera-movement, fashion, cityscape, landmarks, short-form-video, long-form, structured-output, woman, fashion-shoot

Reviews

Loading reviews…

Discussion

Loading comments…