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
+94-1Lines changed: 94 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -143,9 +143,102 @@ n.b. to view command line options e.g. available settings for environment ("--en
143
143
144
144
The rust client can be configured to listen for any of the three content types below by setting the environment variable named "PT_SERVER_URL" to the URLs below in the relevant configuration file for development (".env.dev"), test (".env.test") or production (".env.prod").
145
145
146
-
N.B. Current Rust client only supports one of the three content types per installed Rust code (under /target/release/ folder).
146
+
N.B. Current Rust client only supports one of the three content types per installed Rust code (under /target/release/ folder).
147
147
Listening for more than one set of content from list below requires multiple copies of the Rust runtime files and a custom configuration per instance.
148
148
149
+
### Testing
150
+
151
+
The project includes comprehensive unit tests with **19.18% code coverage** (47/245 lines covered).
152
+
153
+
#### Running Tests
154
+
155
+
Run all tests with proper test isolation:
156
+
```bash
157
+
cargo test -- --test-threads=1
158
+
```
159
+
160
+
Run tests with verbose output:
161
+
```bash
162
+
cargo test -- --test-threads=1 --nocapture
163
+
```
164
+
165
+
Run a specific test:
166
+
```bash
167
+
cargo test test_from_env_success -- --nocapture
168
+
```
169
+
170
+
Run tests for a specific module:
171
+
```bash
172
+
cargo test config::tests -- --test-threads=1
173
+
```
174
+
175
+
#### Test Coverage
176
+
177
+
Generate a detailed coverage report using `cargo-tarpaulin`:
0 commit comments