Concise UI testing with Clojure

REPL 101

Hey Matti! How can I use REPL with our UI tests?

- A Colleague

"Sorry can't do"

  • JavaScript hipster techs

  • Tested server must be in a separate process:

    • More launch configurations

    • Additional API for state resets

  • Clojure server bootstrap is slow

  • ​No REPL 😱

  • WebDriver 

  • Bad previous experiences... 🦕                                 
  • Practically no REPL

...but does it really need to be like that? 🤔 

The birth of CUIC

Concise UI testing with Clojure

CUIC

  • Chrome DevTools Protocol

  • Good ol' JVM

  • Ability to reuse existing codebase
  • No need for separate launch confs or extra APIs
  • Can haz REPL 🎉

Demo time

Takeaway

 

Do not write UI test unless you have to

 

...but if you do, use REPL

 

Do not write UI test unless you have to

Tsers.

Slack @dibalo 

Concise UI testing with Clojure

By mlareaktor

Concise UI testing with Clojure

  • 139