From Fedora Project Wiki
No edit summary
No edit summary
 
Line 3: Line 3:
|setup=
|setup=
|actions=
|actions=
# <code> dnf install ripgrep </code>
# Execute with sudo or root <code> dnf install ripgrep </code>
# Next do this ...
# Create one or multiple files with some word in common
# Finally click that
# Execute <code> rg -i [word] </code>
|results=
|results=
The following must be true to consider this a successful test run. Be brief ... but explicit.  
The following must be true to consider this a successful test run. Be brief ... but explicit.  
# Step #1 completes without error
# Step #1 should execute without error
# The system boots into runlevel 5
# Step #3 should show the file name, the searched text and corresponding line numbers of matches found.
# Program completes with exit code 0
|optional=Download compressed files and use rg to search for something.
|optional=Optionally provide hints for exploratory testing.
}}
}}

Latest revision as of 05:25, 3 April 2018

Description

ripgrep a command line tool in the tradition of grep. It is optimized for searching large directories of files using parallelism out of the box. It recursively searches your current directory by default. This utility automatically skips files matching a pattern in your .gitignore files (this option can be disabled). ripgrep supports file type filtering and the full gamut of Unicode, while remaining fast. It can even automatically search compressed files.


How to test

  1. Execute with sudo or root dnf install ripgrep
  2. Create one or multiple files with some word in common
  3. Execute rg -i [word]

Expected Results

The following must be true to consider this a successful test run. Be brief ... but explicit.

  1. Step #1 should execute without error
  2. Step #3 should show the file name, the searched text and corresponding line numbers of matches found.

Optional

Download compressed files and use rg to search for something.