Running chutzpah.console.exe /path spec\ /parallelism 8 gives IO-exceptions.
We have a folder with several test-files, some javascript, some coffeescript. Each file starts with a
<reference path="includes.coffee" />
The includes.coffee in turn contains all references needed to run our application.
When tests are run it seems each thread does its own compilation (unnecessary!) and this gives problems.
We would love to use the parallelism-flag to speed up testing but it does not work at the moment.
Chutzpah Error: System.IO.IOException: The process cannot access the file 'C:\spec\_Chutzpah.includes.js' because it is being used by another process.
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
at System.IO.StreamWriter..ctor(String path, Boolean append, Encoding encoding, Int32 bufferSize, Boolean checkHost)
at System.IO.File.InternalWriteAllText(String path, String contents, Encoding encoding, Boolean checkHost)
at Chutzpah.FileGenerators.CompileToJavascriptFileGenerator.Generate(ReferencedFile referencedFile, IList`1 temporaryFiles) in c:\Dev\chutzpah\Chutzpah\FileGenerators\CompileToJavascriptFileGenerator.cs:line 36
at Chutzpah.TestContextBuilder.ProcessForFilesGeneration(List`1 referencedFiles, List`1 temporaryFiles) in c:\Dev\chutzpah\Chutzpah\TestContextBuilder.cs:line 201
at Chutzpah.TestContextBuilder.BuildContext(PathInfo file) in c:\Dev\chutzpah\Chutzpah\TestContextBuilder.cs:line 108
at Chutzpah.TestContextBuilder.TryBuildContext(PathInfo file, TestContext& context) in c:\Dev\chutzpah\Chutzpah\TestContextBuilder.cs:line 142
at Chutzpah.TestRunner.<>c__DisplayClass2.<ProcessTestPaths>b__1(PathInfo testFile) in c:\Dev\chutzpah\Chutzpah\TestRunner.cs:line 141
While Running:C:\\spec\some_service_spec.js
Comments: Fixed in changeset 0a3d4b80d63e50da0402920aa87775674cac2d25
We have a folder with several test-files, some javascript, some coffeescript. Each file starts with a
<reference path="includes.coffee" />
The includes.coffee in turn contains all references needed to run our application.
When tests are run it seems each thread does its own compilation (unnecessary!) and this gives problems.
We would love to use the parallelism-flag to speed up testing but it does not work at the moment.
Chutzpah Error: System.IO.IOException: The process cannot access the file 'C:\spec\_Chutzpah.includes.js' because it is being used by another process.
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
at System.IO.StreamWriter..ctor(String path, Boolean append, Encoding encoding, Int32 bufferSize, Boolean checkHost)
at System.IO.File.InternalWriteAllText(String path, String contents, Encoding encoding, Boolean checkHost)
at Chutzpah.FileGenerators.CompileToJavascriptFileGenerator.Generate(ReferencedFile referencedFile, IList`1 temporaryFiles) in c:\Dev\chutzpah\Chutzpah\FileGenerators\CompileToJavascriptFileGenerator.cs:line 36
at Chutzpah.TestContextBuilder.ProcessForFilesGeneration(List`1 referencedFiles, List`1 temporaryFiles) in c:\Dev\chutzpah\Chutzpah\TestContextBuilder.cs:line 201
at Chutzpah.TestContextBuilder.BuildContext(PathInfo file) in c:\Dev\chutzpah\Chutzpah\TestContextBuilder.cs:line 108
at Chutzpah.TestContextBuilder.TryBuildContext(PathInfo file, TestContext& context) in c:\Dev\chutzpah\Chutzpah\TestContextBuilder.cs:line 142
at Chutzpah.TestRunner.<>c__DisplayClass2.<ProcessTestPaths>b__1(PathInfo testFile) in c:\Dev\chutzpah\Chutzpah\TestRunner.cs:line 141
While Running:C:\\spec\some_service_spec.js
Comments: Fixed in changeset 0a3d4b80d63e50da0402920aa87775674cac2d25