I want to do e2e testing on my Play! application.
So far I was starting the Play! application "by hand" and I launch the tests after. I would like to know if there is a way to do that directly with sbt (in order to have to run only one command).
I have seen this in the sbt documentation :
testOptions in FunTest += Tests.Setup(() => println("Setup")),
testOptions in FunTest += Tests.Cleanup(() => println("Cleanup"))
Is there a way to use this in order to start the Play! application (and wait for it to be ready) and stop it in the Cleanup part?
Maybe by starting an external bash script?
Aucun commentaire:
Enregistrer un commentaire