Universal testkit for all frameworks

8 views
Skip to first unread message

Sakib Hadžiavdić

unread,
Apr 2, 2025, 8:29:42 AMApr 2
to Pac4j development mailing list
Hello all,

would it make sense to start a new pac4j project that would have "generic" tests that all pac4j-supported frameworks should pass?

Currently lots of them don't have any tests, and to me that feels bad.
My suggestion is to write a general test kit that contains for example:
- /public endpoint that is unprotected
- /authenticated that is protected
- /authorized?role=abc, protected and authorized by some role(s)
- /login/form for logging in via user/pass
- etc, whatever seems sensible to test

This would provide a nice common ground for all frameworks, and some existing unit tests could become obsolete.
It would be easier to add new frameworks too I think.
Do you think this would be useful?

Jérôme LELEU

unread,
Apr 3, 2025, 2:29:14 AMApr 3
to Sakib Hadžiavdić, Pac4j development mailing list
Hi,

Yes, that fully makes sense.

Do you mean integration tests (UI) or unit tests?

Thanks.
Best regards,
Jérôme


--
You received this message because you are subscribed to the Google Groups "Pac4j development mailing list" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pac4j-dev+...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/pac4j-dev/a998d1e5-fe58-42d5-888f-a561e825a104n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages