* changed description text of Visual Studio plugin * changed plugin install targets to include VS 2017 * add license file with MIT license * updated vsix for deployment * implement wrapper for all used classes of VCProjectEngine.dll since you cannot just use the oldest version of this assembly (see https://stackoverflow.com/questions/44288050/typecast-fails-when-visual-studio-extension-uses-reference-to-older-assembly). * improved serialization and deserialization of compile commands and compilation databases. * updated used JSON package * rename CommandObject to CompileCommand * changed implementation to keep non-existent file paths in cdb * made methods of SolutionParser non-static * replace spaces with tabs * added IntegrationTests project * configured tests to simulate a new instance of VisualStudio * added cinder as test project for integration tests * remove all absolute paths from expected output of integration tests fortune cookie message = A stranger will bring great meaning to your life.
24 lines
617 B
C#
24 lines
617 B
C#
using CoatiSoftware.SourcetrailPlugin.Utility;
|
|
using VCProjectEngineWrapper;
|
|
|
|
namespace CoatiSoftware.SourcetrailPlugin.IntegrationTests.Helpers
|
|
{
|
|
class TestPathResolver : IPathResolver
|
|
{
|
|
public override string GetCompilationDatabaseFilePath()
|
|
{
|
|
return "<CompilationDatabaseFilePath>";
|
|
}
|
|
|
|
protected override string DoGetAsAbsoluteCanonicalPath(string path, IVCProjectWrapper project)
|
|
{
|
|
return "<ProjectBaseDirectory>/" + path;
|
|
}
|
|
|
|
protected override string ResolveVsMacro(string potentialMacro, IVCConfigurationWrapper vcProjectConfig)
|
|
{
|
|
return "<Macro " + potentialMacro + ">";
|
|
}
|
|
}
|
|
}
|