Django Behave will let us run our Behave tests via the Django test runner.Dependenciesįirst off, we’ll need to install our dependencies: When I filter the list of users by Then I see usersĮxamples : | filter | num | | Django | 2 | | Django, Testing | 3 | | PHP | 0 | Given there are a number of interests : | interest | | Django | | Testing | | Public Speaking | | DevOps | | PHP | And there are many users, each with different interests : | name | interests | | Billie Jean | Django, Testing | | Rocky Raccoon | Django, Public Speaking | | Major Tom | Testing, Devops | | Bobbie McGee | Public Speaking, DevOps | Scenario Outline : Filter users So I can find users who have similar interests to my ownīackground : There are interests and users in the system I want to filter users by their listed interests When I filter the list of users by …įor reference, let’s take a quick look at the Filter Users feature we wrote in the first part of this series:įilter_users.feature Feature : Filter users by interest And there are many users, each with different interests This guide has been tested to work with the following stack: In this part we’ll use Behave to hook up our feature file to an automated test suite. In the first half of this series we outlined the benefits of BDD and scoped and wrote a Gherkin feature file for our Filter Users feature.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |