Gergely Brautigam
2013-04-15 11:22:50 UTC
Hi guys.
I want to find out if it possible to get the annotations on a Feature
instead of a Scenario.
I know I can access some part with an @After and the Scenario. Which
contains the Annotation on a Scenario which I found after some digging.
However I can't seem to be able to find the name of the feature and
annotations on it.
For example:
@After
public static runAfterFeatures(Scenario sc) {
logger.log("These are the annotations on a feature: " +
sc.annotationsOnAFeature);
}
Where as a feature looks like this:
@Oneannotation @web @storynumber @quick
Feature: Do something interesting
And I would like to be able to get these annotations from it.
Do I have to implement my own filter for that? If so...where do I register
the implementor with cucumber?
thanks very much!
Greg
--
-- Rules --
1) Please prefix the subject with [Ruby], [JVM] or [JS].
2) Please use interleaved answers http://en.wikipedia.org/wiki/Posting_style#Interleaved_style
3) If you have a question, don't reply to an existing message. Start a new topic instead.
You received this message because you are subscribed to the Google Groups Cukes group. To post to this group, send email to cukes-/JYPxA39Uh5TLH3MbocFF+G/***@public.gmane.org To unsubscribe from this group, send email to cukes+***@googlegroups.com. For more options, visit this group at https://groups.google.com/d/forum/cukes?hl=en
---
You received this message because you are subscribed to the Google Groups "Cukes" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cukes+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/***@public.gmane.org
For more options, visit https://groups.google.com/groups/opt_out.
I want to find out if it possible to get the annotations on a Feature
instead of a Scenario.
I know I can access some part with an @After and the Scenario. Which
contains the Annotation on a Scenario which I found after some digging.
However I can't seem to be able to find the name of the feature and
annotations on it.
For example:
@After
public static runAfterFeatures(Scenario sc) {
logger.log("These are the annotations on a feature: " +
sc.annotationsOnAFeature);
}
Where as a feature looks like this:
@Oneannotation @web @storynumber @quick
Feature: Do something interesting
And I would like to be able to get these annotations from it.
Do I have to implement my own filter for that? If so...where do I register
the implementor with cucumber?
thanks very much!
Greg
--
-- Rules --
1) Please prefix the subject with [Ruby], [JVM] or [JS].
2) Please use interleaved answers http://en.wikipedia.org/wiki/Posting_style#Interleaved_style
3) If you have a question, don't reply to an existing message. Start a new topic instead.
You received this message because you are subscribed to the Google Groups Cukes group. To post to this group, send email to cukes-/JYPxA39Uh5TLH3MbocFF+G/***@public.gmane.org To unsubscribe from this group, send email to cukes+***@googlegroups.com. For more options, visit this group at https://groups.google.com/d/forum/cukes?hl=en
---
You received this message because you are subscribed to the Google Groups "Cukes" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cukes+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/***@public.gmane.org
For more options, visit https://groups.google.com/groups/opt_out.