Skip to content

Add pytest test suite for parser and timeseries#2

Closed
nikfot wants to merge 1 commit into
mainfrom
feature/add-test-suite
Closed

Add pytest test suite for parser and timeseries#2
nikfot wants to merge 1 commit into
mainfrom
feature/add-test-suite

Conversation

@nikfot

@nikfot nikfot commented May 16, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Adds 18 pytest tests covering the parser and timeseries modules
  • Includes test fixtures for vmstat -a, standard, and headerless log formats
  • Tests parser entry count, timestamp extraction, CPU/memory/IO values, edge cases, and PlotMetrics extraction

Test plan

  • All 18 tests pass: PYTHONPATH=src python3 -m pytest tests/ -v

18 tests covering:
- Parser with vmstat -a format (header detection, entry parsing)
- Parser with headerless log files (legacy format)
- Edge cases (empty files, header-only files)
- PlotMetrics extraction (time format, relative time, CPU, memory, IO)
- Timeseries data model (commit_raw_data, initialization, repr)

Includes test fixtures for active-memory and no-header vmstat formats.
@nikfot

nikfot commented May 16, 2026

Copy link
Copy Markdown
Contributor Author

Superseded by PR #8 which was merged to main with comprehensive test coverage.

@nikfot nikfot closed this May 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant