-
-
Notifications
You must be signed in to change notification settings - Fork 4
Add JavaScript implementation #42
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
Merged
Merged
Changes from all commits
Commits
Show all changes
30 commits
Select commit
Hold shift + click to select a range
830c285
add project structure and acceptance test
davidjgoss d4a31b2
implement suite-level attributes
davidjgoss 4c6757c
test case attrs with basic names
davidjgoss 7981c70
restructure code
davidjgoss 4c33d8b
output steps
davidjgoss c5f69c2
emit failure element
davidjgoss efae310
instrument lineage and use feature name
davidjgoss 5eb8930
use lineage for test case names
davidjgoss bd2633a
implement the rest of failure element
davidjgoss 5d2cfdc
remove query packages, add peer dep
davidjgoss 8d01a0f
split some functions out
davidjgoss 83e5aeb
allow customising suiteName
davidjgoss 431b2bb
add README.md
davidjgoss d36676b
store all TestCaseStarted, filter at query time
davidjgoss d392a57
some naming changes and tidying
davidjgoss 4545b5c
Merge branch 'main' into feat/javascript
davidjgoss e40fdc6
update js with new query
davidjgoss f2f7936
update java dependency and fix method name
davidjgoss 5d5f858
use lineage from query in js
davidjgoss 1c162eb
bump query version in java and fix retry fixture
davidjgoss dfaec0e
add empty fixture, fix js impl
davidjgoss 7ebb8d7
add pickle uri fallback for classname
davidjgoss cde97ce
add github actions
davidjgoss 30984fa
update npm scripts
davidjgoss 3b5dd01
normalise line endings
davidjgoss ce9ccb7
update CHANGELOG.md
davidjgoss 6d889be
Replace getOrDefault calls
mpkorstanje 157f9d3
fix(deps): update dependency io.cucumber:query to v13.0.2
mpkorstanje f994219
update CHANGELOG.md
davidjgoss 9e212f2
set js version to match java
davidjgoss File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
* text eol=lf |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
name: Release NPM | ||
|
||
on: | ||
push: | ||
branches: [release/*] | ||
|
||
jobs: | ||
publish-npm: | ||
name: Publish NPM module | ||
runs-on: ubuntu-latest | ||
environment: Release | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-node@v4 | ||
with: | ||
node-version: '22' | ||
cache: 'npm' | ||
cache-dependency-path: javascript/package-lock.json | ||
- run: npm install-test | ||
working-directory: javascript | ||
- uses: cucumber/[email protected] | ||
with: | ||
npm-token: ${{ secrets.NPM_TOKEN }} | ||
working-directory: javascript |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
name: test-javascript | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
- renovate/** | ||
pull_request: | ||
branches: | ||
- main | ||
workflow_call: | ||
|
||
jobs: | ||
test-javascript: | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: | ||
- ubuntu-latest | ||
node-version: ["18.x", "20.x", "22.x"] | ||
include: | ||
- os: windows-latest | ||
node-version: "22.x" | ||
- os: macos-latest | ||
node-version: "22.x" | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: with Node.js ${{ matrix.node-version }} on ${{ matrix.os }} | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
cache: "npm" | ||
cache-dependency-path: javascript/package-lock.json | ||
|
||
- run: npm install-ci-test | ||
working-directory: javascript |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
{ | ||
"env": { | ||
"browser": true, | ||
"node": true | ||
}, | ||
"parser": "@typescript-eslint/parser", | ||
"parserOptions": { | ||
"project": "tsconfig.json", | ||
"sourceType": "module" | ||
}, | ||
"plugins": [ | ||
"import", | ||
"simple-import-sort", | ||
"n", | ||
"@typescript-eslint" | ||
], | ||
"extends": [ | ||
"eslint:recommended", | ||
"plugin:import/typescript", | ||
"plugin:@typescript-eslint/eslint-recommended", | ||
"plugin:@typescript-eslint/recommended", | ||
"plugin:prettier/recommended" | ||
], | ||
"rules": { | ||
"import/no-cycle": "error", | ||
"n/no-extraneous-import": "error", | ||
"@typescript-eslint/ban-ts-ignore": "off", | ||
"@typescript-eslint/ban-ts-comment": "off", | ||
"@typescript-eslint/explicit-module-boundary-types": "off", | ||
"@typescript-eslint/explicit-function-return-type": "off", | ||
"@typescript-eslint/no-use-before-define": "off", | ||
"@typescript-eslint/interface-name-prefix": "off", | ||
"@typescript-eslint/member-delimiter-style": "off", | ||
"@typescript-eslint/no-explicit-any": "error", | ||
"@typescript-eslint/no-non-null-assertion": "error", | ||
"simple-import-sort/imports": "error", | ||
"simple-import-sort/exports": "error" | ||
} | ||
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
dist/ | ||
.idea/ | ||
.nyc_output/ | ||
coverage/ | ||
node_modules/ | ||
yarn.lock | ||
*.log | ||
.deps | ||
.tested* | ||
.linted | ||
.built* | ||
.compared | ||
.codegen | ||
acceptance/ | ||
storybook-static | ||
*-go | ||
*.iml | ||
.vscode-test | ||
|
||
# stryker temp files | ||
.stryker-tmp | ||
reports |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"loader": "ts-node/esm", | ||
"extension": ["ts"], | ||
"recursive": true | ||
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"trailingComma": "es5", | ||
"semi": false, | ||
"singleQuote": true, | ||
"printWidth": 100 | ||
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
⚠️ This is an internal package; you don't need to install it in order to use the junit formatter in `@cucumber/cucumber` as it's built in there. | ||
|
||
# junit-xml-formatter | ||
|
||
> Takes a stream of Cucumber messages and outputs a JUnit XML report |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.