Play framework: setting up automatic / continuous testing

When I run the play test command, I can go to http://localhosts:9000/@tests and select the tests to run.

However, I would like the game to automatically run all my unit tests when I make a code change. When I try to execute play auto-test errors and the application does not start. How to resolve this?

I get the following trace

 16:21:57,428 WARN ~ You're running Play! in DEV mode ~ ~ Go to http://localhost:9000/@tests to run the tests ~ 16:21:57,493 INFO ~ Listening for HTTP on port 9000 (Waiting a first request to start) ... ~ ~ *The application does not start. There are errors: java.io.IOException: Server returned HTTP response code: 500 for URL: http://localhost:9000/@tests.list* 

[ UPDATED ]

It seems like a bug in SecureSocial.UserService. I'm not sure why this would be, since I am not working on https]

I am using play 1.24 with securesocial 0.2.3

  17:56:10,323 INFO ~ Listening for HTTP on port 9000 (Waiting a first request to start) ... 17:56:18,030 ERROR ~ @69ac4j243 Internal Server Error (500) for request GET /@tests.list Oops: UnexpectedException An unexpected error occured caused by exception UnexpectedException: While applying class play.classloading.enhancers.ControllersEnhancer on securesocial.provider.DefaultUserService play.exceptions.UnexpectedException: While applying play.CorePlugin@11a06e38 on securesocial.provider.DefaultUserService at play.plugins.PluginCollection.enhance(PluginCollection.java:511) at play.classloading.ApplicationClasses$ApplicationClass.enhance(ApplicationClasses.java:235) at play.classloading.ApplicationClassloader.loadApplicationClass(ApplicationClassloader.java:165) at play.classloading.ApplicationClassloader.loadClass(ApplicationClassloader.java:84) at java.lang.ClassLoader.loadClass(ClassLoader.java:247) at java.lang.Class.getDeclaredConstructors0(Native Method) at java.lang.Class.privateGetDeclaredConstructors(Class.java:2389) at java.lang.Class.getConstructors(Class.java:1459) at play.plugins.PluginCollection.reloadApplicationPlugins(PluginCollection.java:199) at play.Play.start(Play.java:460) at play.Play.detectChanges(Play.java:629) at play.Invoker$Invocation.init(Invoker.java:198) at Invocation.HTTP Request(Play!) Caused by: play.exceptions.UnexpectedException: While applying class play.classloading.enhancers.ControllersEnhancer on securesocial.provider.DefaultUserService at play.CorePlugin.enhance(CorePlugin.java:302) at play.plugins.PluginCollection.enhance(PluginCollection.java:506) ... 12 more Caused by: java.lang.RuntimeException: Trying to visit uncompiled class while enhancing. Uncompiled class: securesocial.provider.UserService$Service at play.classloading.enhancers.Enhancer$ApplicationClassesClasspath.openClassfile(Enhancer.java:75) at javassist.ClassPoolTail.openClassfile(ClassPoolTail.java:335) at javassist.ClassPool.openClassfile(ClassPool.java:594) at javassist.CtClassType.getClassFile2(CtClassType.java:185) at javassist.CtClassType.subtypeOf(CtClassType.java:303) at javassist.CtClassType.subtypeOf(CtClassType.java:318) at play.classloading.enhancers.ControllersEnhancer.enhanceThisClass(ControllersEnhancer.java:37) at play.CorePlugin.enhance(CorePlugin.java:297) ... 13 more @KILLED 
+4
source share

Source: https://habr.com/ru/post/1394913/


All Articles