diff --git a/.gitignore b/.gitignore index 96eb56be5..edd25de40 100644 --- a/.gitignore +++ b/.gitignore @@ -11,6 +11,7 @@ /log/* !/log/.keep /tmp +failing_specs.txt public/uploads public/downloads diff --git a/README.md b/README.md index 4e4c6cb7f..00d06c679 100644 --- a/README.md +++ b/README.md @@ -109,6 +109,10 @@ Pour exécuter les tests de l'application, plusieurs possibilités : bin/rake spec SPEC=file_path/file_name_spec.rb bin/rspec file_path/file_name_spec.rb +- Relancer uniquement les tests qui ont échoué précédemment + + bin/rspec --only-failures + ### Ajout de taches à exécuter au déploiement rails generate after_party:task task_name diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index 4ff370f84..b0478d438 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -22,6 +22,7 @@ RSpec.configure do |config| config.color = true config.tty = true + config.example_status_persistence_file_path = 'failing_specs.txt' config.run_all_when_everything_filtered = true config.filter_run :focus => true