Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
168 commits
Select commit Hold shift + click to select a range
6e7410a
Initial commit
jahatfi Oct 12, 2024
27368bc
readme
jahatfi Oct 12, 2024
6fffea5
Gen coerage report
jahatfi Oct 12, 2024
a925601
Update python-app-ubuntu.yml
jahatfi Oct 12, 2024
648c306
Update python-app-ubuntu.yml
jahatfi Oct 12, 2024
77c5acc
Update python-app-ubuntu.yml
jahatfi Oct 12, 2024
70f161d
Update python-app-ubuntu.yml
jahatfi Oct 12, 2024
197e1aa
Update unit_test_generator.py
jahatfi Oct 12, 2024
3e13d43
Update fizzbuzz.py
jahatfi Oct 13, 2024
cdd1d17
Update fizzbuzz.py
jahatfi Oct 13, 2024
3a50a35
Update fizzbuzz.py
jahatfi Oct 13, 2024
2dc390f
Update fizzbuzz.py
jahatfi Oct 13, 2024
103f4b1
Update fizzbuzz.py
jahatfi Oct 13, 2024
54ffc13
Update fizzbuzz.py
jahatfi Oct 13, 2024
e68a40f
Update fizzbuzz.py
jahatfi Oct 13, 2024
ba37b5d
OO and fizzbuzz combined
jahatfi Oct 13, 2024
c08fd63
ls
jahatfi Oct 13, 2024
0b4f1fc
Keep the file here
jahatfi Oct 13, 2024
99ca6e7
Save file
jahatfi Oct 13, 2024
876e9c9
combine
jahatfi Oct 13, 2024
1c4d4ec
Consolidated
jahatfi Oct 13, 2024
ffab000
Combine all?
jahatfi Oct 13, 2024
178d5ab
Combine all?
jahatfi Oct 13, 2024
1ce2e63
Fixed YAML Syntax error
jahatfi Oct 13, 2024
680f53c
Fixed WindowsPath error
jahatfi Oct 13, 2024
1f2cb4d
Looking for .coverage files
jahatfi Oct 13, 2024
f3623cc
Update python-app-ubuntu.yml
jahatfi Oct 13, 2024
1a032b2
Update python-app-ubuntu.yml
jahatfi Oct 13, 2024
9ea8282
Update python-app-windows.yml
jahatfi Oct 13, 2024
1f935f4
Update unit_test_generator.py
jahatfi Oct 13, 2024
d9a62d2
Update python-app-windows.yml
jahatfi Oct 13, 2024
5358162
Update test_get_module_import_string.py
jahatfi Oct 13, 2024
36be3c8
Update python-app-windows.yml
jahatfi Oct 13, 2024
6b43288
Update unit_test_generator.py
jahatfi Oct 13, 2024
552e933
Update unit_test_generator.py
jahatfi Oct 13, 2024
eb83873
Update unit_test_generator.py
jahatfi Oct 13, 2024
553e0e9
Update test_get_module_import_string.py
jahatfi Oct 13, 2024
0dacf3a
Update test_get_module_import_string.py
jahatfi Oct 13, 2024
893c2bb
Update test_get_module_import_string.py
jahatfi Oct 13, 2024
3f4c0e4
Update test_get_module_import_string.py
jahatfi Oct 13, 2024
934af4c
Update test_get_module_import_string.py
jahatfi Oct 13, 2024
1edb54e
Update python-app-ubuntu.yml
jahatfi Oct 13, 2024
6ffaaf9
Update test_auto_generate_tests copy.py
jahatfi Oct 13, 2024
cc2e70c
Update python-app-ubuntu.yml
jahatfi Oct 13, 2024
82c592d
Update README.md
jahatfi Oct 13, 2024
cc270ae
Update python-app-ubuntu.yml
jahatfi Oct 14, 2024
1f377c5
Update python-app-ubuntu.yml
jahatfi Oct 14, 2024
2ca23b7
Update python-app-ubuntu.yml
jahatfi Oct 14, 2024
7533612
Update python-app-ubuntu.yml
jahatfi Oct 14, 2024
319f492
Update python-app-ubuntu.yml
jahatfi Oct 14, 2024
9849ae5
Update README.md
jahatfi Oct 14, 2024
cf4356a
Update README.md
jahatfi Oct 14, 2024
f54830d
Update README.md
jahatfi Oct 14, 2024
822d842
Update get_color.sh
jahatfi Oct 14, 2024
c7d8c22
Update python-app-ubuntu.yml
jahatfi Oct 14, 2024
e90c62d
Update python-app-ubuntu.yml
jahatfi Oct 14, 2024
46141ae
Update python-app-ubuntu.yml
jahatfi Oct 14, 2024
5afe61d
Update python-app-ubuntu.yml
jahatfi Oct 14, 2024
f9bade8
Update python-app-ubuntu.yml
jahatfi Oct 14, 2024
5796342
Testing badge
jahatfi Oct 15, 2024
ac29796
Update python-app-ubuntu.yml
jahatfi Oct 15, 2024
de2a1d1
mypy
jahatfi Oct 15, 2024
2261d4d
Update python-app-ubuntu.yml
jahatfi Oct 15, 2024
ccde6e4
Update python-app-ubuntu.yml
jahatfi Oct 15, 2024
a8625a2
Update python-app-ubuntu.yml
jahatfi Oct 15, 2024
87a0f3d
Update python-app-ubuntu.yml
jahatfi Oct 15, 2024
93bc6e9
Update python-app-ubuntu.yml
jahatfi Oct 16, 2024
af67cb1
Update python-app-ubuntu.yml
jahatfi Oct 16, 2024
ff80455
Update github-actions-byob-test.yml
jahatfi Oct 16, 2024
46b34d8
Update python-app-ubuntu.yml
jahatfi Oct 16, 2024
4f45ed3
Update python-app-ubuntu.yml
jahatfi Oct 16, 2024
611a368
Update python-app-ubuntu.yml
jahatfi Oct 16, 2024
4c0f739
Update get_mypy_pct_errors.py
jahatfi Oct 16, 2024
97066ef
Update python-app-mypy-byob-test.yml
jahatfi Oct 16, 2024
9f32bf6
Update python-app-mypy-byob-test.yml
jahatfi Oct 16, 2024
54ace6c
Update github-actions-byob-test.yml
jahatfi Oct 16, 2024
964f990
Update get_mypy_pct_errors.sh
jahatfi Oct 17, 2024
eae68ec
Update python-app-ubuntu.yml
jahatfi Oct 17, 2024
512a641
Update python-app-ubuntu.yml
jahatfi Oct 17, 2024
1c8eaa8
Update python-app-ubuntu.yml
jahatfi Oct 17, 2024
f33aad8
Update get_mypy_pct_errors.sh
jahatfi Oct 17, 2024
67f74a4
Update get_mypy_pct_errors.sh
jahatfi Oct 17, 2024
3e16543
Update get_mypy_pct_errors.sh
jahatfi Oct 17, 2024
cf394eb
Update get_mypy_pct_errors.sh
jahatfi Oct 17, 2024
ddc108f
Update get_mypy_pct_errors.sh
jahatfi Oct 17, 2024
2db193a
Update get_mypy_pct_errors.sh
jahatfi Oct 17, 2024
ab9ff35
Update get_mypy_pct_errors.sh
jahatfi Oct 17, 2024
c9d015b
Update get_mypy_pct_errors.sh
jahatfi Oct 17, 2024
3abdc11
Update get_mypy_pct_errors.sh
jahatfi Oct 17, 2024
5f040ef
Update python-app-ubuntu.yml
jahatfi Oct 17, 2024
580f341
Update get_mypy_pct_errors.sh
jahatfi Oct 17, 2024
1189276
Update get_mypy_pct_errors.sh
jahatfi Oct 17, 2024
1222f44
Update python-app-ubuntu.yml
jahatfi Oct 17, 2024
f05d6c4
Update get_mypy_pct_errors.sh
jahatfi Oct 17, 2024
c423073
Update get_mypy_pct_errors.sh
jahatfi Oct 17, 2024
512b094
Update get_mypy_pct_errors.sh
jahatfi Oct 17, 2024
d6ecaf5
Update python-app-ubuntu.yml
jahatfi Oct 17, 2024
dca8d45
Update python-app-ubuntu.yml
jahatfi Oct 17, 2024
91e83ae
Update run_pylint.sh
jahatfi Oct 17, 2024
0fc2dd3
Update python-app-ubuntu.yml
jahatfi Oct 17, 2024
cf05aad
Update run_pylint.sh
jahatfi Oct 17, 2024
e9c42c6
Update python-app-ubuntu.yml
jahatfi Oct 17, 2024
4d489cd
Update get_color.sh
jahatfi Oct 17, 2024
1d68617
Update run_pylint.sh
jahatfi Oct 17, 2024
4fa7b10
Update python-app-ubuntu.yml
jahatfi Oct 17, 2024
4f058ad
Update run_pylint.sh
jahatfi Oct 18, 2024
c3d281c
Update run_pylint.sh
jahatfi Oct 18, 2024
6b121fb
Update run_pylint.sh
jahatfi Oct 18, 2024
5b196d8
Update run_pylint.sh
jahatfi Oct 18, 2024
4f38bee
Update python-app-ubuntu.yml
jahatfi Oct 18, 2024
f1ccba7
Update run_pylint.sh
jahatfi Oct 18, 2024
4138fbf
Update run_pylint.sh
jahatfi Oct 18, 2024
2f6be91
Update run_pylint.sh
jahatfi Oct 18, 2024
d68f111
Updated paper
jahatfi Jan 6, 2025
37aa6d1
Merge branch 'master-on-mobile' of github.com:jahatfi/ddt into master…
jahatfi Jan 6, 2025
9a989ec
updates
jahatfi Jan 6, 2025
ee7a7fb
Merged in SIFT changes
jahatfi Feb 17, 2025
aef5eb6
Fixed hashed/unique input merge bug
jahatfi Feb 17, 2025
d8b9313
GitHub actions fixes: Added colors and exiting with mypy script error…
jahatfi Feb 17, 2025
5e500eb
Show myppy output
jahatfi Feb 17, 2025
9d76eac
Show myppy output
jahatfi Feb 17, 2025
58b5d95
Linted and typed
jahatfi Feb 17, 2025
5d58ff0
Trying to fix GH action
jahatfi Feb 17, 2025
d963252
Trying to fix GH action
jahatfi Feb 17, 2025
57a81ed
Run all tests in their own step
jahatfi Feb 17, 2025
0a1355d
Trying to fix GH action
jahatfi Feb 17, 2025
7337e39
Create control_car.py
jahatfi Nov 12, 2025
823d0d7
Update python-app-ubuntu.yml
jahatfi Nov 12, 2025
97973f9
Update control_car.py
jahatfi Nov 12, 2025
dc600b6
Update car.py
jahatfi Nov 12, 2025
a94ef10
Update python-app-ubuntu.yml
jahatfi Nov 12, 2025
95d16ce
Update car.py
jahatfi Nov 12, 2025
d6fbbf6
Update car.py
jahatfi Nov 12, 2025
9aa5545
Update all_types.py
jahatfi Nov 13, 2025
b039d7f
Update fizzbuzz.py
jahatfi Nov 13, 2025
1e73ff3
Update pass_by_assignment.py
jahatfi Nov 13, 2025
55b4b01
Update divide_ints.py
jahatfi Nov 13, 2025
d9f57fa
Update python-app-ubuntu.yml
jahatfi Nov 13, 2025
8a65460
Update python-app-ubuntu.yml
jahatfi Nov 13, 2025
3a0458d
Update python-app-ubuntu.yml
jahatfi Nov 13, 2025
b47a754
Update python-app-ubuntu.yml
jahatfi Nov 13, 2025
4abe141
Update python-app-ubuntu.yml
jahatfi Nov 13, 2025
019c545
Update python-app-ubuntu.yml
jahatfi Nov 13, 2025
f0c65ac
Update python-app-ubuntu.yml
jahatfi Nov 13, 2025
d5bc0eb
Update python-app-ubuntu.yml
jahatfi Nov 13, 2025
569ff9e
Update python-app-ubuntu.yml
jahatfi Nov 13, 2025
6ab3cc0
Adding standalone car example
jahatfi Nov 13, 2025
b19afe4
minor change
jahatfi Nov 13, 2025
1d191cd
Testing
jahatfi Nov 13, 2025
465a1eb
time and print removal
jahatfi Nov 13, 2025
e1714e8
sleep 1
jahatfi Nov 13, 2025
5cfd174
Update car.py
jahatfi Nov 13, 2025
4571397
Update python-app-ubuntu.yml
jahatfi Nov 13, 2025
e693b10
Update python-app-ubuntu.yml
jahatfi Nov 14, 2025
1600229
hide output of gitbadge
jahatfi Nov 14, 2025
21b8fc8
Merge branch 'master-on-mobile' of github.com:jahatfi/ddt into master…
jahatfi Nov 14, 2025
bb53955
Bug fixes before presentation
jahatfi Nov 14, 2025
634234b
latest windows runner
jahatfi Nov 14, 2025
f7595ed
new car
jahatfi Nov 14, 2025
82b62f0
Should be ready for presentation
jahatfi Nov 14, 2025
e9d8e12
done
jahatfi Nov 14, 2025
7631fba
Update python-app-ubuntu.yml
jahatfi Nov 14, 2025
52ea588
This should fix the args_after bug
jahatfi Nov 14, 2025
083c228
Results of fixing the args_after bug
jahatfi Nov 14, 2025
c72a977
Merge branch 'master-on-mobile' of github.com:jahatfi/ddt into master…
jahatfi Nov 14, 2025
00d2b1c
Removed auto_test_generation test
jahatfi Nov 14, 2025
3bb7e71
src tets no longer work, so removed it
jahatfi Nov 14, 2025
fc0c93d
added time and removed sleep
jahatfi Nov 14, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
85 changes: 85 additions & 0 deletions .github/workflows/github-actions-byob-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,85 @@
# Adapted from: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python

