You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+49Lines changed: 49 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -101,6 +101,55 @@ int main(int argc, char** argv) {
101
101
}
102
102
```
103
103
104
+
## Testing
105
+
106
+
The project uses a two-tier testing strategy: **stub tests** (no data needed) and **integration tests** (real Bruker datasets).
107
+
108
+
### Stub Tests
109
+
110
+
Run the FFI contract tests against the lightweight stub build (no `timsrust` dependency, no datasets):
111
+
112
+
```bash
113
+
cargo test
114
+
```
115
+
116
+
C++ ABI layout tests (requires Catch2, fetched automatically):
117
+
118
+
```bash
119
+
cargo build
120
+
tests_cpp/fetch_catch2.sh
121
+
cd tests_cpp && make test LIBDIR=../target/debug
122
+
```
123
+
124
+
### Integration Tests (Real Data)
125
+
126
+
Integration tests require real Bruker timsTOF Pro `.d` datasets. Test data is available as [GitHub release artifacts](https://github.com/OpenMS/timsrust_cpp_bridge/releases/tag/test-data-v1) (HeLa 50ng, 5.6-min gradient, from [PRIDE PXD027359](https://www.ebi.ac.uk/pride/archive/projects/PXD027359)).
127
+
128
+
Download and extract the datasets, then point the env vars at them:
0 commit comments