Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
52 commits
Select commit Hold shift + click to select a range
1923b48
cucumber extension settings
AlexSicoe Mar 26, 2024
e7073d6
report browser & os metadata
AlexSicoe Mar 26, 2024
c8a98ac
fix passing args (tags & browser)
AlexSicoe Mar 27, 2024
9567c11
add api test
AlexSicoe Mar 27, 2024
68e7141
update extension settings
AlexSicoe Mar 27, 2024
8c61a09
update with smaller post
AlexSicoe Mar 27, 2024
eb390ff
fix platform name logo on macOS
AlexSicoe Mar 27, 2024
39c5245
rename API test files
AlexSicoe Mar 27, 2024
5890d2d
Update test reporting and artifact capturing policy
AlexSicoe Apr 1, 2024
fb97e64
Refactor file paths in hooks.ts
AlexSicoe Apr 1, 2024
1dd3a6f
Add @only and @ignore tags
AlexSicoe Apr 1, 2024
709f4cb
Open trace files from hosted report
AlexSicoe Apr 1, 2024
0734af4
Add chalk package and improve logging message for test report server …
AlexSicoe Apr 1, 2024
2ef1a15
Refactor scenario name formatting in hooks.ts
AlexSicoe Apr 1, 2024
c6e8802
open report in browser
AlexSicoe Apr 2, 2024
d7cd877
refactor
AlexSicoe Apr 2, 2024
2fba323
refactor
AlexSicoe Apr 2, 2024
e727c1c
Refactor hooks and extract ArtifactManager class
AlexSicoe Apr 2, 2024
56960c9
refactor fixture and add world
AlexSicoe Apr 2, 2024
7308c1d
refactor
AlexSicoe Apr 2, 2024
2691264
Separate Artifact and Fixture managers from hooks
AlexSicoe Apr 2, 2024
392450d
segregate fixture interface
AlexSicoe Apr 2, 2024
6e4ef46
Update parallel value and refactor ArtifactManager class
AlexSicoe Apr 2, 2024
81a567d
Refactor ArtifactManager to skip capturing media for scenarios with @…
AlexSicoe Apr 2, 2024
61d06cd
Attach logs to report
AlexSicoe Apr 2, 2024
521c027
limit attached logs
AlexSicoe Apr 2, 2024
6c63513
🚀 add license: everyone can use this 🚀
AlexSicoe Apr 2, 2024
19a41ae
update readme
AlexSicoe Apr 2, 2024
396e292
update readme
AlexSicoe Apr 2, 2024
b12e9e1
update readme
AlexSicoe Apr 2, 2024
65665fd
format readme
AlexSicoe Apr 2, 2024
5876977
type this
AlexSicoe Apr 2, 2024
15b983b
install ms and set default timeout to 2 minutes
AlexSicoe Apr 2, 2024
8735f6d
don't record video on @api tag
AlexSicoe Apr 3, 2024
5d7c479
refactor and use hasTag
AlexSicoe Apr 3, 2024
8bfc5ac
refF
AlexSicoe Apr 3, 2024
8011069
extract ScenarioManager & pass world to ArtifactManager constructor
AlexSicoe Apr 3, 2024
62de875
clear scenario
AlexSicoe Apr 3, 2024
a94807b
Refactor constructors in ArtifactManager and ScenarioManager
AlexSicoe Apr 3, 2024
902e2ae
Refactor FixtureManager class
AlexSicoe Apr 3, 2024
eddafcc
rename playwright wrapper
AlexSicoe Apr 3, 2024
2f54339
add multiple tab support
AlexSicoe Apr 3, 2024
a12dc58
update readme
AlexSicoe Apr 3, 2024
39d9d4f
fix videoPath
AlexSicoe Apr 4, 2024
259099b
Update artifact management behavior and add tags for disabling screen…
AlexSicoe Apr 4, 2024
484e7fb
Disable screenshot tag name change
AlexSicoe Apr 4, 2024
f63887b
rename disable log tag
AlexSicoe Apr 4, 2024
bf77828
add debug profile to cucumber config
AlexSicoe Apr 4, 2024
7f7c2b7
fix rerun
AlexSicoe Apr 4, 2024
d825333
remove env var from open:report
AlexSicoe Apr 4, 2024
240a1e2
fix login scenario
AlexSicoe Apr 4, 2024
c05ab71
fix world
AlexSicoe Apr 4, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ node_modules/
/test-results/
cucumber-report.html
assets
features
@rerun.txt
index.html
browser-details.json
.DS_Store
10 changes: 10 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
// Configure project-level settings for the official Cucumber extension in Visual Studio Code.
// The settings now include subdirectories under 'features' and 'steps'
"cucumber.features": [
"src/test/features/**/*.feature"
],
"cucumber.glue": [
"src/test/steps/**/*.ts"
]
}
21 changes: 21 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2024 Koushik Chatterjee and Alexandru Sicoe

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
77 changes: 36 additions & 41 deletions config/cucumber.js
Original file line number Diff line number Diff line change
@@ -1,48 +1,43 @@
const tags = process.env.npm_config_tags || "";

const commonConfig = {
formatOptions: {
snippetInterface: "async-await"
},
paths: [
"src/test/features/**/*"
],
publishQuiet: true,
dryRun: false,
require: [
"src/test/steps/**/*.ts",
"src/hooks/hooks.ts"
],
requireModule: [
"ts-node/register"
],
format: [
"progress-bar",
"html:test-results/cucumber-report.html",
"json:test-results/cucumber-report.json",
"rerun:@rerun.txt"
],
};

module.exports = {
default: {
tags: process.env.npm_config_TAGS || "",
formatOptions: {
snippetInterface: "async-await"
},
paths: [
"src/test/features/"
],
publishQuiet: true,
dryRun: false,
require: [
"src/test/steps/*.ts",
"src/hooks/hooks.ts"
],
requireModule: [
"ts-node/register"
],
format: [
"progress-bar",
"html:test-results/cucumber-report.html",
"json:test-results/cucumber-report.json",
"rerun:@rerun.txt"
],
parallel: 1
...commonConfig,
tags: tags,
parallel: 2,
},
debug: {
...commonConfig,
tags: `${tags ? `@debug and ${tags}` : '@debug'}`,
parallel: 1,
},
rerun: {
formatOptions: {
snippetInterface: "async-await"
},
publishQuiet: true,
dryRun: false,
require: [
"src/test/steps/*.ts",
"src/hooks/hooks.ts"
],
requireModule: [
"ts-node/register"
],
format: [
"progress-bar",
"html:test-results/cucumber-report.html",
"json:test-results/cucumber-report.json",
"rerun:@rerun.txt"
],
...commonConfig,
paths: [],
parallel: 2
}
}
Loading