Skip to content

Commit b4891b2

Browse files
committed
feat(testing): add end-to-end regression testing suite
Implement regression framework with: - baseline JSON comparisons - automatic dataset download from filestore - .testdata cache - slow test markers - config-driven system tests - CI workflows for quick PR checks and weekly full regression This provides reproducible validation of scientific results across releases.
1 parent 226b37f commit b4891b2

17 files changed

Lines changed: 714 additions & 3 deletions

File tree

‎.gitignore‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,3 +125,5 @@ job*
125125
*.err
126126
*.com
127127
*.txt
128+
129+
.testdata/

‎tests/data/__init__.py‎

Whitespace-only changes.

‎tests/data/md_A4_dna.tpr‎

-83.9 KB
Binary file not shown.

‎tests/data/md_A4_dna_xf.trr‎

-914 KB
Binary file not shown.

‎tests/pytest.ini‎

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
[pytest]
2+
testpaths =
3+
unit
4+
regression
5+
6+
markers =
7+
regression: end-to-end regression tests against baselines
8+
slow: long-running regression tests (20-30+ minutes)
9+
10+
addopts = -ra
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
---
2+
3+
run1:
4+
force_file: ".testdata/benzaldehyde/forces.frc"
5+
top_traj_file:
6+
- ".testdata/benzaldehyde/molecules.top"
7+
- ".testdata/benzaldehyde/trajectory.crd"
8+
selection_string: "all"
9+
start: 0
10+
end: 1
11+
step: 1
12+
file_format: "MDCRD"
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
---
2+
3+
run1:
4+
force_file: ".testdata/benzene/forces.frc"
5+
top_traj_file:
6+
- ".testdata/benzene/molecules.top"
7+
- ".testdata/benzene/trajectory.crd"
8+
selection_string: 'all'
9+
start: 0
10+
end: 1
11+
step: 1
12+
file_format: 'MDCRD'
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
---
2+
3+
run1:
4+
force_file: ".testdata/cyclohexane/forces.frc"
5+
top_traj_file:
6+
- ".testdata/cyclohexane/molecules.top"
7+
- ".testdata/cyclohexane/trajectory.crd"
8+
selection_string: 'all'
9+
start: 0
10+
end: 1
11+
step: 1
12+
file_format: 'MDCRD'
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
---
2+
3+
run1:
4+
top_traj_file:
5+
- ".testdata/dna/md_A4_dna.tpr"
6+
- ".testdata/dna/md_A4_dna_xf.trr"
7+
selection_string: 'all'
8+
start: 0
9+
end: 1
10+
step: 1
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
---
2+
3+
run1:
4+
force_file: ".testdata/ethyl-acetate/forces.frc"
5+
top_traj_file:
6+
- ".testdata/ethyl-acetate/molecules.top"
7+
- ".testdata/ethyl-acetate/trajectory.crd"
8+
selection_string: 'all'
9+
start: 0
10+
end: 1
11+
step: 1
12+
file_format: 'MDCRD'

0 commit comments

Comments
 (0)