'm running version 2.5.0, and have around 15-20 test-files using Qunit and Typescript.
running all the tests takes more than 60 seconds. It seems that running the tests in each file itselfs is quick (typically 0.02 seconds), but that it takes around 3 seconds to prepare for each .ts file.
In the trace-file, you can see it takes almost 3 seconds from sinon-1.7.3 is added, to the next log-message is displayed.
In conclution, it seems most of the time is spent setting up the environment for each test-file.
See [this discussion](http://chutzpah.codeplex.com/discussions/462587)
Comments: We have a similar issue, but with running Chutzpah tests on our build server. The workaround we use is to merge all the test TS files into one, and then run tests on just this one file. The custom MSBuild task we use for merge is below ``` <ItemGroup> <TestFiles Include="js\_references.ts;js\**\*.test.ts;js\**\*.spec.ts"/> </ItemGroup> <Target Name="MergeTypeScriptTestFiles"> <ReadLinesFromFile File="%(TestFiles.Identity)"> <Output TaskParameter="Lines" ItemName="lines"/> </ReadLinesFromFile> <WriteLinesToFile File="js\TypeScriptTests.ts" Lines="@(Lines)" Overwrite="false" /> </Target> ```
running all the tests takes more than 60 seconds. It seems that running the tests in each file itselfs is quick (typically 0.02 seconds), but that it takes around 3 seconds to prepare for each .ts file.
In the trace-file, you can see it takes almost 3 seconds from sinon-1.7.3 is added, to the next log-message is displayed.
In conclution, it seems most of the time is spent setting up the environment for each test-file.
See [this discussion](http://chutzpah.codeplex.com/discussions/462587)
Comments: We have a similar issue, but with running Chutzpah tests on our build server. The workaround we use is to merge all the test TS files into one, and then run tests on just this one file. The custom MSBuild task we use for merge is below ``` <ItemGroup> <TestFiles Include="js\_references.ts;js\**\*.test.ts;js\**\*.spec.ts"/> </ItemGroup> <Target Name="MergeTypeScriptTestFiles"> <ReadLinesFromFile File="%(TestFiles.Identity)"> <Output TaskParameter="Lines" ItemName="lines"/> </ReadLinesFromFile> <WriteLinesToFile File="js\TypeScriptTests.ts" Lines="@(Lines)" Overwrite="false" /> </Target> ```