Help with gitlab regex?

THis is an extract from my .gitlab-cy.yml file:

  stage: benchmarks
    - env ENV=DEVELOPMENT GO111MODULE=on CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go test -run=xxx -bench=. ./test/benchmarks/... -mod vendor -benchtime 100x
  coverage: '/\(statements\)\s+\d{1,3}\./'

I want this pipeline stage to show the number “X ns/op” where X is how many average nanoseconds this benchmark decided that my code took.

What regular expression should I use in the “coverage” line ?

Please provide some sample data from which you want to extract something. Only then can we help you with constructing a regular expression for it.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.