Skip to content

Commit 990acb5

Browse files
feat: Initial open source release of UITestFlow
Enterprise-grade UI testing platform using natural language instructions, Playwright browser automation, and Claude AI via MCP for intelligent test generation and execution. Key components: - Core test engine (YAML parser, test runner, browser manager, evaluators) - Claude/MCP integration (test generation, guided execution, adaptive selectors) - FastAPI backend with PostgreSQL, Redis, Celery - CLI (Typer + Rich), TUI (Textual), Web UI (React) - Docker support (8 services), GitHub Actions CI/CD - Profile management for multi-environment testing Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
0 parents  commit 990acb5

203 files changed

Lines changed: 56189 additions & 0 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎.github/workflows/ci.yml‎

Lines changed: 134 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,134 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [main, develop]
6+
pull_request:
7+
branches: [main, develop]
8+
workflow_dispatch:
9+
10+
env:
11+
PYTHON_VERSION: "3.11"
12+
13+
jobs:
14+
lint:
15+
name: Lint and Format Check
16+
runs-on: ubuntu-latest
17+
steps:
18+
- uses: actions/checkout@v4
19+
20+
- name: Set up Python
21+
uses: actions/setup-python@v5
22+
with:
23+
python-version: ${{ env.PYTHON_VERSION }}
24+
cache: "pip"
25+
26+
- name: Install dependencies
27+
run: |
28+
python -m pip install --upgrade pip
29+
pip install -r requirements-dev.txt
30+
31+
- name: Run Ruff (lint)
32+
run: ruff check .
33+
34+
- name: Run Ruff (format check)
35+
run: ruff format --check .
36+
37+
- name: Run MyPy (type check)
38+
run: mypy uitestflow/
39+
40+
test:
41+
name: Test Suite
42+
runs-on: ubuntu-latest
43+
strategy:
44+
matrix:
45+
python-version: ["3.11", "3.12"]
46+
47+
steps:
48+
- uses: actions/checkout@v4
49+
50+
- name: Set up Python ${{ matrix.python-version }}
51+
uses: actions/setup-python@v5
52+
with:
53+
python-version: ${{ matrix.python-version }}
54+
cache: "pip"
55+
56+
- name: Install dependencies
57+
run: |
58+
python -m pip install --upgrade pip
59+
pip install -r requirements.txt
60+
pip install -r requirements-dev.txt
61+
62+
- name: Install Playwright browsers
63+
run: playwright install chromium
64+
65+
- name: Run tests
66+
run: |
67+
pytest tests/ \
68+
--cov=uitestflow \
69+
--cov-report=xml \
70+
--cov-report=term \
71+
--junit-xml=test-results.xml
72+
73+
- name: Upload coverage to Codecov
74+
uses: codecov/codecov-action@v4
75+
if: matrix.python-version == '3.11'
76+
with:
77+
file: ./coverage.xml
78+
fail_ci_if_error: false
79+
80+
- name: Upload test results
81+
uses: actions/upload-artifact@v4
82+
if: always()
83+
with:
84+
name: test-results-${{ matrix.python-version }}
85+
path: test-results.xml
86+
87+
docker:
88+
name: Docker Build Test
89+
runs-on: ubuntu-latest
90+
steps:
91+
- uses: actions/checkout@v4
92+
93+
- name: Set up Docker Buildx
94+
uses: docker/setup-buildx-action@v3
95+
96+
- name: Build Docker image
97+
uses: docker/build-push-action@v5
98+
with:
99+
context: .
100+
push: false
101+
tags: uitestflow:test
102+
cache-from: type=gha
103+
cache-to: type=gha,mode=max
104+
105+
security:
106+
name: Security Scan
107+
runs-on: ubuntu-latest
108+
steps:
109+
- uses: actions/checkout@v4
110+
111+
- name: Set up Python
112+
uses: actions/setup-python@v5
113+
with:
114+
python-version: ${{ env.PYTHON_VERSION }}
115+
116+
- name: Install dependencies
117+
run: |
118+
python -m pip install --upgrade pip
119+
pip install bandit safety
120+
121+
- name: Run Bandit (security linting)
122+
run: bandit -r uitestflow/ -f json -o bandit-report.json
123+
continue-on-error: true
124+
125+
- name: Run Safety (dependency check)
126+
run: safety check --json
127+
continue-on-error: true
128+
129+
- name: Upload security reports
130+
uses: actions/upload-artifact@v4
131+
if: always()
132+
with:
133+
name: security-reports
134+
path: bandit-report.json

‎.github/workflows/release.yml‎

Lines changed: 80 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,80 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
tags:
6+
- 'v*'
7+
8+
permissions:
9+
contents: write
10+
11+
jobs:
12+
release:
13+
name: Create Release
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: actions/checkout@v4
17+
18+
- name: Set up Python
19+
uses: actions/setup-python@v5
20+
with:
21+
python-version: "3.11"
22+
23+
- name: Install dependencies
24+
run: |
25+
python -m pip install --upgrade pip
26+
pip install build twine
27+
28+
- name: Build package
29+
run: python -m build
30+
31+
- name: Create GitHub Release
32+
uses: softprops/action-gh-release@v1
33+
with:
34+
files: dist/*
35+
generate_release_notes: true
36+
draft: false
37+
prerelease: false
38+
39+
- name: Publish to PyPI
40+
env:
41+
TWINE_USERNAME: __token__
42+
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
43+
run: twine upload dist/*
44+
if: success()
45+
46+
docker-release:
47+
name: Build and Push Docker Image
48+
runs-on: ubuntu-latest
49+
steps:
50+
- uses: actions/checkout@v4
51+
52+
- name: Set up Docker Buildx
53+
uses: docker/setup-buildx-action@v3
54+
55+
- name: Login to Docker Hub
56+
uses: docker/login-action@v3
57+
with:
58+
username: ${{ secrets.DOCKER_USERNAME }}
59+
password: ${{ secrets.DOCKER_PASSWORD }}
60+
61+
- name: Extract metadata
62+
id: meta
63+
uses: docker/metadata-action@v5
64+
with:
65+
images: uitestflow/uitestflow
66+
tags: |
67+
type=semver,pattern={{version}}
68+
type=semver,pattern={{major}}.{{minor}}
69+
type=semver,pattern={{major}}
70+
type=raw,value=latest
71+
72+
- name: Build and push
73+
uses: docker/build-push-action@v5
74+
with:
75+
context: .
76+
push: true
77+
tags: ${{ steps.meta.outputs.tags }}
78+
labels: ${{ steps.meta.outputs.labels }}
79+
cache-from: type=gha
80+
cache-to: type=gha,mode=max
Lines changed: 87 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,87 @@
1+
name: Integration Tests
2+
3+
on:
4+
pull_request:
5+
branches: [main, develop]
6+
schedule:
7+
# Run integration tests daily at 2 AM UTC
8+
- cron: '0 2 * * *'
9+
workflow_dispatch:
10+
11+
jobs:
12+
integration-test:
13+
name: Integration Tests
14+
runs-on: ubuntu-latest
15+
timeout-minutes: 30
16+
17+
services:
18+
postgres:
19+
image: postgres:16-alpine
20+
env:
21+
POSTGRES_USER: uitestflow
22+
POSTGRES_PASSWORD: uitestflow
23+
POSTGRES_DB: uitestflow_test
24+
options: >-
25+
--health-cmd pg_isready
26+
--health-interval 10s
27+
--health-timeout 5s
28+
--health-retries 5
29+
ports:
30+
- 5432:5432
31+
32+
redis:
33+
image: redis:7-alpine
34+
options: >-
35+
--health-cmd "redis-cli ping"
36+
--health-interval 10s
37+
--health-timeout 5s
38+
--health-retries 5
39+
ports:
40+
- 6379:6379
41+
42+
steps:
43+
- uses: actions/checkout@v4
44+
45+
- name: Set up Python
46+
uses: actions/setup-python@v5
47+
with:
48+
python-version: "3.11"
49+
cache: "pip"
50+
51+
- name: Install dependencies
52+
run: |
53+
python -m pip install --upgrade pip
54+
pip install -r requirements.txt
55+
pip install -r requirements-dev.txt
56+
57+
- name: Install Playwright browsers
58+
run: playwright install --with-deps chromium firefox
59+
60+
- name: Run integration tests
61+
env:
62+
DATABASE_URL: postgresql://uitestflow:uitestflow@localhost:5432/uitestflow_test
63+
REDIS_URL: redis://localhost:6379/0
64+
UITESTFLOW_ENV: test
65+
run: |
66+
pytest tests/ \
67+
-m integration \
68+
--cov=uitestflow \
69+
--cov-report=xml \
70+
--junit-xml=integration-results.xml \
71+
-v
72+
73+
- name: Upload test results
74+
uses: actions/upload-artifact@v4
75+
if: always()
76+
with:
77+
name: integration-test-results
78+
path: |
79+
integration-results.xml
80+
coverage.xml
81+
82+
- name: Upload screenshots on failure
83+
uses: actions/upload-artifact@v4
84+
if: failure()
85+
with:
86+
name: integration-test-screenshots
87+
path: test-results/

0 commit comments

Comments
 (0)