Skip to main content

Test Results Overview

This page provides an overview of all test results across the project, with links to historical test runs.

Test Results System

The project uses an automated test results archiving system that:

  1. Archives test reports after each test run with timestamps
  2. Tracks test history over time
  3. Preserves git information (commit, branch) with each archive
  4. Integrates with documentation sites (MkDocs, Wiki.js, Docusaurus)

Task 1: Data Ingestion & Transformation

  • Test Directory (source only) - Task 1 test documentation
  • Test Reports (source only) - Test reports directory

Task 3: SQL Analytics

  • SQL Testing Guide (source only) - SQL testing documentation
  • Isolated Testing Guide (source only) - Comprehensive SQL testing guide

How It Works

1. Run Tests

From repo root to run all task tests and get the combined report:

make test

See TESTING_MANUAL.md for all root test commands.

To run only Task 1 tests:

cd tasks/data_ingestion_transformation
make test

2. Archive Test Reports (Task 1)

After running Task 1 tests, archive the results. From Task 1 directory:

cd tasks/data_ingestion_transformation
./scripts/archive_test_reports.sh

Or from repo root (same effect):

tasks/data_ingestion_transformation/scripts/archive_test_reports.sh data_ingestion_transformation

This will:

  • Copy current test reports to reports/archive/TIMESTAMP/
  • Create metadata with git commit and branch info
  • Generate/update the test history page

3. View History

The test history is automatically available in:

  • MkDocs: Navigation → Task 1 → Test History
  • Wiki.js: Search for "Test History"
  • Direct: tasks/data_ingestion_transformation/reports/TEST_HISTORY.md

Archive Structure

reports/
├── archive/
│ ├── 20260123_143022/ # Timestamp-based archive
│ │ ├── test_report.html
│ │ ├── TEST_REPORT.json
│ │ ├── TEST_REPORT.md
│ │ ├── coverage/
│ │ └── metadata.json # Git info, timestamp
│ ├── 20260122_120000/
│ └── ...
├── TEST_HISTORY.md # Auto-generated overview
├── TEST_REPORT.md # Current test report
└── test_report.html # Current HTML report

Benefits

  1. Historical Tracking: See how test results change over time
  2. Git Integration: Know which commit/branch each test run belongs to
  3. Easy Comparison: Compare test results between different runs
  4. Documentation: Test results are part of the project documentation
  5. Accessibility: View test results in beautiful documentation sites

Automation

Manual Archive

From Task 1 directory:

cd tasks/data_ingestion_transformation
./scripts/archive_test_reports.sh

Auto-Archive After Tests

From Task 1 directory:

make test && ./scripts/archive_test_reports.sh

Generate History Page

The history page is auto-generated, but you can regenerate manually from Task 1 directory:

cd tasks/data_ingestion_transformation
python3 scripts/generate_test_history.py

Viewing Reports

In Documentation Sites

  • MkDocs: Navigate to "Test History" in the sidebar
  • Wiki.js: Search for "Test History" or browse Task 1
  • Docusaurus: Link from technical documentation

Direct Access

  • HTML Reports: Open reports/archive/TIMESTAMP/test_report.html in browser
  • Markdown: View reports/TEST_HISTORY.md in any markdown viewer
  • JSON: Parse reports/archive/TIMESTAMP/TEST_REPORT.json programmatically

Best Practices

  1. Archive regularly: Archive after each significant test run
  2. Before major changes: Archive before refactoring or major changes
  3. After fixes: Archive after fixing failing tests
  4. CI/CD integration: Archive test results in CI/CD pipelines
  5. Review history: Regularly review test history to spot trends

Comparing Test Runs

To compare test results:

  1. Open the Test History page
  2. Click on different test runs
  3. Compare:
    • Pass/fail rates
    • Test duration
    • Coverage percentages
    • Error patterns

Integration Examples

MkDocs

Already integrated! See navigation → Task 1 → Test History

Wiki.js

  1. Create a page "Test Results"
  2. Link to tasks/data_ingestion_transformation/reports/TEST_HISTORY.md
  3. Or copy the content directly

CI/CD

# Example GitHub Actions step
- name: Archive Test Results
run: |
cd tasks/data_ingestion_transformation
./scripts/archive_test_reports.sh
git add reports/
git commit -m "Archive test results" || true

Future Enhancements

Potential improvements:

  • Automatic archiving in CI/CD
  • Test result comparison dashboard
  • Coverage trend graphs
  • Failed test analysis
  • Performance metrics tracking
© 2026 Stephen AdeiCC BY 4.0