Skip to content

Commit

Permalink
Fixed the tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
pavel.butuzov committed Oct 8, 2024
1 parent 31b8346 commit 55265c3
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
1 change: 0 additions & 1 deletion TmsRunner/Services/FilterService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,6 @@ private string GetExternalId(MethodInfo testMethod, TestCase testCase)
public List<TestCase> FilterTestCasesByLabels(AdapterConfig config, IReadOnlyCollection<TestCase> testCases)
{
var labelsToRun = config.TmsLabelsOfTestsToRun?.Split(',').Select(x => x.Trim()).ToList();
var testCasesName = testCases.Select(t => t.FullyQualifiedName);
var testCasesToRun = new List<TestCase>();
var assembly = Assembly.LoadFrom(config.TestAssemblyPath ?? string.Empty);
var allTestMethods = new List<MethodInfo>(assembly.GetExportedTypes().SelectMany(type => type.GetMethods()));
Expand Down
3 changes: 1 addition & 2 deletions TmsRunnerTests/Services/FilterServiceTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,11 @@ public void FilterTestCasesByLabels()
{
// Arrange
var filterService = new FilterService(_logger, _replacer);
var assemblyPath = typeof(FilterServiceTests).Assembly.Location;
var config = new AdapterConfig
{
TestAssemblyPath = typeof(FilterServiceTests).Assembly.Location
};
var testcases = new[] { new TestCase() };
var testcases = new[] { new TestCase { FullyQualifiedName = "test" } };

// Act
var actual = filterService.FilterTestCasesByLabels(config, testcases);
Expand Down

0 comments on commit 55265c3

Please sign in to comment.