pytest-dev / pytest-dev/pytest-messenger

Pytest-slack not Posting to Slack channel when using Pycharm Run option

Open
#228 16 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
67
Forks
14
PR merge metrics
No merged PRs in 30d

Description

"version": "==2.3.1"

I have my pytest.ini file configured to post my pytest results to a specific Slack channel, however, when I use the "Run" option in Pycharm my results are not being posted. But if I execute my tests from terminal, the report status is posted in the correct channel.

Before updating to this current version of pytest-slack, this was not an issue (2.2.4).

Not sure if this is a pytest-slack issue, or a Pycharm issue.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the report with pytest-slack 2.3.1 and the pytest.ini configuration, comparing PyCharm's Run option with terminal execution. Verify whether the Slack post is sent in each environment and determine whether the difference comes from pytest-slack or PyCharm.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
testing-qa
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.