Can IntelliJ 2021.3.2U run individual angular tests via Run/Debug Configuration?

I am attempting to execute the Angular Test against a single spec.ts file on my CentOS box.

I can use the command line from the OS terminal and from within the IntelliJ Terminal

*ng test --include="somefile.spec.ts"*

and the Angular Karma Test will run just that specific file.

However, I cannot seem to find a way to properly setup the Run/Debug Configuration to allow me to run at just the click of a button the current spec.ts file that I am on.

Here is an image of what I currently have. Note: test_file just calls ng test

Does IntelliJ Support this through the Run/Debug?

If YES, can you post what values are to be used in the appropriate configuration fields.

 

Thank you

0

Someone in a different forum just posted a solution.

Under the Arguments where I have --include="$FileName"

 

Change that to

-- --include="$FileName$"
0

请先登录再写评论。