name: BYOB Test on Ubuntu
run-name: ${{ github.actor }} is testing out DDT on Ubuntu (latest)
on: #[push]
pull_request:
branches: [ "master3" ]
workflow_dispatch:

jobs:
test-ubuntu:
defaults:
run:
shell: bash
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v4

- name: Set up python
id: setup-python
uses: actions/setup-python@v5
with:
python-version: '3.11'

- name: Install Poetry
uses: snok/install-poetry@v1
with:
version: 1.7.1
virtualenvs-create: true
virtualenvs-in-project: true

- name: Load cached venv
id: cached-pip-wheels
uses: actions/cache@v4
with:
path: ~/.cache
key: venv-${{ runner.os }}-${{ steps.setup-python.outputs.python-version }}-${{ hashFiles('**/poetry.lock') }}

- name: Install dependencies
run: |
# set PATH=%PATH%;C:/Users/runneradmin/.local/bin/poetry
poetry --version
poetry install --no-interaction --no-root

- name: Install library
run: poetry install --no-interaction
- run: |
source $VENV
pytest --version

- name: Typecheck with mypy
id: mypy
continue-on-error: true
run: |
set +e
cd src
poetry run mypy --version
poetry run mypy unit_test_generator.py
MYPY_RESULT=$?
COLOR="blue"
echo "SELECTED_COLOR=green" >> "$GITHUB_OUTPUT"
echo "MYPY_RESULT=$MYPY_RESULT" >> "$GITHUB_OUTPUT"
echo "color=$COLOR"
echo "MYPY_RESULT=$MYPY_RESULT"
# echo "##[set-output name=data;]$($MYPY_RESULT)"
# echo "##[set-output name=color;]$(echo $COLOR)"

if [ $MYPY_RESULT -ne 0 ]; then
echo "::notice::mypy found errors." && exit $MYPY_RESULT
fi

- name: mypybadge
uses: RubbaBoy/BYOB@v1
env:
SELECTED_COLOR: ${{ steps.mypy.outputs.SELECTED_COLOR }}
MYPY_RESULT: ${{ steps.mypy.outputs.MYPY_RESULT }}
with:
NAME: mypy
LABEL: 'mypy'
STATUS: ${{ steps.mypy.outputs.MYPY_RESULT }} # echo "$MYPY_RESULT" # ${{ steps.mypy.outputs.data }}
COLOR: ${{ steps.mypy.outputs.SELECTED_COLOR }} #echo "$SELECTED_COLOR" #${{ steps.mypy.outputs.color }}
GITHUB_TOKEN: ${{ secrets.DDT }}
REPOSITORY: ${{ github.actor }}/ddt
ACTOR: ${{ github.actor }}
85 changes: 85 additions & 0 deletions .github/workflows/python-app-mypy-byob-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,85 @@
# Adapted from: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python

name: BYOB Test on Ubuntu
run-name: ${{ github.actor }} is testing out DDT on Ubuntu (latest)
on: #[push]
pull_request:
branches: [ "master" ]
workflow_dispatch:

