-
Notifications
You must be signed in to change notification settings - Fork 98
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
Feature/more flexible as provider #1574
Conversation
20c6090
to
a8cc2cd
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.
First comments, not yet finished.
docs/stages.adoc
Outdated
@@ -66,6 +67,7 @@ public MyStage some_step() { | |||
return self(); | |||
} | |||
---- | |||
In additon, the `@As` annotation allows declaring an `AsProvider` that handles the step name generation. A default provider can be set via in a JGiven configuration. |
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.
can be set via [???] in a ...
jgiven-core/src/main/java/com/tngtech/jgiven/config/AbstractJGivenConfiguration.java
Outdated
Show resolved
Hide resolved
Signed-off-by: l-1squared <30831153+l-1squared@users.noreply.github.com>
Signed-off-by: l-1squared <30831153+l-1squared@users.noreply.github.com>
Signed-off-by: l-1squared <30831153+l-1squared@users.noreply.github.com>
Signed-off-by: l-1squared <30831153+l-1squared@users.noreply.github.com>
5034d4c
to
3ac595e
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.
But check the comments, perhaps another commit is necessary.
jgiven-core/src/test/java/com/tngtech/jgiven/impl/ConfigurationTest.java
Outdated
Show resolved
Hide resolved
Signed-off-by: l-1squared <30831153+l-1squared@users.noreply.github.com>
Signed-off-by: l-1squared <30831153+l-1squared@users.noreply.github.com>
Signed-off-by: l-1squared <30831153+l-1squared@users.noreply.github.com>
Signed-off-by: l-1squared <30831153+l-1squared@users.noreply.github.com>
Signed-off-by: l-1squared <30831153+l-1squared@users.noreply.github.com>
3ac595e
to
30472a9
Compare
Missing:
[x] documentation
[x] tests
[x] works for method names.
[x] check once for a real JGiven test
[x] double check using As provider for method descriptions -- getDescription uses it. If anything we're more correct now