Skip to content

Commit 8c820c8

Browse files
fredericDelaportehazzik
authored andcommitted
Jira to GitHub: change issue naming in tests (#1382)
1 parent 903494f commit 8c820c8

File tree

13 files changed

+34
-22
lines changed

13 files changed

+34
-22
lines changed

CONTRIBUTING.md

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,17 +45,21 @@ In most cases, you will be adding your test to the NHibernate.Test project. If t
4545

4646
1. Open **NHibernate.sln** from the src folder.
4747
2. If adding a C# test, go to the NHSpecificTest folder in the NHibernate.Test project. If adding a VisualBasic test, go to the Issues folder in the NHibernate.Test.VisualBasic project.
48-
3. Copy and paste the NH0000 folder to create a duplicate test ("Copy of NH0000").
49-
4. Replace the four (five for vb) instances of NH0000 with your issue number.
48+
3. Copy and paste the GH0000 folder to create a duplicate test ("Copy of GH0000").
49+
4. Replace the four instances of GH0000 with your issue number.
5050
5. Edit the test as you see fit. Don't commit yet; there are details in a later step.
5151

52+
Do not use anymore the NHxxxx naming, they match issue numbers from https://nhibernate.jira.com/
53+
54+
NHibernate has migrated its issue tracking from Jira to GitHub, and using the Jira naming may lead to conflicts with previous Jira issues.
55+
5256
## Running Your Unit Test
5357

5458
### Debugging Through Included NUnit GUI
5559

5660
1. Right click on the project (ex. NHibernate.Test) in Visual Studio.
5761
2. Select: Debug -> Start New Instance
58-
3. Type the name of your unit test to quickly go to it. For example: NH2318
62+
3. Type the name of your unit test to quickly go to it. For example: GH2318
5963
4. Select and run the test.
6064
5. You can also make the test project your startup project and it will run NUnit when you press F5.
6165

src/NHibernate.Test.VisualBasic/Issues/NH0000/Entity.vb renamed to src/NHibernate.Test.VisualBasic/Issues/GH0000/Entity.vb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Namespace Issues
22

3-
Namespace NH0000
3+
Namespace GH0000
44

55
Public Class Entity
66

@@ -28,4 +28,4 @@
2828

2929
End Namespace
3030

31-
End Namespace
31+
End Namespace

src/NHibernate.Test.VisualBasic/Issues/NH0000/Fixture.vb renamed to src/NHibernate.Test.VisualBasic/Issues/GH0000/Fixture.vb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Imports NHibernate.Linq
44

55
Namespace Issues
66

7-
Namespace NH0000
7+
Namespace GH0000
88

99
<TestFixture()> _
1010
Public Class Fixture
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
<?xml version="1.0" encoding="utf-8" ?>
2-
<hibernate-mapping xmlns="urn:nhibernate-mapping-2.2" assembly="NHibernate.Test.VisualBasic" namespace="NHibernate.Test.VisualBasic.Issues.NH0000">
1+
<?xml version="1.0" encoding="utf-8" ?>
2+
<hibernate-mapping xmlns="urn:nhibernate-mapping-2.2" assembly="NHibernate.Test.VisualBasic" namespace="NHibernate.Test.VisualBasic.Issues.GH0000">
33

44
<class name="Entity">
55
<id name="Id">
@@ -8,4 +8,4 @@
88
<property name="Name" />
99
</class>
1010

11-
</hibernate-mapping>
11+
</hibernate-mapping>

src/NHibernate.Test/Async/NHSpecificTest/NH0000/Fixture.cs renamed to src/NHibernate.Test/Async/NHSpecificTest/GH0000/Fixture.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
using NHibernate.Linq;
1313
using NUnit.Framework;
1414

15-
namespace NHibernate.Test.NHSpecificTest.NH0000
15+
namespace NHibernate.Test.NHSpecificTest.GH0000
1616
{
1717
using System.Threading.Tasks;
1818
[TestFixture]
@@ -60,4 +60,4 @@ public async Task YourTestNameAsync()
6060
}
6161
}
6262
}
63-
}
63+
}

