Skip to content
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

TPI: Django testing #23984

Closed
3 tasks done
eleanorjboyd opened this issue Aug 21, 2024 · 0 comments
Closed
3 tasks done

TPI: Django testing #23984

eleanorjboyd opened this issue Aug 21, 2024 · 0 comments

Comments

@eleanorjboyd
Copy link
Member

eleanorjboyd commented Aug 21, 2024

Refs: #73

Complexity: 5

Author: @eleanorjboyd

Create Issue

Create Issue


We have now added support so Django tests show up in the test explorer! I have listed the steps below and am looking for both feedback / bugs on the actual Django testing and also the doc we have written up to help users. As a note this is not our final/ desired UI to have this set and get configured. We plan on making this much more user friends once the work with custom configs is decided on but didn't want Django testing to be blocked till then.

Steps:

  1. create a python virtual environment (us the create environment command from the command palette)
  2. create a Django project (you can see how on their website or maybe copilot could generate it for you)
  3. write a test in your Django project
  4. make sure you tests runs from the command line. It should look something like this python manage.py test (may need to specify manage.py path more depending on cwd)
  5. once you can get the tests running from the command line, try it in the UI!
  6. follow the steps in this PR and verify that you can get your tests discovered and run via the test explorer tab
    (a known issue that you might face is having to reload the vscode window after selecting unittest to activate that runner as it might default to pytest which would then error for test discovery)
@eleanorjboyd eleanorjboyd added the feature-request Request for new features or functionality label Aug 21, 2024
@eleanorjboyd eleanorjboyd added this to the August 2024 milestone Aug 21, 2024
@github-actions github-actions bot added the triage-needed Needs assignment to the proper sub-team label Aug 21, 2024
@eleanorjboyd eleanorjboyd added testplan-item and removed triage-needed Needs assignment to the proper sub-team labels Aug 21, 2024
@karthiknadig karthiknadig removed the feature-request Request for new features or functionality label Aug 26, 2024
@deepak1556 deepak1556 removed their assignment Aug 27, 2024
@lszomoru lszomoru removed their assignment Aug 27, 2024
@joyceerhl joyceerhl removed their assignment Aug 27, 2024
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 27, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

5 participants