Ruby
12 de Fevereiro de 2024 - @Walmir Neto
A ideia aqui é fazer o setup e fazer o primeiro teste e hoje é sem muita conversinha…
Gems utilizadas
- https://github.com/presidentbeef/brakeman - Checa vulnerabilidades de segurança
- https://github.com/rspec/rspec-rails - Framework BDD para Rails
- https://github.com/DatabaseCleaner/database_cleaner - Limpa o banco de dados a cada execução
- https://github.com/teamcapybara/capybara - Ajuda na interação com os componentes
- https://github.com/SeleniumHQ/selenium - Simula o navegado
- https://github.com/simplecov-ruby/simplecov - Checa a cobertura de código
- https://github.com/vicentllongo/simplecov-json - Serve para checar no CI
- https://github.com/thoughtbot/shoulda-matchers - Adiciona alguns matchers
- https://github.com/stympy/faker - Cria dados fake
- https://github.com/thoughtbot/factory_bot_rails - Simula estrutura do model e objetos
Intalando https://github.com/presidentbeef/brakeman
No # Gemfile
group :development, :test do
# https://github.com/presidentbeef/brakeman
gem "brakeman", "~> 6.1", ">= 6.1.2"
end
No terminal
bin/bundle install
bin/bundle binstub brakeman # optional