src/NHibernate.Test/Async/NHSpecificTest/NH2218/Fixture.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010

1111
using System.Linq;
1212
using NHibernate.Linq;
13-
using NHibernate.Test.NHSpecificTest.NH0000;
1413
using NUnit.Framework;
1514

1615
namespace NHibernate.Test.NHSpecificTest.NH2218
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
using System;
22

3-
namespace NHibernate.Test.NHSpecificTest.NH0000
3+
namespace NHibernate.Test.NHSpecificTest.GH0000
44
{
55
class Entity
66
{
77
public virtual Guid Id { get; set; }
88
public virtual string Name { get; set; }
99
}
10-
}
10+
}

src/NHibernate.Test/NHSpecificTest/NH0000/Fixture.cs renamed to src/NHibernate.Test/NHSpecificTest/GH0000/Fixture.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
using NHibernate.Linq;
33
using NUnit.Framework;
44

5-
namespace NHibernate.Test.NHSpecificTest.NH0000
5+
namespace NHibernate.Test.NHSpecificTest.GH0000
66
{
77
[TestFixture]
88
public class Fixture : BugTestCase
@@ -49,4 +49,4 @@ public void YourTestName()
4949
}
5050
}
5151
}
52-
}
52+
}

src/NHibernate.Test/NHSpecificTest/NH0000/FixtureByCode.cs renamed to src/NHibernate.Test/NHSpecificTest/GH0000/FixtureByCode.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
using NHibernate.Mapping.ByCode;
55
using NUnit.Framework;
66

7-
namespace NHibernate.Test.NHSpecificTest.NH0000
7+
namespace NHibernate.Test.NHSpecificTest.GH0000
88
{
99
/// <summary>
1010
/// Fixture using 'by code' mappings
@@ -70,4 +70,4 @@ public void YourTestName()
7070
}
7171
}
7272
}
73-
}
73+
}
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
<?xml version="1.0" encoding="utf-8" ?>
2-
<hibernate-mapping xmlns="urn:nhibernate-mapping-2.2" assembly="NHibernate.Test" namespace="NHibernate.Test.NHSpecificTest.NH0000">
2+
<hibernate-mapping xmlns="urn:nhibernate-mapping-2.2" assembly="NHibernate.Test" namespace="NHibernate.Test.NHSpecificTest.GH0000">
33

44
<class name="Entity">
55
<id name="Id" generator="guid.comb" />
66
<property name="Name" />
77
</class>
88

9-
</hibernate-mapping>
9+
</hibernate-mapping>
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
using System;
2+
3+
namespace NHibernate.Test.NHSpecificTest.NH2218
4+
{
5+
class Entity
6+
{
7+
public virtual Guid Id { get; set; }
8+
public virtual string Name { get; set; }
9+
}
10+
}

src/NHibernate.Test/NHSpecificTest/NH2218/Fixture.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
using System.Linq;
22
using NHibernate.Linq;
3-
using NHibernate.Test.NHSpecificTest.NH0000;
43
using NUnit.Framework;
54

65
namespace NHibernate.Test.NHSpecificTest.NH2218

src/NHibernate.Test/NHSpecificTest/NH2218/Mappings.hbm.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?xml version="1.0" encoding="utf-8" ?>
2-
<hibernate-mapping xmlns="urn:nhibernate-mapping-2.2" assembly="NHibernate.Test" namespace="NHibernate.Test.NHSpecificTest.NH0000">
2+
<hibernate-mapping xmlns="urn:nhibernate-mapping-2.2" assembly="NHibernate.Test" namespace="NHibernate.Test.NHSpecificTest.NH2218">
33

44
<class name="Entity" entity-name="Entity1">
55
<id name="Id" generator="guid.comb" />

0 commit comments

Comments
 (0)