Skip to content

Commit

Permalink
Test JavaScript implementation against cucumber compatibility kit (#69)
Browse files Browse the repository at this point in the history
  • Loading branch information
kieran-ryan authored Mar 22, 2024
1 parent 0c18e14 commit b0d9e3b
Show file tree
Hide file tree
Showing 235 changed files with 4 additions and 4,979 deletions.
7 changes: 4 additions & 3 deletions javascript/test/prettyTest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ import path from 'path'
import pretty, { escapeCell } from '../src/pretty'
import parse from './parse'

const featuresPath = path.resolve(__dirname, '../node_modules/@cucumber/compatibility-kit/features')

describe('pretty', () => {
it('renders an empty file', () => {
checkGherkinToAstToMarkdownToAstToGherkin('')
Expand Down Expand Up @@ -219,7 +221,7 @@ Feature: hello
# three
# four
`)
});
})

it('renders descriptions when set', () => {
checkGherkinToAstToGherkin(`Feature: hello
Expand Down Expand Up @@ -252,8 +254,7 @@ Feature: hello
`)
})


const featureFiles = fg.sync(`${__dirname}/../../testdata/good/*.feature`)
const featureFiles = fg.sync(`${featuresPath}/**/*.feature`)
for (const featureFile of featureFiles) {
const relativePath = path.relative(__dirname, featureFile)
it(`renders ${relativePath}`, () => {
Expand Down
14 changes: 0 additions & 14 deletions testdata/bad/inconsistent_cell_count.feature

This file was deleted.

2 changes: 0 additions & 2 deletions testdata/bad/inconsistent_cell_count.feature.errors.ndjson

This file was deleted.

6 changes: 0 additions & 6 deletions testdata/bad/invalid_language.feature

This file was deleted.

1 change: 0 additions & 1 deletion testdata/bad/invalid_language.feature.errors.ndjson

This file was deleted.

9 changes: 0 additions & 9 deletions testdata/bad/multiple_parser_errors.feature

This file was deleted.

2 changes: 0 additions & 2 deletions testdata/bad/multiple_parser_errors.feature.errors.ndjson

This file was deleted.

2 changes: 0 additions & 2 deletions testdata/bad/not_gherkin.feature

This file was deleted.

1 change: 0 additions & 1 deletion testdata/bad/not_gherkin.feature.errors.ndjson

This file was deleted.

7 changes: 0 additions & 7 deletions testdata/bad/single_parser_error.feature

This file was deleted.

1 change: 0 additions & 1 deletion testdata/bad/single_parser_error.feature.errors.ndjson

This file was deleted.

6 changes: 0 additions & 6 deletions testdata/bad/unexpected_eof.feature

This file was deleted.

1 change: 0 additions & 1 deletion testdata/bad/unexpected_eof.feature.errors.ndjson

This file was deleted.

4 changes: 0 additions & 4 deletions testdata/bad/whitespace_in_tags.feature

This file was deleted.

1 change: 0 additions & 1 deletion testdata/bad/whitespace_in_tags.feature.errors.ndjson

This file was deleted.

11 changes: 0 additions & 11 deletions testdata/good/background.feature

This file was deleted.

1 change: 0 additions & 1 deletion testdata/good/background.feature.ast.ndjson

This file was deleted.

2 changes: 0 additions & 2 deletions testdata/good/background.feature.pickles.ndjson

This file was deleted.

1 change: 0 additions & 1 deletion testdata/good/background.feature.source.ndjson

This file was deleted.

12 changes: 0 additions & 12 deletions testdata/good/background.feature.tokens

This file was deleted.

24 changes: 0 additions & 24 deletions testdata/good/complex_background.feature

This file was deleted.

1 change: 0 additions & 1 deletion testdata/good/complex_background.feature.ast.ndjson

This file was deleted.

4 changes: 0 additions & 4 deletions testdata/good/complex_background.feature.pickles.ndjson

This file was deleted.

1 change: 0 additions & 1 deletion testdata/good/complex_background.feature.source.ndjson

This file was deleted.

25 changes: 0 additions & 25 deletions testdata/good/complex_background.feature.tokens

This file was deleted.

18 changes: 0 additions & 18 deletions testdata/good/datatables.feature

This file was deleted.

1 change: 0 additions & 1 deletion testdata/good/datatables.feature.ast.ndjson

This file was deleted.

8 changes: 0 additions & 8 deletions testdata/good/datatables.feature.md

This file was deleted.

1 change: 0 additions & 1 deletion testdata/good/datatables.feature.md.ast.ndjson

This file was deleted.

1 change: 0 additions & 1 deletion testdata/good/datatables.feature.md.pickles.ndjson

This file was deleted.

1 change: 0 additions & 1 deletion testdata/good/datatables.feature.md.source.ndjson

This file was deleted.

1 change: 0 additions & 1 deletion testdata/good/datatables.feature.pickles.ndjson

This file was deleted.

1 change: 0 additions & 1 deletion testdata/good/datatables.feature.source.ndjson

This file was deleted.

19 changes: 0 additions & 19 deletions testdata/good/datatables.feature.tokens

This file was deleted.

7 changes: 0 additions & 7 deletions testdata/good/datatables_with_new_lines.feature

This file was deleted.

Loading

0 comments on commit b0d9e3b

Please sign in to comment.