Skip to content

Commit

Permalink
Wip
Browse files Browse the repository at this point in the history
  • Loading branch information
safafa committed Dec 27, 2023
1 parent c8558b7 commit 95ddde9
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 3 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,29 @@ jobs:
run: bundle exec rake rubocop
- name: Run tests
run: bundle exec rake spec
- name: Upload Logs
uses: actions/upload-artifact@v2
with:
name: Logs
path: failing_specs_detector_log_*.txt

print_log:
name: Test print logs task
needs: test
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: 2.7.2
bundler-cache: true
- name: Lint files
run: bundle exec rake rubocop
- name: Run tests
run: bundle exec rake spec
- name: Upload Logs
uses: actions/upload-artifact@v2
with:
name: Logs
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,6 @@

# rspec failure tracking
.rspec_status

# log file
failing_specs_detector_log_*.txt
6 changes: 3 additions & 3 deletions spec/failing_spec_detector/failing_spec_formatter_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,9 @@
example
end

after do
File.delete(actual_file_path)
end
# after do
# File.delete(actual_file_path)
# end

it 'prints the failing specs backtraces grouped by exception' do
mock_run_specs
Expand Down

0 comments on commit 95ddde9

Please sign in to comment.