Skip to content

Commit a469e74

Browse files
committed
initial READMEs
1 parent 9dd62ea commit a469e74

File tree

2 files changed

+25
-0
lines changed

2 files changed

+25
-0
lines changed

README.md

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# Hibernate Test Case Templates
2+
3+
When creating a bug report for any project within the Hibernate family, it's extremely helpful (and, frankly, required)
4+
to have an adequate test case available. This is obviously important to make reproducing the issue as easy as
5+
possible. But it's also vital longer-term. Nearly every bug fix should include a regression test, which frequently is based
6+
on the original reproducer (sometimes, it's the reproducer, verbatim).
7+
8+
To help create useful test cases, we're opening up this repo with various templates. Please see the READMEs in each
9+
project's subdir for more info.
10+
11+
As always, this is open source for a reason! If these templates can be improved in any way, please let us know (either
12+
through our JIRA instance or through GitHub Issues). Better yet, send us a pull request!

orm/README.md

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# Hibernate Test Case Templates: ORM
2+
3+
This repo contains test case templates, useful for reporting bugs against Hibernate ORM.
4+
5+
Here's a running list of what's available:
6+
7+
* ORMUnitTestCase: By far, this one's the most helpful. ORM includes a built-in unit test framework that does much
8+
of the heavy lifting for you. All that's required is your entities, logic, and any necessary settings. Since we nearly
9+
always include a regression test with bug fixes, providing your reproducer using this method simplifies the process. We
10+
can then directly commit it, without having to mold it in first. What's even better? Fork hibernate-orm itself,
11+
add your test case directly to a module's unit tests (using the template class), then submit it as a PR!
12+
* ORMStandaloneTestCase: This template is standalone and will look familiar. It simply uses a run-of-the-mill ORM setup.
13+
Although it's perfectly acceptable as a reproducer, lean towards ORMUnitTestCase whenever possible.

0 commit comments

Comments
 (0)