osscameroon / js-generator

Generates JavaScript from HTML
https://osscameroon.github.io/js-generator/
MIT License
19 stars 14 forks source link

Run tests inside Intellij Idea #273

Open FanJups opened 1 month ago

FanJups commented 1 month ago

Given the multi-module nature of this project, Intellij Testing always fails. Fortunately, running tests at the command line works but we should also be able to run test inside Intellij

After running tests in Intellij, most of the time we get this error java: module not found: com.osscameroon.jsgenerator.core

Then, what if we deploy core module to maven/gradle ? Maybe, this error will disappear ? Or, is there a way to prevent Intellij to first search this module on maven central but start by checking locally ?

https://www.google.com/search?q=intellij+idea+failing+to+run+test+in+module+project&sca_esv=984db0dce26ae1a8&rlz=1C1FCXM_pt-PTPT1032PT1032&sxsrf=ADLYWIKa6aHpYXdAHsrIKOQDRDxKUgv7dg%3A1728935202287&ei=InUNZ5-bEciK7M8Ps7uAoAI&ved=0ahUKEwiftMnE0Y6JAxVIBfsDHbMdACQQ4dUDCA8&uact=5&oq=intellij+idea+failing+to+run+test+in+module+project&gs_lp=Egxnd3Mtd2l6LXNlcnAiM2ludGVsbGlqIGlkZWEgZmFpbGluZyB0byBydW4gdGVzdCBpbiBtb2R1bGUgcHJvamVjdDIFECEYnwVIyjdQ7QNY_TNwAXgBkAEAmAGjAaABjBOqAQQwLjE4uAEDyAEA-AEBmAIToALFE8ICChAAGLADGNYEGEfCAgcQIRigARgKwgIEECEYFZgDAIgGAZAGCJIHBDEuMTigB6Vp&sclient=gws-wiz-serp

FanJups commented 1 month ago

https://www.google.com/search?q=how+to+successfully+run+test+of+maven+multi+module+project+intellij&rlz=1C1FCXM_pt-PTPT1032PT1032&oq=how+to+successfully+run+test+of+maven+multi+module+project&gs_lcrp=EgZjaHJvbWUqBwgBECEYoAEyBggAEEUYOTIHCAEQIRigATIHCAIQIRiPAjIHCAMQIRiPAtIBCTMzODMzajBqN6gCALACAA&sourceid=chrome&ie=UTF-8

FanJups commented 1 month ago

https://stackoverflow.com/questions/63232081/running-tests-in-a-maven-multi-module-project

FanJups commented 1 month ago

https://github.com/mesche/maven-multi-project-example