-
Notifications
You must be signed in to change notification settings - Fork 885
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sint tagging #579
Sint tagging #579
Conversation
9589b52
to
dd41486
Compare
e50908c
to
0ac2b8a
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me in general. See two remarks inline.
At first I thought that as simply tag-based system would be better. But I am sold on the current approach too. Looks very sensible.
...-test/src/main/java/org/igniterealtime/smack/inttest/annotations/SpecificationReference.java
Outdated
Show resolved
Hide resolved
smack-integration-test/src/main/java/org/jivesoftware/smackx/caps/EntityCapsTest.java
Outdated
Show resolved
Hide resolved
...ation-test/src/main/java/org/igniterealtime/smack/inttest/SmackIntegrationTestFramework.java
Outdated
Show resolved
Hide resolved
...ation-test/src/main/java/org/igniterealtime/smack/inttest/SmackIntegrationTestFramework.java
Outdated
Show resolved
Hide resolved
...ation-test/src/main/java/org/igniterealtime/smack/inttest/SmackIntegrationTestFramework.java
Outdated
Show resolved
Hide resolved
...ation-test/src/main/java/org/igniterealtime/smack/inttest/SmackIntegrationTestFramework.java
Outdated
Show resolved
Hide resolved
...ation-test/src/main/java/org/igniterealtime/smack/inttest/SmackIntegrationTestFramework.java
Outdated
Show resolved
Hide resolved
I believe I've processed all review comments. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking good, only two minors things.
...ation-test/src/main/java/org/igniterealtime/smack/inttest/SmackIntegrationTestFramework.java
Outdated
Show resolved
Hide resolved
...ation-test/src/main/java/org/igniterealtime/smack/inttest/SmackIntegrationTestFramework.java
Outdated
Show resolved
Hide resolved
...ation-test/src/main/java/org/igniterealtime/smack/inttest/SmackIntegrationTestFramework.java
Outdated
Show resolved
Hide resolved
A new annotation is introduced (`SpecificationReference`) that can be used to annotate a SINT test class The properties are available in the annotation: - `document`: Identifier for a specification document, such as 'RFC 6120' or 'XEP-0485' The pre-existing `SmackIntegrationTest` annotation has now received two new properties: - `section`: Identifier for a section (or paragraph), such as '6.2.1' - `quote`: A quotation of relevant text from the section These are expected to be used in context of the `SpecificationReference` annotation. The SINT execution framework is modified so that two new configuration options are available: - `enabledSpecifications` - `disabledSpecifications` These operate on the value of the `document` property of the annotation. Their usage is comparable to that of the pre-existing `enabledTests` and `disabledTest` configuration options. Execution output now includes the document, section and quote that's on the annotated test, when the test fails. This allows an end-user to easily correspond a test failure with a particular specification.
This applies the new features from the previous commit, and applies them to pre-existing tests.
A new annotation is introduced (
SpecificationReference
) that can be used to annotate a SINT test.These properties are available in the annotation:
document
: Iidentifier for a specification document, such as 'RFC 6120' or 'XEP-0485'section
: Identifier for a section (or paragraph), such as '6.2.1'quote
: A quotation of relevant text from the sectionThe SINT execution framework is modified so that two new configuration options are available:
enabledSpecifications
disabledSpecifications
These operate on the value of the
document
property of the annotation. Their usage is comparableto that of the pre-existing
enabledTests
anddisabledTest
configuration options.Execution output now includes the document, section and quote that's on the annotated test, when
the test fails. This allows an end-user to easily correspond a test failure with a particular
specification.