menu
announcement

Spectrum is now read-only. Learn more about the decision in our official announcement.

Theia

Eclipse Theia - Cloud & Desktop IDE

Channels
Team

Running a Single Unit Test

March 31, 2020 at 8:32am

Running a Single Unit Test

March 31, 2020 at 8:32am
I know how to run all tests in a package, thanks to https://github.com/eclipse-theia/theia/blob/master/doc/Testing.md What is not clear to me is how I can run a single *spec.ts file. I'm trying to add some unit tests and would like to just repeatedly run that single test file. Can anyone help?

March 31, 2020 at 9:05am
You can replace it with it.only to run one test.
or pas --grep mytest
You can debug a single spec file with Run Mocha Tests launch configuration.