rahulpandey87 / mb-unit

Automatically exported from code.google.com/p/mb-unit
1 stars 0 forks source link

Relative paths in gallio project files incorrectly relative to Icarus executable #339

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Create a new test project in Icarus
2. Add an assembly to the project with tests defined
3. Save the project file in a directory above the assembly
4. Run the tests

What is the expected output? What do you see instead?

Expected: Tests to execute correctly
Actual:  
An exception occurred in a background task.
Gallio.Runner.RunnerException: Failed to load the test package. --->
Gallio.Runtime.Hosting.HostException: An exception occurrred while
connection to the host service. ---> 
System.IO.DirectoryNotFoundException: Could not find a part of the path
'G:\Program Files\Gallio\bin\bin\Debug'.
...
at Gallio.Utilities.CurrentDirectorySwitcher..ctor(String directory) in
c:\RelEng\Projects\MbUnit
v3\Work\src\Gallio\Utilities\CurrentDirectorySwitcher.cs:line 41

What version of the product are you using? On what operating system?

Windows Server 2008
Gallio 3.0.4 build 485

Please provide any additional information below.

The program is attempting to resolve the relative path by using the current
executable as the root to build the relative path from.  Sometime this
happens if an app attempts to use the WorkingDirectory property.

Setting a hint path or using all absolute paths in the project file fixes
this issue, but this is not viable in a commercial development shop as
environments will vary.

Original issue reported on code.google.com by gooseman...@gmail.com on 17 Nov 2008 at 6:36

GoogleCodeExporter commented 8 years ago
Paths are saved relative to the project file, the bug was caused by not 
converting 
the paths back to absolute after saving (as is done when opening a project). 
This has 
been rectified.

Original comment by grahamr...@gmail.com on 18 Nov 2008 at 11:48

GoogleCodeExporter commented 8 years ago
r1452 - didn't make it into 3.0.5, sorry. You can get it here if you're 
desperate, 
http://ccnet.gallio.org/Distributables/GallioBundle-3.0.5.547-Setup-x86.msi.

Original comment by grahamr...@gmail.com on 18 Nov 2008 at 12:31