Skip to content

Support test discovery/running for python-behave #14001

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
ben-edna opened this issue Sep 19, 2020 · 8 comments
Closed

Support test discovery/running for python-behave #14001

ben-edna opened this issue Sep 19, 2020 · 8 comments
Assignees
Labels
area-testing feature-request Request for new features or functionality

Comments

@ben-edna
Copy link

Currently nosetest, unittest and pytest are supported for running and debugging tests. This is very helpful and I use it a lot.
Another widely used testing framework in behave. This is a Behavior Driven Development framework with feature files.

It would be great if the Python plugin for VSCode could support Behave for auto-discovery and running/debugging of tests.

@ben-edna ben-edna added triage-needed Needs assignment to the proper sub-team feature-request Request for new features or functionality labels Sep 19, 2020
@karthiknadig
Copy link
Member

Thank you for the suggestion! We have marked this issue as "needs decision" to make sure we have a conversation about your idea. We plan to leave this feature request open for at least a month to see how many 👍 votes the opening comment gets to help us make our decision.

@ghost ghost removed the triage-needed Needs assignment to the proper sub-team label Sep 21, 2020
@bittner
Copy link

bittner commented Oct 8, 2020

(Maintainer of behave-django and contributor to behave here.)

Maybe you want to describe what needs to be done to integrate behave. To help understand how easy or difficult it would be to come up with a contribution.

@luabud
Copy link
Member

luabud commented Oct 21, 2020

Hey @bittner! Super happy to see you're interested in contributing to this. If you want to take a stab at it, we're not going to block the contribution. However, we've been talking about a long-term plan of reworking our testing integration and I believe that it would be easier to add support for additional tools once that is done. However we don't have an ETA as to when that would happen.

@luabud luabud added needs proposal Need to make some design decisions and removed needs decision labels Oct 21, 2020
@luabud luabud self-assigned this Oct 21, 2020
@bittner
Copy link

bittner commented Oct 21, 2020

Do you have documentation describing a suggested approach to integrate Python tools?

  • behave is a stand-alone tool (behave on the command line), but can be run as a module.
  • behave-django must be run as a Django management command (python manage.py behave).

Any specific recommendations to ensure our investment is future-proof?

@ben-edna
Copy link
Author

ben-edna commented Aug 6, 2021

VSCode has released the Testing API which allows Visual Studio Code extensions to discover tests in the workspace and publish results docs. I also saw somebody already started an extension for behave based on this vscode-behave-test-adapter.

@eleanorjboyd
Copy link
Member

Hello! We have just finished our testing rewrite and are beginning the roll out to users. If you are able, it would be very helpful to know if your issue still exists on the rewrite! To try it yourself, you need to be on the most recent release of the Python extension and add this setting to your users settings.json "python.experiments.optInto": ["pythonTestAdapter"].

You can confirm you have the rewrite enabled by setting "python.analysis.logLevel": "Trace", in your user settings then check for Experiment 'pythonTestAdapter' is active in your python logs.

Let me know if the rewrite fixes your issue. Thanks!

@eleanorjboyd
Copy link
Member

my apologies, this is likely not to resolve it. The issue status is thus the same. Thanks

@eleanorjboyd eleanorjboyd self-assigned this Dec 4, 2023
@brettcannon
Copy link
Member

Due to limited resources and lack of general interest, we are unfortunately closing this issue.

@brettcannon brettcannon closed this as not planned Won't fix, can't repro, duplicate, stale Dec 19, 2023
@github-actions github-actions bot removed the needs proposal Need to make some design decisions label Dec 19, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jan 19, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-testing feature-request Request for new features or functionality
Projects
None yet
Development

No branches or pull requests

6 participants