Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Formatting Cucumber Feature file

I extensively use Data tables in cucumber feature file. Data Tables are mostly dump of Database table which i export in pipe delimted format and not properly aligned.

Is there any option in Cucumber-JVM that will auto align DataTables ?

like image 241
Manish Avatar asked Jan 12 '23 02:01

Manish


2 Answers

If you're using IntelliJ go to Code>Reformat code

like image 130
Gaurav Avatar answered Jan 18 '23 14:01

Gaurav


As Joe says, the --autoformat feature isn't available any more.

I found that cucumber --dry-run --format pretty --quiet --no-color pretty much gives you what you want, although you'd have to do some string-wrangling to write back to the files.

like image 21
Matthias Avatar answered Jan 18 '23 14:01

Matthias