Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Added SPEC=... to set path to .feature file to run tests from #54

Merged
merged 3 commits into from
Mar 11, 2018

Conversation

Marketionist
Copy link
Member

This pull request adds SPEC="..." environment variable to set path to .feature file to run tests from

@Marketionist Marketionist requested a review from alexkrechik March 8, 2018 03:53
@Marketionist
Copy link
Member Author

@alexkrechik please review

@Marketionist Marketionist force-pushed the feature/add-spec-run branch 2 times, most recently from 1533b3c to 4b38593 Compare March 11, 2018 04:19
@Marketionist Marketionist force-pushed the feature/add-spec-run branch from 4b38593 to 64c2eb1 Compare March 11, 2018 13:29
cucumber.sh Outdated
./node_modules/.bin/wdio test/wdio.conf.js
#Use SPEC="..." to set path to .feature file to run tests from
if [ "$SPEC" == "" ]; then
./node_modules/.bin/wdio test/wdio.conf.js
Copy link
Member

@alexkrechik alexkrechik Mar 11, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

May be would be better to use something like
const specPart = $SPEC ? ' --spec "$SPEC"' : ''
./node_modules/.bin/wdio test/wdio.conf.js + specPart
This will exclude wdio.conf.js copy-pasting + will give us an ability to add extra path parts.

@alexkrechik alexkrechik merged commit 1e3c551 into master Mar 11, 2018
@Marketionist Marketionist deleted the feature/add-spec-run branch March 11, 2018 13:59
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants