Cucumber Ltd / cucumber-pro

Search a projectfeatures/search/search_a_project.feature

Release Dasher II (patch 1) (2018-12-13)

Romain Gérard

Currently viewing

Feature: Search a project

You can search for words and phrases that appear in your Gherkin specifications and your Markdown documents.

Rules

  • Searches in all text within a file
  • No paging yet - all results on one page
  • Search is scoped in one project

Later

  • Selecting a search result should take user to the location within the doc where the search term was found
  • Live search (autocomplete)

Questions

  • Do we index tags specifically so people can search by tag?
  • Can we link to Markdown locations? We don’t have the line numbers…
  • Would clicking a tag append to existing filter/search?
  • What about i18n and stemming?
  • Can we use churn and recency from git to rank results

Scenario: there are no results

  • Given Dave has created test-project with a document containing:
    This content will not match.
  • When Dave searches for "needles" in test-project
  • Then Dave shouldn't see any hits

Scenario: there is one result

  • Given Dave has created test-project with a document containing:
    This content contains needles. It should match.
  • When Dave searches for "needles" in test-project
  • Then Dave should see one hit
  • Given Dave has created test-project with a document containing:
    This content contains needles. It should match.
  • And Dolly has updated the document in test-project to:
    This content will not match.
  • When Dave searches for "needles" in test-project
  • Then Dave shouldn't see any hits