Add Test name to the paths
MODIFY
WalletWasabi.Tests/IntegrationTests/P2pTests.cs
WalletWasabi.Tests/IntegrationTests/P2pTests.cs
@@ -7,6 +7,7 @@ using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Net;
+using System.Runtime.CompilerServices;
using System.Threading;
using System.Threading.Tasks;
using WalletWasabi.Backend.Models;
@@ -51,13 +52,14 @@ namespace WalletWasabi.Tests.IntegrationTests
{
throw new NotSupportedNetworkException(network);
}
+ var dataDir = Path.Combine(Global.Instance.DataDir, EnvironmentHelpers.GetCallerFileName());
BitcoinStore bitcoinStore = new BitcoinStore();
- await bitcoinStore.InitializeAsync(Path.Combine(Global.Instance.DataDir, EnvironmentHelpers.GetMethodName()), network);
+ await bitcoinStore.InitializeAsync(Path.Combine(dataDir, EnvironmentHelpers.GetMethodName()), network);
- var addressManagerFolderPath = Path.Combine(Global.Instance.DataDir, "AddressManager");
+ var addressManagerFolderPath = Path.Combine(dataDir, "AddressManager");
var addressManagerFilePath = Path.Combine(addressManagerFolderPath, $"AddressManager{network}.dat");
- var blocksFolderPath = Path.Combine(Global.Instance.DataDir, "Blocks", network.ToString());
+ var blocksFolderPath = Path.Combine(dataDir, "Blocks", network.ToString());
var connectionParameters = new NodeConnectionParameters();
AddressManager addressManager = null;
try
@@ -97,7 +99,7 @@ namespace WalletWasabi.Tests.IntegrationTests
syncer,
new CoinJoinClient(syncer, network, keyManager, new Uri("http://localhost:12345"), Global.Instance.TorSocks5Endpoint),
nodes,
- Global.Instance.DataDir,
+ dataDir,
new ServiceConfiguration(50, 2, 21, 50, new IPEndPoint(IPAddress.Loopback, network.DefaultPort), Money.Coins(Constants.DefaultDustThreshold)),
syncer);
Assert.True(Directory.Exists(blocksFolderPath));

