[keycloak-dev] Javascript adapater tests

Guillaume Vincent gvincent at redhat.com
Wed Jan 16 09:53:14 EST 2019


Hello Keycloak dev list,

in a previous post I raised the problem that the JavaScript adapter did not
have JavaScript tests.

In a couple of hours I created a simple example for Keycloak with unit and
functional tests https://github.com/guillaumevincent/keycloak-lite

You can see tests in this file
https://github.com/guillaumevincent/keycloak-lite/blob/master/test.js

I also created a blog post on IMO How to test JavaScript code:
https://guillaumevincent.com/2019/01/15/test-in-javascript.html

Maybe we can open the discussion on how keycloak.js should be tested.
Without any fast and automated tests, in JavaScript, the refactor of the
keycloak adapter will not be easy at all.

wdyt?

-- 
Guillaume Vincent
Senior Software Engineer


More information about the keycloak-dev mailing list