Why there is'nt a simple Presenter test by default on skeleton web project

filisko
Member | 9
+
0
-

Hi,

As the title says… why there are not examples of that on the docs? Lets say I want test a Presenter returns 200 ok response. How do I do that?

Or well, maybe it's more a general question on why is that topic left so aside

Last edited by filisko (2024-03-20 16:19)

dkorpar
Member | 136
+
0
-

Before there were this library:
https://github.com/…/nette-tests
I was using it to do some tests and it was pretty cool, but now I'm not sure you can do that on an easy way…

Since presenters should also be pretty simple without any logic I'm usually not writing tests for them.
Another, a bit different approach to that would also be through codeception https://github.com/…/codeception and contributte has nette integration library: https://github.com/…/codeception

filisko
Member | 9
+
0
-

Yes, but I'm rather more concerned about why does the framework not include it? It's very pitty I would say.

There are always non-official ways to test things, but why go through that path?!

Last edited by filisko (2024-03-21 16:47)