jobs:
test-ubuntu:
defaults:
run:
shell: bash
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v4

- name: Set up python
id: setup-python
uses: actions/setup-python@v5
with:
python-version: '3.11'

- name: Install Poetry
uses: snok/install-poetry@v1
with:
version: 1.7.1
virtualenvs-create: true
virtualenvs-in-project: true

- name: Load cached venv
id: cached-pip-wheels
uses: actions/cache@v4
with:
path: ~/.cache
key: venv-${{ runner.os }}-${{ steps.setup-python.outputs.python-version }}-${{ hashFiles('**/poetry.lock') }}

- name: Install dependencies
run: |
# set PATH=%PATH%;C:/Users/runneradmin/.local/bin/poetry
poetry --version
poetry install --no-interaction --no-root

- name: Install library
run: poetry install --no-interaction
- run: |
source $VENV
pytest --version

- name: Typecheck with mypy
id: mypy
continue-on-error: true
run: |
set +e
cd src
poetry run mypy --version
poetry run mypy unit_test_generator.py
MYPY_RESULT=$?
COLOR="blue"
echo "SELECTED_COLOR=green" >> "$GITHUB_OUTPUT"
echo "MYPY_RESULT=$MYPY_RESULT" >> "$GITHUB_OUTPUT"
echo "color=$COLOR"
echo "MYPY_RESULT=$MYPY_RESULT"
# echo "##[set-output name=data;]$($MYPY_RESULT)"
# echo "##[set-output name=color;]$(echo $COLOR)"

