Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<title>Reqnroll.TUnit</title>
<authors>$author$</authors>
<owners>$owner$</owners>
<description>Package to use Reqnroll with TUnit 0.55.23 and later. $summary$</description>
<description>Package to use Reqnroll with TUnit 0.67.10 and later. $summary$</description>
<language>en-US</language>
<projectUrl>https://www.reqnroll.net</projectUrl>
<repository type="git" url="https://github.com/reqnroll/Reqnroll.git" branch="$branch$" commit="$commit$" />
Expand All @@ -19,7 +19,7 @@
<group targetFramework=".NETStandard2.0">
<dependency id="Reqnroll" version="[$version$]" />
<dependency id="Reqnroll.Tools.MsBuild.Generation" version="[$version$]" />
<dependency id="TUnit.Core" version="0.55.23" />
<dependency id="TUnit.Core" version="0.67.10" />
</group>
</dependencies>
</metadata>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ public void SetTestCleanupMethod(TestClassGenerationContext generationContext)
public void SetTestMethod(TestClassGenerationContext generationContext, CodeMemberMethod testMethod, string friendlyTestName)
{
// Mark the method as a test and add a friendly name.
CodeDomHelper.AddAttribute(testMethod, TEST_ATTR);
CodeDomHelper.AddAttribute(testMethod, TEST_ATTR, generationContext.Document.SourceFilePath, generationContext.CustomData["linenumber"]);
CodeDomHelper.AddAttribute(testMethod, DISPLAYNAME_ATTR, friendlyTestName);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="TUnit.Core" Version="0.55.23" />
<PackageReference Include="TUnit.Core" Version="0.67.10" />
</ItemGroup>

<ItemGroup>
Expand Down
3 changes: 2 additions & 1 deletion Reqnroll.Generator/Generation/UnitTestMethodGenerator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -581,13 +581,14 @@ private void SetupTestMethod(
{
friendlyTestName = $"{scenarioDefinition.Name}: {variantName}";
}

if (rowTest)
{
generationContext.CustomData["linenumber"] = scenarioDefinition.Location.Line;
_unitTestGeneratorProvider.SetRowTest(generationContext, testMethod, friendlyTestName);
}
else
{
generationContext.CustomData["linenumber"] = scenarioDefinition.Location.Line;
_unitTestGeneratorProvider.SetTestMethod(generationContext, testMethod, friendlyTestName);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public class ProjectBuilder
public const string NUnit4TestAdapterPackageName = "NUnit3TestAdapter";
public const string NUnit4TestAdapterPackageVersion = "4.6.0";
public const string TUnitPackageName = "TUnit";
public const string TUnitPackageVersion = "0.55.23";
public const string TUnitPackageVersion = "0.67.10";
private const string XUnitPackageVersion = "2.8.1";
private const string MSTestPackageVersion = "2.2.10";
private const string XUnit3PackageVersion = "2.0.0";
Expand Down Expand Up @@ -378,7 +378,7 @@ private void ConfigureTUnit()
TUnitPackageName,
TUnitPackageVersion,
new NuGetPackageAssembly(
"TUnit, Version=0.55.23, Culture=neutral, PublicKeyToken=b8d4030011dbd70c",
"TUnit, Version=0.67.10, Culture=neutral, PublicKeyToken=b8d4030011dbd70c",
"netstandard2.0\\TUnit.dll")
);
_project.AddNuGetPackage(
Expand Down
Loading