0

I'm running Eclipse Neon (4.6) with the Angular 2 plugin. This plugin creates a couple of run configurations that are accessible under the Run As right-click menu, namely ng build and ng serve. Basically, these two configurations invoke the Angular CLI (ng) and issue the build or serve commands. It is my understanding that these configurations are defined directly by the plugin.

Currently, I can invoke unit tests for Angular 2 projects by opening a terminal view and typing ng test. It would be easier to just have that as a Run As configuration. So I thought I would create a new configuration. I see that there is an AgularCLI entry in the Run Configurations management window, but unfortunately, trying to create a run configuration therein results in a dialog box saying that there is "no tab group defined for launch configuration type ts.eclipse.ide.angular2.cli.angularCLILaunchConfigurationType".

Is there any way I can go about twisting Eclipse's arm so that I can launch unit tests from a right-click menu rather than having to go through the trouble of launching a terminal?

João Mendes
  • 1,719
  • 15
  • 32
  • Please create an issue at https://github.com/angelozerr/angular2-eclipse/issues – Angelo Oct 13 '16 at 20:51
  • Done, thanks for piping in. Created two, actually. The more general question still stands, though. Is there a way to duplicate plugin-generated configurations? – João Mendes Oct 14 '16 at 09:04
  • See https://github.com/angelozerr/angular2-eclipse/issues/23 – Angelo Oct 14 '16 at 14:03
  • The error is described in https://github.com/angelozerr/angular2-eclipse/issues/24 (not 23). As @angelo says "I have not implemented UI for Angular CLI launch" – Sergio Oct 24 '16 at 14:28
  • 1
    I'm implementing this feature. It starts working. It misses just an "arguments" text box in the launch. It will be available for 1.1.0 which will be soon released. – Angelo Oct 25 '16 at 08:27

1 Answers1

1

I suggest you that you install Angular2 Eclipse 1.1.0 which fixes several bugs:

  1. fix bug with duplicated launch
  2. add ng test
  3. provide an UI for ng launch

ng launch UI

  1. you can execute now ng commands with angular-cli.json editor:

ng editor

Angelo
  • 2,027
  • 13
  • 17