gauge icon indicating copy to clipboard operation
gauge copied to clipboard

gauge format does not format concept files

Open kimholan opened this issue 5 years ago • 4 comments

Expected behavior

gauge format formats concept and spec files alike.

Actual behavior

Concept file not formatted.

Steps to reproduce

  1. Create spec file with unformatted table
$ cat >> test.spec <<EOF
# Spec

## Scenario

* Do it with table
  |xmxmxmxm | xmxmxmx                  |
  |---------|--------------------------|
  | 1 | 2 |
  1. Create concept file with unformatted table
cat >> test.spec <<EOF
## Concept

* Do it with table
  |xmxmxmxm | xmxmxmx                  |
  |---------|--------------------------|
  | 1 | 2 |
  1. Format the spec file and check output (table is formatted)
$ gauge format test.spec
$ cat test.spec 
# Spec

## Scenario

* Do it with table
  |xmxmxmxm | xmxmxmx                  |
  |---------|--------------------------|
  | 1       | 2                        |
  1. Format the concept file and check output (table is not formatted)
$ gauge format test.cpt
$ cat test.cpt
# Concept

* Do it with table
  |xmxmxmxm | xmxmxmx                  |
  |---------|--------------------------|
  | 1 | 2 |

Gauge version

$ gauge --version Gauge version: 1.0.5 Commit Hash: 562f036

Plugins

html-report (4.0.8) java (0.7.2) screenshot (0.0.1) xml-report (0.2.2)

kimholan avatar Oct 19 '19 07:10 kimholan

@kimholan this is a known issue. We will try and fix this soon.

nehashri avatar Oct 21 '19 05:10 nehashri