Behaviour driven development in Django rest framework.

16 views
Skip to first unread message

Tom Victor

unread,
May 3, 2020, 4:09:13 AM5/3/20
to Django REST framework
My current company is planing to switch to behaviour driven development also known as BDD. After a long google search I came to the conclusion that behave is the semi official python package for BDD in python. I am wondering how could we practically use along with drf.

What is the correct ideal way to 

1. Structure our test files. 
2. Where should we keep the BDD feature, step files?
3. Which category would add fall under, unit testing, integration testing or acceptance  testing?

Thanks


Carl Nobile

unread,
May 3, 2020, 1:25:03 PM5/3/20
to django-res...@googlegroups.com
I realize that this is just my opinion, however, I've been writing code for over 40 years and Python for over 20.
There is nothing, no process, not a special package that will develop good code for you, only well-trained engineers that follow best practices.
In Python, this means the coding standard PEP-8.
Also, read read read RFCs they are how things are supposed to work. The next time I see credentials in the body of a request I will scream or for that matter versioning done like this /api/v1/, use mimetypes, please.
If you are doing RESTful web services and you have not read Roy Fielding's dissertation and understood it don't write RESTful web services.
Never give developers with five years or less experience a huge project to do, it WILL be done poorly guaranteed.
If you must use Agile then the software architect needs to completely decide upfront how the system will work in detail, or once again it won't work. If you're not doing this then get out of the business.
Small teams under 8 or 9 don't need Agile just a very good lead.
Too much structure makes for bad engineers. They trust daddy too much and will never think for themselves.
With too little structure they will surf the web all day and not write a line of code.
OK, Nuff said.
~Carl

--
You received this message because you are subscribed to the Google Groups "Django REST framework" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-rest-fram...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-rest-framework/a24833b2-823f-4867-86c5-09d3943a4a85%40googlegroups.com.


--
-------------------------------------------------------------------------------
Carl J. Nobile (Software Engineer)
carl....@gmail.com
-------------------------------------------------------------------------------
Reply all
Reply to author
Forward
0 new messages