Jump to content

TDD in PW


Nvim
 Share

Recommended Posts

@flydev, thanks for linking that thread – I had already forgotten the whole thing. Will come in handy for a project I'm currently working on ?

That being said, TDD or test-driven development is a pretty specific process: essentially you define what the app should do (success criteria), create tests based on that, and finally write code to fulfil those tests. Iterate this until you have a complete application. I haven't heard anyone developing ProcessWire stuff like that, but technically it's doable, although it obviously depends a lot on what you're actually building with ProcessWire.

For most sites out there I'd argue that TDD probably isn't the easiest thing to pull off, or perhaps even the most sensible approach. In my opinion it's more suitable to application development. The front-end layer alone adds loads of complexity to the equation. I'd love to hear if anyone is actually doing this in our context though ?

  • Like 2
Link to comment
Share on other sites

26 minutes ago, teppo said:

In my opinion it's more suitable to application development.

True, for example, I didn't written any test for our frontend, but the backend and the module managing the transactions with financial data is fully unit tested, and it's required (while writing that, I am thinking on what we discussed on Github about the example of the float type vs the integer one for managing financial data; Imagine the things without test... houston.. ?‍? ).

  • Like 2
Link to comment
Share on other sites

  • 2 weeks later...
On 1/23/2019 at 12:08 AM, Nvim said:

TDD should be built in Processwire.

Please be a bit more specific. Why is this so important to you, and how would you envision it being implemented in the context of ProcessWire? Have you considered the possible solutions mentioned in this thread, and if so, what made you decide that they are not good enough?

We're always happy to discuss new ideas and suggestions, but on the off chance that you're only posting these things in order to cause an argument, be aware that such behaviour won't be tolerated here.

Thanks for giving your posts a bit more consideration from now on, and have a great day!

  • Like 3
  • Thanks 1
Link to comment
Share on other sites

  • 3 weeks later...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...