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

json-formatter generates empty json file on github actions #33

Open
vojtech-cerveny opened this issue Nov 25, 2022 · 3 comments
Open

json-formatter generates empty json file on github actions #33

vojtech-cerveny opened this issue Nov 25, 2022 · 3 comments

Comments

@vojtech-cerveny
Copy link

vojtech-cerveny commented Nov 25, 2022

👓 What did you see?

It seems, that json-formatter doesn't work correctly on github actions - it doesn't return anything after calling cucumber-json-formatter --help + it generates empty json file using this cmd

cucumber-json-formatter < cypress/results/reports/cucumber_json/cucumber-messages.ndjson > cypress/results/cucumber-standalone.json

✅ What did you expect to see?

cucumber-json-formatter work correctly on github actions.
Workflow is:

  1. Add folder into PATH
  2. Download cucumber-json-formatter (linux version) into folder
  3. chmod +x
  4. Run tests to generate ndjson
  5. It should generate json also - doesn't work
  6. Execute formatter in separate step - doesn't work

📦 Which tool/library version are you using?

this is package.json, but I don't think that it is needed due I doesn't work in standalone version.

package.json
    "@badeball/cypress-cucumber-preprocessor": "^12.1.0",
    "@bahmutov/cypress-esbuild-preprocessor": "^2.1.3",
    "cypress": "^10.6.0",
    "cypress-multi-reporters": "^1.6.1"

🔬 How could we reproduce it?

https://github.com/vojtech-cerveny/cypress-cucumber-framework

Steps to reproduce the behavior:

  1. Check workflow
  2. This line should generate json file from ndjson (it works locally), but it doesn't on github actions.
    https://github.com/vojtech-cerveny/cypress-cucumber-framework/actions/runs/3549525386/workflow#L66

image

📚 Any additional context?

@vojtech-cerveny vojtech-cerveny changed the title json-formatter generate empty json file on github actions json-formatter generates empty json file on github actions Nov 25, 2022
@vojtech-cerveny
Copy link
Author

This will affect also badeball/cypress-cucumber-preprocessor#870

@Clean-Cole
Copy link

@vojtech-cerveny did you ever get anywhere on this issue?

@vojtech-cerveny
Copy link
Author

@Clean-Cole sadly no.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants