Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gauge format does not format concept files #1509

Open
kimholan opened this issue Oct 19, 2019 · 4 comments · May be fixed by #2566
Open

gauge format does not format concept files #1509

kimholan opened this issue Oct 19, 2019 · 4 comments · May be fixed by #2566

Comments

@kimholan
Copy link

kimholan commented Oct 19, 2019

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)

@nehashri
Copy link
Contributor

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

@jensakejohansson
Copy link
Contributor

Hi! This was never fixed, right? Does anyone know why?

@zabil
Copy link
Member

zabil commented Jul 1, 2024

It's been a long time. But if I remember correctly, this issue wasn't priority back then.

@jensakejohansson
Copy link
Contributor

Ok, just wondering since it seems like it shouldn't be that much of a difference compared to formatting the .spec-files. Haven't looked at the code that formats the files, but this should be fixed since auto-formatting tables is very effective to have. Maybe we'll have a look at it when we have time...

@PiotrNestor PiotrNestor linked a pull request Jul 4, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging a pull request may close this issue.

4 participants