On Tue, Dec 29, 2015 at 8:43 PM, Sophie <
csh...@gmail.com> wrote:
> Thank you Paolo for the answers. My tests needs to be run on different
> platforms. But the automation tests for different platforms are built on
> top of different framework, while these frameworks have dependencies
> conflict. The tests implementation on different platforms needs to be in
> different modules. But, we still want to share the same cucumber test
> cases. This is why i want to move features into a separated modules for
> sharing.
This makes sense :-) I initially thought you meant modules as parts of
the same application, not as different implementations sharing the
same basic behaviour.
> Could I confirm with your suggestions:
> 1. In cucumber test case module (UIFunctionalTestCases), i marked features
> folder as resource from: Intellij -> Project Structure -> Sources -> select
> features folder and Mark as "Resources Folders"
> 2. In my test case implementation module, I import them in test classpath
> by: Intellij -> Project Structure -> Dependencies -> click green "+" ->
> select Module Dependency -> select UIFunctionalTestCases and set scope as
> "Test".
> 3. And change my code as:
> @CucumberOptions(features = "classpath:UIFunctionalTestCases/features"
If you have the feature files in a "features" directory in the
UIFunctionalTestCases resources, you should just use
"classpath:features", without the project name.
If that still does not work, make sure that your JUnit test runner is
in a directory marked as test (i think green folder).
> I tried with these steps, it still shows me that cannot find features in
> UIFunctionalTestCases/features. I guess that I am wrong about import test
> classpath. Could you help to correct me? Thanks a lot!
>
> On Tuesday, December 29, 2015 at 12:15:09 PM UTC-8, Paolo Ambrosio wrote:
>>
> --
> Posting rules:
http://cukes.info/posting-rules.html
> ---
> 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+un...@googlegroups.com.
> For more options, visit
https://groups.google.com/d/optout.