Skip to content

Commit 1f88c85

Browse files
Refactor tests directory structure (#894)
* Refactor tests directory structure to match library modules - Created subdirectories in tests/: backend, executor, standalone, task_scheduler. - Moved and renamed test files to corresponding subdirectories. - Updated relative paths in test files for executables and backends. - Added __init__.py files to new test packages. Co-authored-by: jan-janssen <[email protected]> * Update pipeline.yml * Update pipeline.yml * refactor * fixes * communication fix * fix serial tests * fix flux --------- Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com> Co-authored-by: jan-janssen <[email protected]>
1 parent aa7d094 commit 1f88c85

Some content is hidden

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

47 files changed

+25
-17
lines changed

.github/workflows/pipeline.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ jobs:
218218
timeout-minutes: 5
219219
run: >
220220
flux start
221-
python -m unittest tests/test_fluxpythonspawner.py tests/test_fluxjobexecutor_plot.py tests/test_fluxjobexecutor.py tests/test_fluxclusterexecutor.py;
221+
python -m unittest tests/unit/task_scheduler/interactive/test_spawner_flux.py tests/unit/executor/test_flux_job_plot.py tests/unit/executor/test_flux_job.py tests/unit/executor/test_flux_cluster.py;
222222
223223
unittest_flux_openmpi:
224224
needs: [black]
@@ -249,7 +249,7 @@ jobs:
249249
timeout-minutes: 5
250250
run: >
251251
flux start
252-
coverage run -a -m unittest tests/test_fluxpythonspawner.py tests/test_fluxjobexecutor_plot.py tests/test_fluxjobexecutor.py tests/test_fluxclusterexecutor.py;
252+
coverage run -a -m unittest tests/unit/task_scheduler/interactive/test_spawner_flux.py tests/unit/executor/test_flux_job_plot.py tests/unit/executor/test_flux_job.py tests/unit/executor/test_flux_cluster.py;
253253
coverage report;
254254
coverage xml
255255
env:
@@ -289,11 +289,11 @@ jobs:
289289
timeout-minutes: 5
290290
run: |
291291
pip install . --no-deps --no-build-isolation
292-
cd tests
292+
cd tests/unit
293293
sinfo -o "%n %e %m %a %c %C"
294294
srun --mpi=list
295-
python -m unittest test_slurmjobexecutor.py
296-
python -m unittest test_slurmclusterexecutor.py
295+
python -m unittest executor/test_slurm_job.py
296+
python -m unittest executor/test_slurm_cluster.py
297297
298298
unittest_mpich:
299299
needs: [black]

tests/integration/__init__.py

Whitespace-only changes.

tests/unit/__init__.py

Whitespace-only changes.

tests/unit/backend/__init__.py

Whitespace-only changes.
File renamed without changes.

tests/unit/executor/__init__.py

Whitespace-only changes.

0 commit comments

Comments
 (0)