Sha256: ecf669d5e9208258666f90bbfeec48885bde73c64cb9875e541933c9556c80af
Contents?: true
Size: 1.24 KB
Versions: 1
Compression:
Stored size: 1.24 KB
Contents
Feature: Use a step library As a tester I want to use steps from one or more step libraries To simplify the reuse of problem domain specific steps in multiple projects. Scenario: Use a simple step library Given a new working directory And an empty file named "step_library1/__init__.py" And a file named "step_library1/alice_steps.py" with: """ from behave import step @step('I meet Alice') def step_meet_alice(context): pass """ And a file named "step_library1/bob_steps.py" with: """ from behave import step @step('I meet Bob') def step_meet_bob(context): pass """ And a file named "features/steps/use_step_library.py" with: """ from step_library1 import alice_steps, bob_steps """ And a file named "features/example_use_step_library.feature" with: """ Feature: Scenario: Given I meet Alice And I meet Bob """ When I run "behave -f plain features/example_use_step_library.feature" Then it should pass with: """ 1 feature passed, 0 failed, 0 skipped 1 scenario passed, 0 failed, 0 skipped 2 steps passed, 0 failed, 0 skipped, 0 undefined """
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
busser-behave-0.1.3 | vendor/behave/features/step.use_step_library.feature |