Skip to content

Commit 8bf1064

Browse files
committed
docs: Update async test coverage status in README
Updated tests/asyncio/README.md to reflect new test additions: - Added test_environment.py to structure section - Added description of environment tests - Updated coverage from ~25 to ~57 async tests - Marked all coverage goals as completed (✅) Coverage breakdown: - 36 baseline async tests - 17 environment operation tests - 4 version edge case tests Total: 57 async tests
1 parent 42e5d43 commit 8bf1064

File tree

1 file changed

+15
-4
lines changed

1 file changed

+15
-4
lines changed

tests/asyncio/README.md

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ tests/asyncio/
1010
├── test_basic.py # Basic async functionality tests
1111
├── test_acmd.py # Pattern A (.acmd() methods) tests
1212
├── test_tmux_cmd.py # Pattern B (tmux_cmd_async) tests
13+
├── test_environment.py # Async environment variable operations tests
1314
├── test_hybrid.py # Tests for both patterns working together
1415
└── test_docstring_examples.py # Verification tests for docstring examples
1516
```
@@ -33,6 +34,16 @@ Tests for direct `tmux_cmd_async()` execution:
3334
- Direct async command execution
3435
- Socket isolation with `-L` flag
3536
- Async-first architecture patterns
37+
- Version checking functions and edge cases
38+
39+
### test_environment.py
40+
Tests for async environment variable operations:
41+
- Session-level environment operations (set, unset, remove, show)
42+
- Server-level global environment operations (with `-g` flag)
43+
- Concurrent environment modifications
44+
- Environment isolation between sessions
45+
- Edge cases (special characters, empty values, long values)
46+
- Global vs session-level precedence
3647

3748
### test_hybrid.py
3849
Tests for using both patterns together:
@@ -147,17 +158,17 @@ Following CPython's asyncio test patterns:
147158

148159
## Coverage Goals
149160

150-
Current coverage: ~25 async tests
161+
Current coverage: ~57 async tests (36 baseline + 17 environment + 4 version edge cases)
151162

152163
Target coverage:
153164
- ✅ Core async functionality (tmux_cmd_async, get_version)
154165
- ✅ Pattern A (.acmd methods)
155166
- ✅ Pattern B (tmux_cmd_async)
156167
- ✅ Concurrent operations
157168
- ✅ Error handling
158-
- ⏳ AsyncEnvironmentMixin methods (pending)
159-
- Version checking functions (pending)
160-
- Edge cases and error conditions (pending)
169+
- ✅ Environment operations (17 tests covering all operations)
170+
- Version checking functions (including edge cases with mocking)
171+
- Edge cases and error conditions (special chars, boundaries, race conditions)
161172

162173
## Best Practices
163174

0 commit comments

Comments
 (0)