Skip to content
Snippets Groups Projects

Enable rspec documentation formatter and color output

Merged Stan Hu requested to merge enable-rspec-formatter into master
1 unresolved thread

Current rspec just outputs a = as each test runs. This enables the documentation formatter and color output to make it easier to know what is going on with each spec.

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
82 82 - export KNAPSACK_REPORT_PATH=knapsack/rspec_node_${CI_NODE_INDEX}_${CI_NODE_TOTAL}_report.json
83 83 - export KNAPSACK_GENERATE_REPORT=true
84 84 - cp knapsack/rspec_report.json ${KNAPSACK_REPORT_PATH}
85 - knapsack rspec
85 - knapsack rspec "--color --format documentation"
  • Wouldn't it be better to enable it in .rspec, which would also make it possible to use documentation formatter in development environment?

    This will also make build logs to be massive, which may not work good on slower machines, but it is probably reasonable move :thumbsup:

  • Author Maintainer

    Right now the Fuubar output format is used for the dev environment. I think not everyone wants the documentation output when they run rspec in the dev environment. In the CI builds, it makes more sense because the progress bar is not very helpful.

    Also, any ideas why color outputting isn't being shown here? Is ANSI support required?

  • @stanhu I would guess that this is ANSI terminal issue, which would be hopefully resolved by https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/5744

  • Please register or sign in to reply
  • Stan Hu Reassigned to @ayufan

    Reassigned to @ayufan

  • Kamil Trzcińśki Status changed to merged

    Status changed to merged

  • mentioned in commit d1dbc496

  • Please register or sign in to reply
    Loading