Skip to content
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

Proposal: Add BDD with cucumber OR better system tests #20

Open
mattlindsey opened this issue Nov 30, 2023 · 1 comment
Open

Proposal: Add BDD with cucumber OR better system tests #20

mattlindsey opened this issue Nov 30, 2023 · 1 comment
Labels

Comments

@mattlindsey
Copy link
Owner

If anyone is interested in BDD (behavior driven design), we can use Cucumber like below. But only if people are interested, since it adds another tool to learn (athough it's fairly easy).

There would be Rspec unit and integration tests in spec/ and Cucumber acceptance/system tests in features/.

As an author
  So that I can create an interesting new mythological story
  I would like to describe a story and submit it to the ai

  Background:
    Given the following mythologies exist
      | name | description |
      | Roman | Ancient Roman  |

  Scenario: Creating a new story
    Given I am on the home page
    When I click the "Generate a Story" button
    Then I should see "New Story"
    And I should see a form with:
      | Field |
      | Title |
      | Descriptions |
    Etc...
@mattlindsey
Copy link
Owner Author

I think if we don't add cucumber, there should be good system tests in minitest or rspec:

See https://guides.rubyonrails.org/testing.html#system-testing.
Maybe follow these guidelines: https://evilmartians.com/chronicles/system-of-a-test-setting-up-end-to-end-rails-testing.

@mattlindsey mattlindsey changed the title Proposal: Add BDD with cucumber Proposal: Add BDD with cucumber OR better system tests Dec 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant