Re: Splitting tests instead of testcases by processors when parallelizing tests

2022-03-18 Thread 'Adam Johnson' via Django developers (Contributions to Django itself)
outube.com/watch?v=_8qLxaWMdzE , and wrote a blog post: https://adamj.eu/tech/2021/04/12/how-to-convert-a-testcase-from-setup-to-setuptestdata/ ) If you split testcases across multiple processes, such per-testcase setup needs repeating in each process. So it can add a lot more work to your test

Re: Splitting tests instead of testcases by processors when parallelizing tests

2022-03-18 Thread charettes
st of the TestCase assigned to it. A better strategy might be to avoid splitting TestCases among processes but order the suite of TestCase by the number of tests attached to them to _larger_ TestCases are run first just like you would normally pack items in decreasing size to optimize for re

Splitting tests instead of testcases by processors when parallelizing tests

2022-03-18 Thread Alan Evangelista
Django only offers the possibility of parallelizing tests by splitting TestCases among processes. As the number of tests per TestCase class can be very different, it seems that splitting individual tests among processes would make more sense. I have replaced partition_suite_by_case() in test

Re: testcases

2021-03-23 Thread 'Adam Johnson' via Django developers (Contributions to Django itself)
asy for them to answer. Thanks for your understanding and all the best, Adam On Tue, 23 Mar 2021 at 17:01, sangeerth sathiskumar wrote: > > Hi guys im struggling with testcases. > Can you help me with testcase to this implementation ? > > > from django.db import models > fr

testcases

2021-03-23 Thread sangeerth sathiskumar
Hi guys im struggling with testcases. Can you help me with testcase to this implementation ? from django.db import models from django.contrib.auth.models import AbstractBaseUser, BaseUserManager # Create your models here. class AccountManager(BaseUserManager): def create_user(self, email