Skip to content

Conversation

@AlexanderLanin
Copy link
Member

No description provided.

Copilot AI review requested due to automatic review settings July 23, 2025 09:52
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR improves pytest XML output configuration and adds development environment settings. The changes focus on enhancing test execution by configuring proper XML output for Bazel integration and preventing pytest from searching irrelevant directories.

  • Added --junitxml argument to generate XML output compatible with Bazel's test result schema
  • Configured norecursedirs in pytest.ini to prevent searching in hidden folders and build directories
  • Added VS Code workspace settings for Python development

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

File Description
python_basics/score_pytest/pytest.ini Added norecursedirs configuration to exclude irrelevant directories from test discovery
python_basics/score_pytest/py_pytest.bzl Enhanced args formatting and added --junitxml flag for XML output generation
.vscode/settings.json Added VS Code workspace settings for Python development environment

# XML_OUTPUT_FILE: Location to which test actions should write a test
# result XML output file. Otherwise, Bazel generates a default XML
# output file wrapping the test log as part of the test action. The XML
# schema is based on the JUnit test result schema.
Copy link

Copilot AI Jul 23, 2025

Choose a reason for hiding this comment

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

The comment explains XML_OUTPUT_FILE but doesn't clarify why double dollar signs ($$) are used. Consider adding a note that $$ is used for Bazel variable expansion to distinguish it from shell variable expansion.

Suggested change
# schema is based on the JUnit test result schema.
# schema is based on the JUnit test result schema.
# Note: Double dollar signs ($$) are used for Bazel variable expansion
# to distinguish it from shell variable expansion.

Copilot uses AI. Check for mistakes.
Copy link
Contributor

@MaximilianSoerenPollak MaximilianSoerenPollak left a comment

Choose a reason for hiding this comment

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

👍

@MaximilianSoerenPollak MaximilianSoerenPollak merged commit 139f40e into main Jul 23, 2025
2 checks passed
@github-project-automation github-project-automation bot moved this from Draft to Done in Infrastructure Jul 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants