Opened 4 years ago

Closed 4 years ago

#32270 closed New feature (duplicate)

Changing Django’s default test runner to be more robust

Reported by: Diptesh Choudhuri Owned by: nobody
Component: Testing framework Version: dev
Severity: Normal Keywords: testing
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description (last modified by Diptesh Choudhuri)

The default django test runner gets the job done, but it (and the entire django codebase) can benefit from a more robust runner, like pytest or nose. I will take the example of pytest because I am familiar with it and it is more widely used.

Anyone who has used pytest with django will immediately agree that it is much more pleasurable to work with, albeit a bit more intimidating. I intend work on the intimidating part and make it easier by adding a lot of documentation.

Please let me know your opinions on this topic. If it gets traction, I will work on compiling a list of what pytest has over the default runner, and what I intend to do to solve all of this.

NOTE: If accepted, this will be my proposal for GSoC 2021 to the Django Organization.

EDIT: I also made a post about this in the django developers google group (https://groups.google.com/g/django-developers) but for some reason, it said that it needs to be approved before being moade available to the public. If someone could look into that, it'd be great.

Best,
Diptesh

Change History (4)

comment:1 by Diptesh Choudhuri, 4 years ago

Description: modified (diff)
Version: 3.1master

comment:2 by Diptesh Choudhuri, 4 years ago

Description: modified (diff)

comment:3 by Aditya parashar, 4 years ago

yes you can there are many good advantages that I see by viewing through There are a lot more features overall, but I think one major reason people use nose/djano_nose is that it allows you to very easily do code coverage. nose comes with a number of builtin plugins to help you with output capture, error introspection etc . So sure you can do it I Don't know pytest much

comment:4 by Mariusz Felisiak, 4 years ago

Resolution: duplicate
Status: newclosed

Anyone who has used pytest with django will immediately agree that it is much more pleasurable to work with, ...

We shouldn't generalize, I've used pytest but I don't agree that it's much better then Django's test runner.

I think it's basically a duplicate of #25707.

Note: See TracTickets for help on using tickets.
Back to Top