MODIFY
WalletWasabi.Tests/IntegrationTests/RegTests.cs
WalletWasabi.Tests/IntegrationTests/RegTests.cs
@@ -59,6 +59,11 @@ namespace WalletWasabi.Tests.IntegrationTests
RegTestFixture = regTestFixture;
}
+ public static string GetWorkDir([CallerFilePath]string callerFilePath = null, [CallerMemberName]string callerMemberName = null)
+ {
+ return Path.Combine(Global.Instance.DataDir, EnvironmentHelpers.ExtractFileName(callerFilePath), callerMemberName);
+ }
+
private async Task AssertFiltersInitializedAsync(Backend.Global global)
{
var firstHash = await global.RpcClient.GetBlockHashAsync(0);
@@ -80,7 +85,7 @@ namespace WalletWasabi.Tests.IntegrationTests
}
}
- private async Task<(string password, RPCClient rpc, Network network, Coordinator coordinator, ServiceConfiguration serviceConfiguration, BitcoinStore bitcoinStore, Backend.Global global)> InitializeTestEnvironmentAsync(int numberOfBlocksToGenerate, [CallerMemberName] string caller = null)
+ private async Task<(string password, RPCClient rpc, Network network, Coordinator coordinator, ServiceConfiguration serviceConfiguration, BitcoinStore bitcoinStore, Backend.Global global)> InitializeTestEnvironmentAsync(int numberOfBlocksToGenerate, [CallerFilePath]string callerFilePath = null, [CallerMemberName] string callerMemberName = null)
{
var global = RegTestFixture.Global;
await AssertFiltersInitializedAsync(global); // Make sure fitlers are created on the server side.
@@ -93,7 +98,7 @@ namespace WalletWasabi.Tests.IntegrationTests
var network = global.RpcClient.Network;
var serviceConfiguration = new ServiceConfiguration(2, 2, 21, 50, RegTestFixture.BackendRegTestNode.P2pEndPoint, Money.Coins(Constants.DefaultDustThreshold));
var bitcoinStore = new BitcoinStore();
- var dir = Path.Combine(Global.Instance.DataDir, caller);
+ var dir = GetWorkDir();
await bitcoinStore.InitializeAsync(dir, network);
return ("password", global.RpcClient, network, global.Coordinator, serviceConfiguration, bitcoinStore, global);
}
@@ -167,7 +172,7 @@ namespace WalletWasabi.Tests.IntegrationTests
{
(string password, RPCClient rpc, Network network, Coordinator coordinator, ServiceConfiguration serviceConfiguration, BitcoinStore bitcoinStore, Backend.Global global) = await InitializeTestEnvironmentAsync(1);
- var indexBuilderServiceDir = Path.Combine(Global.Instance.DataDir, EnvironmentHelpers.GetMethodName());
+ var indexBuilderServiceDir = GetWorkDir();
var indexFilePath = Path.Combine(indexBuilderServiceDir, $"Index{rpc.Network}.dat");
var utxoSetFilePath = Path.Combine(indexBuilderServiceDir, $"UtxoSet{rpc.Network}.dat");
@@ -468,7 +473,7 @@ namespace WalletWasabi.Tests.IntegrationTests
var chaumianClient = new CoinJoinClient(synchronizer, rpc.Network, keyManager, new Uri(RegTestFixture.BackendEndPoint), null);
// 5. Create wallet service.
- var workDir = Path.Combine(Global.Instance.DataDir, EnvironmentHelpers.GetMethodName());
+ var workDir = GetWorkDir();
var wallet = new WalletService(bitcoinStore, keyManager, synchronizer, chaumianClient, nodes, workDir, serviceConfiguration, synchronizer);
wallet.NewFilterProcessed += Wallet_NewFilterProcessed;
@@ -688,7 +693,7 @@ namespace WalletWasabi.Tests.IntegrationTests
var chaumianClient = new CoinJoinClient(synchronizer, rpc.Network, keyManager, new Uri(RegTestFixture.BackendEndPoint), null);
// 6. Create wallet service.
- var workDir = Path.Combine(Global.Instance.DataDir, EnvironmentHelpers.GetMethodName());
+ var workDir = GetWorkDir();
var wallet = new WalletService(bitcoinStore, keyManager, synchronizer, chaumianClient, nodes, workDir, serviceConfiguration, synchronizer);
wallet.NewFilterProcessed += Wallet_NewFilterProcessed;
@@ -1171,7 +1176,7 @@ namespace WalletWasabi.Tests.IntegrationTests
var chaumianClient = new CoinJoinClient(synchronizer, rpc.Network, keyManager, new Uri(RegTestFixture.BackendEndPoint), null);
// 6. Create wallet service.
- var workDir = Path.Combine(Global.Instance.DataDir, EnvironmentHelpers.GetMethodName());
+ var workDir = GetWorkDir();
var wallet = new WalletService(bitcoinStore, keyManager, synchronizer, chaumianClient, nodes, workDir, serviceConfiguration, synchronizer);
wallet.NewFilterProcessed += Wallet_NewFilterProcessed;
@@ -1337,7 +1342,7 @@ namespace WalletWasabi.Tests.IntegrationTests
var chaumianClient = new CoinJoinClient(synchronizer, rpc.Network, keyManager, new Uri(RegTestFixture.BackendEndPoint), null);
// 6. Create wallet service.
- var workDir = Path.Combine(Global.Instance.DataDir, EnvironmentHelpers.GetMethodName());
+ var workDir = GetWorkDir();
var wallet = new WalletService(bitcoinStore, keyManager, synchronizer, chaumianClient, nodes, workDir, serviceConfiguration, synchronizer);
wallet.NewFilterProcessed += Wallet_NewFilterProcessed;
@@ -1568,7 +1573,7 @@ namespace WalletWasabi.Tests.IntegrationTests
var chaumianClient = new CoinJoinClient(synchronizer, rpc.Network, keyManager, new Uri(RegTestFixture.BackendEndPoint), null);
// 6. Create wallet service.
- var workDir = Path.Combine(Global.Instance.DataDir, EnvironmentHelpers.GetMethodName());
+ var workDir = GetWorkDir();
var wallet = new WalletService(bitcoinStore, keyManager, synchronizer, chaumianClient, nodes, workDir, serviceConfiguration, synchronizer);
wallet.NewFilterProcessed += Wallet_NewFilterProcessed;
@@ -1755,7 +1760,7 @@ namespace WalletWasabi.Tests.IntegrationTests
var chaumianClient = new CoinJoinClient(synchronizer, rpc.Network, keyManager, new Uri(RegTestFixture.BackendEndPoint), null);
// 6. Create wallet service.
- var workDir = Path.Combine(Global.Instance.DataDir, EnvironmentHelpers.GetMethodName());
+ var workDir = GetWorkDir();
var wallet = new WalletService(bitcoinStore, keyManager, synchronizer, chaumianClient, nodes, workDir, serviceConfiguration, synchronizer);
wallet.NewFilterProcessed += Wallet_NewFilterProcessed;
@@ -1849,7 +1854,7 @@ namespace WalletWasabi.Tests.IntegrationTests
var offchainTxId = network.Consensus.ConsensusFactory.CreateTransaction().GetHash();
var mempoolTxId = rpc.SendToAddress(new Key().PubKey.GetSegwitAddress(network), Money.Coins(1));
- var folder = Path.Combine(Global.Instance.DataDir, EnvironmentHelpers.GetMethodName());
+ var folder = GetWorkDir();
await IoHelpers.DeleteRecursivelyWithMagicDustAsync(folder);
Directory.CreateDirectory(folder);
var cjfile = Path.Combine(folder, $"CoinJoins{network}.txt");
@@ -3361,7 +3366,7 @@ namespace WalletWasabi.Tests.IntegrationTests
// 3. Create wasabi synchronizer service.
var synchronizer = new WasabiSynchronizer(network, bitcoinStore, new Uri(RegTestFixture.BackendEndPoint), null);
- var indexFilePath2 = Path.Combine(Global.Instance.DataDir, EnvironmentHelpers.GetMethodName(), $"Index{network}2.dat");
+ var indexFilePath2 = Path.Combine(GetWorkDir(), $"Index{network}2.dat");
var synchronizer2 = new WasabiSynchronizer(network, bitcoinStore, new Uri(RegTestFixture.BackendEndPoint), null);
// 4. Create key manager service.
@@ -3375,11 +3380,11 @@ namespace WalletWasabi.Tests.IntegrationTests
var chaumianClient2 = new CoinJoinClient(synchronizer, network, keyManager2, new Uri(RegTestFixture.BackendEndPoint), null);
// 6. Create wallet service.
- var workDir = Path.Combine(Global.Instance.DataDir, EnvironmentHelpers.GetMethodName());
+ var workDir = GetWorkDir();
var wallet = new WalletService(bitcoinStore, keyManager, synchronizer, chaumianClient, nodes, workDir, serviceConfiguration, synchronizer);
wallet.NewFilterProcessed += Wallet_NewFilterProcessed;
- var workDir2 = Path.Combine(Global.Instance.DataDir, $"{EnvironmentHelpers.GetMethodName()}2");
+ var workDir2 = Path.Combine(GetWorkDir(), "2");
var wallet2 = new WalletService(bitcoinStore, keyManager2, synchronizer2, chaumianClient2, nodes2, workDir2, serviceConfiguration, synchronizer2);
// Get some money, make it confirm.

MODIFY
WalletWasabi.Tests/UnitTests/BitcoinCore/NodeBuildingTests.cs
WalletWasabi.Tests/UnitTests/BitcoinCore/NodeBuildingTests.cs
using NBitcoin;
using System;
-using System.Collections.Generic;
-using System.Text;
using System.Threading;
using System.Threading.Tasks;
using WalletWasabi.BitcoinCore;

MODIFY
WalletWasabi.Tests/UnitTests/Filters/IndexStoreTests.cs
WalletWasabi.Tests/UnitTests/Filters/IndexStoreTests.cs
@@ -23,7 +23,7 @@ namespace WalletWasabi.Tests.UnitTests.Filters
{
var indexStore = new IndexStore();
- var dir = Path.Combine(Global.Instance.DataDir, EnvironmentHelpers.GetMethodName());
+ var dir = (await GetIndexStorePathsAsync()).dir;
if (Directory.Exists(dir))
{
Directory.Delete(dir, true);
@@ -168,9 +168,9 @@ namespace WalletWasabi.Tests.UnitTests.Filters
Assert.Equal(3u, headersChain.TipHeight);
}
- private async Task<(string, string, string)> GetIndexStorePathsAsync([CallerMemberName] string callerName = "")
+ private async Task<(string dir, string matureFilters, string immatureFilters)> GetIndexStorePathsAsync([CallerFilePath]string callerFilePath = null, [CallerMemberName] string callerName = "")
{
- var dir = Path.Combine(Global.Instance.DataDir, callerName, "IndexStore");
+ var dir = Path.Combine(Global.Instance.DataDir, EnvironmentHelpers.ExtractFileName(callerFilePath), callerName, "IndexStore");
await IoHelpers.DeleteRecursivelyWithMagicDustAsync(dir);
var matureFilters = Path.Combine(dir, "MatureIndex.dat");
var immatureFilters = Path.Combine(dir, "ImmatureIndex.dat");

MODIFY
WalletWasabi.Tests/UnitTests/LoggerTests.cs
WalletWasabi.Tests/UnitTests/LoggerTests.cs
@@ -20,6 +20,7 @@ namespace WalletWasabi.Tests.UnitTests
[InlineData("C:\\User\\user\\Github\\WalletWasabi\\WalletWasabi.Gui\\Program.cs")]
[InlineData("/mnt/C/User/user/Github/WalletWasabi/WalletWasabi.Gui/Program.cs")]
[InlineData("~/Github/WalletWasabi/WalletWasabi.Gui/Program.cs")]
+ [InlineData("Program")]
public void EndPointParserTests(string path)
{
var sourceFileName = EnvironmentHelpers.ExtractFileName(path);

MODIFY
WalletWasabi.Tests/UnitTests/Transactions/AllTransactionStoreTests.cs
WalletWasabi.Tests/UnitTests/Transactions/AllTransactionStoreTests.cs
@@ -8,6 +8,7 @@ using System.Text;
using System.Threading.Tasks;
using WalletWasabi.Blockchain.Analysis.Clustering;
using WalletWasabi.Blockchain.Transactions;
+using WalletWasabi.Helpers;
using WalletWasabi.Models;
using Xunit;
@@ -20,7 +21,8 @@ namespace WalletWasabi.Tests.UnitTests.Transactions
public async Task CanInitializeEmptyAsync(Network network)
{
var txStore = new AllTransactionStore();
- await txStore.InitializeAsync(PrepareWorkDir(), network, ensureBackwardsCompatibility: false);
+ var dir = PrepareWorkDir();
+ await txStore.InitializeAsync(dir, network, ensureBackwardsCompatibility: false);
Assert.NotNull(txStore.ConfirmedStore);
Assert.NotNull(txStore.MempoolStore);
@@ -36,7 +38,6 @@ namespace WalletWasabi.Tests.UnitTests.Transactions
Assert.True(txStore.IsEmpty());
Assert.False(txStore.TryGetTransaction(txHash, out _));
- var dir = GetWorkDir();
var mempoolFile = Path.Combine(dir, "Mempool", "Transactions.dat");
var txFile = Path.Combine(dir, "ConfirmedTransactions", WalletWasabi.Helpers.Constants.ConfirmedTransactionsVersion, "Transactions.dat");
var mempoolContent = await File.ReadAllBytesAsync(mempoolFile);
@@ -437,9 +438,9 @@ namespace WalletWasabi.Tests.UnitTests.Transactions
#region Helpers
- private void PrepareTestEnv(out string dir, out Network network, out string mempoolFile, out string txFile, out SmartTransaction uTx1, out SmartTransaction uTx2, out SmartTransaction uTx3, out SmartTransaction cTx1, out SmartTransaction cTx2, out SmartTransaction cTx3, [CallerMemberName] string caller = null)
+ private void PrepareTestEnv(out string dir, out Network network, out string mempoolFile, out string txFile, out SmartTransaction uTx1, out SmartTransaction uTx2, out SmartTransaction uTx3, out SmartTransaction cTx1, out SmartTransaction cTx2, out SmartTransaction cTx3, [CallerFilePath]string callerFilePath = null, [CallerMemberName] string callerMemberName = null)
{
- dir = PrepareWorkDir(caller);
+ dir = PrepareWorkDir(EnvironmentHelpers.ExtractFileName(callerFilePath), callerMemberName);
network = Network.TestNet;
mempoolFile = Path.Combine(dir, "Mempool", "Transactions.dat");
txFile = Path.Combine(dir, "ConfirmedTransactions", WalletWasabi.Helpers.Constants.ConfirmedTransactionsVersion, "Transactions.dat");
@@ -454,9 +455,9 @@ namespace WalletWasabi.Tests.UnitTests.Transactions
cTx3 = SmartTransaction.FromLine("ebcef423f6b03ef89dce076b53e624c966381f76e5d8b2b5034d3615ae950b2f:01000000000101296d58df626f1e250c661bd45497d159647526eb8166aec86852eb37104c37950100000000ffffffff01facb100300000000160014d5461e0e7077d62c4cf9c18a4e9ba10efd4930340247304402206d2c5b2b182474531ed07587e44ea22b136a37d5ddbd35aa2d984da7be5f7e5202202abd8435d9856e3d0892dbd54e9c05f2a20d9d5f333247314b925947a480a2eb01210321dd0574c773a35d4a7ebf17bf8f974b5665c0183598f1db53153e74c876768500000000:1580673:0000000017b09a77b815f3df513ff698d1f3b0e8c5e16ac0d6558e2d831f3bf9:130::1570462988:False", network);
}
- private string PrepareWorkDir([CallerMemberName] string caller = null)
+ private string PrepareWorkDir([CallerFilePath]string callerFilePath = null, [CallerMemberName] string callerMemberName = null)
{
- string dir = GetWorkDir(caller);
+ string dir = Path.Combine(Global.Instance.DataDir, EnvironmentHelpers.ExtractFileName(callerFilePath), callerMemberName);
if (Directory.Exists(dir))
{
Directory.Delete(dir, true);
@@ -465,12 +466,6 @@ namespace WalletWasabi.Tests.UnitTests.Transactions
return dir;
}
- private static string GetWorkDir([CallerMemberName] string caller = null)
- {
- // Make sure starts with clear state.
- return Path.Combine(Global.Instance.DataDir, nameof(AllTransactionStoreTests), caller);
- }
-
public static IEnumerable<object[]> GetDifferentNetworkValues()
{
var networks = new List<Network>

MODIFY
WalletWasabi.Tests/UnitTests/Transactions/TransactionProcessorTests.cs
WalletWasabi.Tests/UnitTests/Transactions/TransactionProcessorTests.cs
@@ -8,6 +8,7 @@ using System.Threading.Tasks;
using WalletWasabi.Blockchain.Keys;
using WalletWasabi.Blockchain.TransactionOutputs;
using WalletWasabi.Blockchain.Transactions;
+using WalletWasabi.Helpers;
using WalletWasabi.Models;
using Xunit;
@@ -886,13 +887,13 @@ namespace WalletWasabi.Tests.UnitTests.Transactions
Assert.NotEmpty(changeCoin.Clusters.Labels);
}
- private async Task<TransactionProcessor> CreateTransactionProcessorAsync([CallerMemberName] string callerName = "")
+ private async Task<TransactionProcessor> CreateTransactionProcessorAsync([CallerFilePath]string callerFilePath = null, [CallerMemberName] string callerName = "")
{
var keyManager = KeyManager.CreateNew(out _, "password");
keyManager.AssertCleanKeysIndexed();
var txStore = new AllTransactionStore();
- var dir = Path.Combine(Global.Instance.DataDir, callerName, "TransactionStore");
+ var dir = Path.Combine(Global.Instance.DataDir, EnvironmentHelpers.ExtractFileName(callerFilePath), callerName, "TransactionStore");
await IoHelpers.DeleteRecursivelyWithMagicDustAsync(dir);
await txStore.InitializeAsync(dir, Network.RegTest);

MODIFY
WalletWasabi.Tests/UnitTests/Transactions/TransactionStoreMock.cs
WalletWasabi.Tests/UnitTests/Transactions/TransactionStoreMock.cs
@@ -6,25 +6,26 @@ using System.Runtime.CompilerServices;
using System.Text;
using System.Threading.Tasks;
using WalletWasabi.Blockchain.Transactions;
+using WalletWasabi.Helpers;
using WalletWasabi.Stores;
namespace WalletWasabi.Tests.UnitTests.Transactions
{
public class TransactionStoreMock : TransactionStore
{
- public TransactionStoreMock([CallerMemberName] string caller = null)
+ public TransactionStoreMock([CallerFilePath]string callerFilePath = null, [CallerMemberName] string callerMemberName = null)
{
// Make sure starts with clear state.
- var filePath = Path.Combine(Global.Instance.DataDir, caller, "Transactions.dat");
+ var filePath = Path.Combine(Global.Instance.DataDir, EnvironmentHelpers.ExtractFileName(callerFilePath), callerMemberName, "Transactions.dat");
if (File.Exists(filePath))
{
File.Delete(filePath);
}
}
- public async Task InitializeAsync(Network network, [CallerMemberName] string caller = null)
+ public async Task InitializeAsync(Network network, [CallerFilePath]string callerFilePath = null, [CallerMemberName] string callerMemberName = null)
{
- var dir = Path.Combine(Global.Instance.DataDir, caller);
+ var dir = Path.Combine(Global.Instance.DataDir, EnvironmentHelpers.ExtractFileName(callerFilePath), callerMemberName);
await InitializeAsync(dir, network, $"{nameof(TransactionStoreMock)}.{nameof(TransactionStoreMock.InitializeAsync)}");
}
}

MODIFY
WalletWasabi.Tests/XunitConfiguration/RegTestFixture.cs
WalletWasabi.Tests/XunitConfiguration/RegTestFixture.cs
@@ -8,6 +8,7 @@ using System;
using System.Collections.Generic;
using System.IO;
using System.Net;
+using System.Runtime.CompilerServices;
using System.Threading;
using System.Threading.Tasks;
using WalletWasabi.Backend;
@@ -29,12 +30,12 @@ namespace WalletWasabi.Tests.XunitConfiguration
public RegTestFixture()
{
- RuntimeParams.SetDataDir(Path.Combine(Tests.Global.Instance.DataDir, nameof(RegTestFixture)));
+ RuntimeParams.SetDataDir(Path.Combine(Tests.Global.Instance.DataDir, "RegTests", "Backend"));
RuntimeParams.LoadAsync().GetAwaiter().GetResult();
var hostedServices = new HostedServices();
- BackendRegTestNode = TestNodeBuilder.CreateAsync(hostedServices, callerMemberName: "RegTests").GetAwaiter().GetResult();
+ BackendRegTestNode = TestNodeBuilder.CreateAsync(hostedServices, callerFilePath: "RegTests", callerMemberName: "BitcoinCoreData").GetAwaiter().GetResult();
- var testnetBackendDir = EnvironmentHelpers.GetDataDir(Path.Combine("WalletWasabi", "Tests", "Backend"));
+ var testnetBackendDir = EnvironmentHelpers.GetDataDir(Path.Combine("WalletWasabi", "Tests", "RegTests", "Backend"));
IoHelpers.DeleteRecursivelyWithMagicDustAsync(testnetBackendDir).GetAwaiter().GetResult();
Thread.Sleep(100);
Directory.CreateDirectory(testnetBackendDir);

MODIFY
WalletWasabi/Helpers/EnvironmentHelpers.cs
WalletWasabi/Helpers/EnvironmentHelpers.cs
@@ -147,8 +147,15 @@ namespace WalletWasabi.Helpers
lastSeparatorIndex = callerFilePath.LastIndexOf("/");
}
+ var fileName = callerFilePath;
+
+ if (lastSeparatorIndex != -1)
+ {
lastSeparatorIndex++;
- var fileNameWithoutExtension = callerFilePath.Substring(lastSeparatorIndex, callerFilePath.Length - lastSeparatorIndex - ".cs".Length);
+ fileName = callerFilePath[lastSeparatorIndex..]; // From lastSeparatorIndex until the end of the string.
+ }
+
+ var fileNameWithoutExtension = fileName.TrimEnd(".cs", StringComparison.InvariantCultureIgnoreCase);
return fileNameWithoutExtension;
}
@@ -215,6 +222,16 @@ namespace WalletWasabi.Helpers
return callerName;
}
+ public static string GetCallerFilePath([CallerFilePath] string callerFilePath = "")
+ {
+ return callerFilePath;
+ }
+
+ public static string GetCallerFileName([CallerFilePath] string callerFilePath = "")
+ {
+ return ExtractFileName(callerFilePath);
+ }
+
public static string GetFullBaseDirectory()
{
var fullBaseDirectory = Path.GetFullPath(AppContext.BaseDirectory);

Add Test name to the paths