Skip to content

Commit f7deebc

Browse files
Add comprehensive test suite for TechCompressor
- Implement tests for crypto module including AES-256-GCM encryption and decryption. - Create tests for deflate compression functionality. - Develop basic GUI tests for TechCompressor application. - Add performance sanity tests to ensure compression operations complete within reasonable time limits.
1 parent 5ecba72 commit f7deebc

File tree

18 files changed

+4518
-177
lines changed

18 files changed

+4518
-177
lines changed

.github/workflows/tests.yml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
name: Tests
2+
3+
on:
4+
push:
5+
branches: [ main, develop ]
6+
pull_request:
7+
branches: [ main ]
8+
9+
jobs:
10+
test:
11+
runs-on: ${{ matrix.os }}
12+
strategy:
13+
matrix:
14+
os: [ubuntu-latest, windows-latest, macos-latest]
15+
python-version: ['3.10', '3.11', '3.12']
16+
17+
steps:
18+
- uses: actions/checkout@v3
19+
20+
- name: Set up Python ${{ matrix.python-version }}
21+
uses: actions/setup-python@v4
22+
with:
23+
python-version: ${{ matrix.python-version }}
24+
cache: 'pip'
25+
26+
- name: Install dependencies
27+
run: |
28+
python -m pip install --upgrade pip
29+
pip install -r requirements.txt
30+
pip install pytest pytest-cov
31+
32+
- name: Run tests with coverage
33+
run: |
34+
pytest tests/ -v --cov=techcompressor --cov-report=xml --cov-report=term
35+
36+
- name: Upload coverage
37+
uses: codecov/codecov-action@v3
38+
if: matrix.os == 'ubuntu-latest' && matrix.python-version == '3.11'
39+
with:
40+
file: ./coverage.xml
41+
fail_ci_if_error: false
42+
43+
- name: Run benchmark (quick)
44+
run: |
45+
python bench.py --quick

MANIFEST.in

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
include LICENSE
2+
include README.md
3+
include requirements.txt
4+
include bench.py
5+
recursive-include tests *.py
6+
recursive-include techcompressor *.py

0 commit comments

Comments
 (0)