AndrewUsher / AndrewUsher/obsidian-dynatrace-dql

Add comprehensive unit tests for DQL tokenizer and highlighter

オープン
#6 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
enhancement
主要言語
TypeScript
スター
0
フォーク
0
PR マージ指標
30日以内にマージされた PR はありません

説明

The plugin currently has no visible test suite. Adding tests would improve code reliability and make it easier to add new features without regressions.

**Proposed Changes:**
- Create unit tests for the DQL tokenizer (`nextToken` function)
- Add tests for edge cases (nested comments, escaped quotes, duration literals)
- Test the highlighting logic with various DQL syntax scenarios
- Add tests for command parsing and validation
- Set up CI/CD to run tests on pull requests

**Benefits:**
- Catch regressions early when adding new features
- Document expected behavior through tests
- Make it easier for contributors to add enhancements safely
- Improve code maintainability and refactoring confidence

**Related Code:**
Tests should cover `src/dql-highlight.ts` and command logic in `src/main.ts`. Consider using Jest or Vitest for testing.

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。