Skip to content

Conversation

@Ameterezu
Copy link
Contributor

@Ameterezu Ameterezu commented Jan 20, 2021

Motivation

Added the ability to get a list of tests in json format.
Filtering of tests through grep and fgrep is supported.
Export of the list to a file is supported.
New functionality will allow to control the launch of tests remotely by it's name.

Command:
npx codeceptjs list-of-tests --grep "My test name" --file

Type of change

  • 🚀 New functionality

Checklist:

  • Tests have been added
  • Documentation has been added (Run npm run docs)
  • Lint checking (Run npm run lint)
  • Local tests are passed (Run npm test)

Ameterezu and others added 7 commits November 20, 2020 22:00
Add reporting support for run-workers. 
Can be used to generate junit reports.
Example command:
npx codeceptjs run-workers 2 --reporter mocha-junit-reporter
…rkers

Add reporting support for run-workers
@Ameterezu Ameterezu force-pushed the 3.x branch 3 times, most recently from 9dc0e48 to c435f51 Compare January 20, 2021 18:34
@Ameterezu Ameterezu changed the title Add command to get list of tests Add command to get list of tests in json format Jan 26, 2021
@DavertMik
Copy link
Contributor

DavertMik commented Feb 3, 2021

Thanks for the PR!
However, I don't think it should be part of CodeceptJS main package. It adds an independent command, so I think it can be published as a standalone package on npm and added to the list of community driven packages https://github.com/codeceptjs/CodeceptJS/wiki/Community-Helpers-&-Plugins

Not an issue with the code itself. But when it is used to solve some very specific issue I prefer to not pull this change into the main codebase. Anyway, this is good to have it as a different command

@DavertMik DavertMik closed this Feb 3, 2021
@lyubenkov
Copy link

lyubenkov commented Feb 3, 2021

@DavertMik Thanks for your detailed feedback, but I still don't understand why json format can't be a part of the main package.
Codeceptjs has in-build ability to export list of tests in a plain text format (dry-run). But such format can't be processed easily afterwards. Isn't it better to support json out of the box?

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

Successfully merging this pull request may close these issues.

3 participants