jhipster / jhipster-ide

An IDE for the JHipster Domain Language
https://jhipster.github.io/jhipster-ide
127 stars 37 forks source link

TestFramework missing Cypress #393

Closed AleMScof closed 2 years ago

AleMScof commented 2 years ago

Editing a jdl file through VSCode highlights errors whenever there's cypress as testFramework parameter

To Reproduce Steps to reproduce the behavior:

  1. Go to VSCode
  2. Use the below sample jdl file
  3. application { config { applicationType monolith serviceDiscoveryType eureka devDatabaseType h2Disk testFrameworks [cypress] messageBroker kafka cacheProvider ehcache websocket spring-websocket buildTool maven prodDatabaseType mysql searchEngine elasticsearch clientPackageManager npm clientFramework angularX authenticationType jwt nativeLanguage de serverPort 8080 entitySuffix ZooFoobar dtoSuffix DTO jwtSecretKey "com.hilpert" skipClient false packageName info.monahan baseName stringtough skipUserManagement false enableTranslation true languages [hi, ru] jhiPrefix jhi reactive false enableSwaggerCodegen true skipServer false enableHibernateCache true useSass false clientTheme none clientThemeVariant primary } }
  4. Check the highlighted error. image

Expected behaviour Cypress should be allowed as a parameter

Desktop (please complete the following information):

colameo commented 2 years ago

This is because the jh base repo was not updated when the above option was introduced. More specifically, the JSON file JDLApplicationOptions.json must also contain an options definition for Cypress. Can you please file an issue there as well?