Skip to content

Conversation

nixel2007
Copy link

@nixel2007 nixel2007 commented Aug 11, 2025

Summary by CodeRabbit

  • Документация
    • Добавлен раздел о запуске тестов в VS Code через линзы BSL Language Server.
    • Описана настройка CodeLens-тестраннера с примером конфигурации и параметрами для исполняемого файла, аргументов тестов, покрытия и открытия отчётов.
    • Указан шаблон для разбора результатов тестов.
    • Изменения носят информационный характер; функциональность и публичные интерфейсы без изменений.

Copy link

coderabbitai bot commented Aug 11, 2025

Walkthrough

Добавлена новая секция 2.3 в README.md с инструкциями по запуску тестов в VSCode через BSL Language Server CodeLens. Включен пример .bsl-language-server.json с полями для executable, аргументов тестов, опций coverage/open test report и getTestsResultPattern. Изменения носят сугубо документальный характер.

Changes

Cohort / File(s) Summary
Документация (README)
README.md
Добавлена секция 2.3 о настройке и запуске тестов в VSCode через BSL Language Server CodeLens; приведен пример .bsl-language-server.json (executable, test args, coverage/open test report, getTestsResultPattern). Код и публичные API не изменялись.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~2 minutes

Poem

Прыг-скок — в README след простой,
Про тесты путь теперь ясной.
Линзы мерцают в VSCode окне,
Зайчонок счастлив: “Запуск — мне!” 🐇
Конфиг шепчет: “Все готово”, —
И отчёт откроется толково.

✨ Finishing Touches
🧪 Generate unit tests
  • Create PR with unit tests
  • Post copyable unit tests in a comment

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Explain this complex logic.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai explain this code block.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and explain its main purpose.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.

Support

Need help? Create a ticket on our support page for assistance with any issues or questions.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai generate docstrings to generate docstrings for this PR.
  • @coderabbitai generate sequence diagram to generate a sequence diagram of the changes in this PR.
  • @coderabbitai generate unit tests to generate unit tests for this PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 0

🧹 Nitpick comments (3)
README.md (3)

690-690: Добавьте язык к ограждённому блоку кода.

Сейчас блок начинается с ``` без указания языка, из‑за чего срабатывает markdownlint MD040. Для корректной подсветки синтаксиса и прохождения линтеров укажите json.

-```
+```json

686-689: Уточните расположение файла конфигурации и необходимость перезагрузки LSP.

Стоит явно указать, что файл .bsl-language-server.json следует размещать в корне рабочей области VSCode (workspace root). Также полезно добавить, что после внесения изменений BSL Language Server нужно перезапустить/перегрузить (или перезагрузить окно VSCode), чтобы линзы подхватили новую конфигурацию.


697-699: Уточните про каталог вывода отчётов.

Пути out/genericCoverage.xml, out/otr.xml, out/cobertura.xml подразумевают существование каталога out. Если oneunit не создаёт директории автоматически, выполнение из линз может завершиться ошибкой записи. Стоит:

  • либо добавить примечание «Убедитесь, что каталог out существует»;
  • либо заменить пути на те, что гарантированно существуют в проекте.
📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 9ec0794 and 57cf096.

📒 Files selected for processing (1)
  • README.md (1 hunks)
🧰 Additional context used
🪛 markdownlint-cli2 (0.17.2)
README.md

690-690: Fenced code blocks should have a language specified

(MD040, fenced-code-language)

🔇 Additional comments (1)
README.md (1)

694-701: Проверьте корректность аргументов и регулярного выражения для извлечения имени теста.

  • Плейсхолдеры %s для --file и -m должны соответствовать тому, как BSL Language Server подставляет путь к файлу и имя теста.
  • Текущее getTestsResultPattern: ^[^.]+\.([^\s]+).*$ предполагает формат вывода discover вида Набор.Метод ... и выдёргивает метод как первую группу. Это может быть хрупко, если в выводе появятся дополнительные точки/префиксы, или формат локализован/изменён.

Рекомендации к проверке:

  • Запустите oneunit discover --file <путь.к.файлу> --mode flat и убедитесь, что первая группа в регулярке действительно даёт нужное имя теста.
  • Если потребуется чуть более устойчивый вариант, можно, например, ограничить захват до конца строки или до первого пробела после метода, в зависимости от фактического вывода. Например:
    • Начало строки, до первой точки — имя набора, затем захват имени метода до первого пробела: ^[^.]+\.(\S+)
    • Или, если вывод строго Набор.Метод без хвоста: ^[^.]+\.(\S+)$

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