Each golden file filename is in the format: * status-cmd line.txt * status[confirm_prompt:prompt]-cmd line.txt * status[command_execute:command]-cmd line.txt Command line is mangled with `_` -> `/`, and then `pg/dump` -> `pg_dump`. It was substantial work to set up the necessary mocking of ids to get consistent output. If the golden files spec fails, it tells you were you can see the differences, and it doesn't delete the recorded files from spec/routes/api/cli/spec-output-files, so if you are updating and the changes are expected, you can copy the files to spec/routes/api/cli/golden-files and commit them. This handles all cli commands, and most commands tests both the success and failure cases. The pg failover success case is not tested as that needs special setup.
36 lines
747 B
Plaintext
36 lines
747 B
Plaintext
/.env.rb
|
|
/coverage
|
|
/spec/examples.txt
|
|
/demo/.env
|
|
/var/*
|
|
/tmp/*
|
|
/assets/css/app.css
|
|
/.auto-parallel-tests
|
|
/sql.log
|
|
/sql_query_parameterization_analysis.txt
|
|
/spec/routes/api/cli/spec-output-files
|
|
/cli-golden-files.diff
|
|
|
|
# Used by rake by
|
|
/bin/by
|
|
|
|
# rhizome/Gemfile is combination of all Gemfiles in subdirectories, so does rhizome/Gemfile.lock
|
|
/rhizome/*/Gemfile.lock
|
|
|
|
# Frontend
|
|
/node_modules
|
|
|
|
# vscode: https://github.com/github/gitignore/blob/4488915eec0b3a45b5c63ead28f286819c0917de/Global/VisualStudioCode.gitignore
|
|
/.vscode/*
|
|
!/.vscode/settings.json
|
|
!/.vscode/tasks.json
|
|
!/.vscode/launch.json
|
|
!/.vscode/extensions.json
|
|
!/.vscode/*.code-snippets
|
|
|
|
# Local History for Visual Studio Code
|
|
/.history/
|
|
|
|
# Built Visual Studio Code Extensions
|
|
/*.vsix
|