if [ $MYPY_RESULT -ne 0 ]; then
echo "::notice::mypy found errors." && exit $MYPY_RESULT
fi

- name: mypybadge
uses: RubbaBoy/BYOB@v1
env:
SELECTED_COLOR: ${{ steps.mypy.outputs.SELECTED_COLOR }}
MYPY_RESULT: ${{ steps.mypy.outputs.MYPY_RESULT }}
with:
NAME: mypy
LABEL: 'mypy'
STATUS: ${{ steps.mypy.outputs.MYPY_RESULT }} # echo "$MYPY_RESULT" # ${{ steps.mypy.outputs.data }}
COLOR: ${{ steps.mypy.outputs.SELECTED_COLOR }} #echo "$SELECTED_COLOR" #${{ steps.mypy.outputs.color }}
GITHUB_TOKEN: ${{ secrets.DDT }}
REPOSITORY: ${{ github.actor }}/ddt
ACTOR: ${{ github.actor }}
82 changes: 82 additions & 0 deletions .github/workflows/python-app-ubuntu-car.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
# Adapted from: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python

name: Lint and Test on Ubuntu
run-name: ${{ github.actor }} is testing out DDT on Ubuntu (latest)
on: #[push]
pull_request:
branches: [ "master" ]
workflow_dispatch:

jobs:
test-ubuntu:
defaults:
run:
shell: bash
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v4

- name: Set up python
id: setup-python
uses: actions/setup-python@v5
with:
python-version: '3.11'

- name: Install Poetry
uses: snok/install-poetry@v1
with:
version: 1.7.1
virtualenvs-create: true
virtualenvs-in-project: true

- name: Load cached venv
id: cached-pip-wheels
uses: actions/cache@v4
with:
path: ~/.cache
key: venv-${{ runner.os }}-${{ steps.setup-python.outputs.python-version }}-${{ hashFiles('**/poetry.lock') }}

- name: Install dependencies
run: |
# set PATH=%PATH%;C:/Users/runneradmin/.local/bin/poetry
#poetry --version
#poetry install --no-interaction --no-root
sudo apt install cloc

- name: Install library
run: poetry install --no-interaction
- run: |
source $VENV
pytest --version

- name: pytest oo_car
env:
PY_COLORS: "1"
# continue-on-error: true
run: |
cd tests/oo_car
# echo "car.py -d runtime:"
#poetry run python car.py -d
#echo "car.py runtime:"
poetry run python car.py
poetry run coverage run -m pytest -s -v . #--doctest-modules --junitxml=junit/test-results.xml --cov=com --cov-report=xml --cov-report=html

- name: pytest coverage badge
env:
PY_COLORS: "1"
run: |
poetry add coverage-badge 2>&1 1>/dev/null
poetry run pip install genbadge[all]
poetry run coverage combine tests/fizzbuzz/.coverage tests/oo_car/.coverage tests/all_types/.coverage tests/pass_by_assignment/.coverage tests/procedural_division/.coverage src/.coverage
ls -lah
#poetry run coverage run -m pytest .
poetry run coverage report -m --omit="*/test_*"
poetry run coverage xml --omit="*/test_*"
poetry run coverage html
ls -lah
#echo "HTML?"
ls -lah htmlcov
poetry run coverage-badge -o coverage.svg
poetry run genbadge coverage -i coverage.xml

Loading
Loading