Skip to content
This repository has been archived by the owner on Nov 8, 2024. It is now read-only.

Add test suite #10

Merged
merged 8 commits into from
Jan 23, 2017
Merged

Conversation

gonzalo-bulnes
Copy link
Contributor

When I maintain the cross-language test suite
I want the features syntax to be validated automatically
So that no errors go unnoticed

See #9 (comment)

Note that this package is private. It is meant to be used to manage
the testing dependencies of the Dredd Hooks template test suite.

Usage:

    npm install
I think these are reasonable defaults.
Note that I turned the 'use-and' rule on, which wasn't previously
enforced.
The test suite can be executed from the dredd-hooks-template repo,
but should utlimately be copied to the language-specific project.

Also added a mention of example implementations.
@gonzalo-bulnes
Copy link
Contributor Author

For reference, here is a failing build, and a passing build.

@@ -74,13 +74,13 @@ Feature: Execution order
#}

"""
Given I set the environment variables to:
And I set the environment variables to:
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This change likely doesn't require updating the Dredd hooks repositories, it is only refactoring (and only has a minor impact on readability). I think the linting rule is good to have however, and this gave me the opportunity to check that the build was breaking as expected and the corresponding output was readable.

"url": "https://github.com/gonzalo-bulnes/dredd-hooks-template/issues"
},
"homepage": "https://github.com/gonzalo-bulnes/dredd-hooks-template#readme",
"private": true
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I made this package private, and followed the drafter.js example for the author and license fields.

@honzajavorek honzajavorek merged commit 395dc50 into apiaryio:master Jan 23, 2017
@honzajavorek
Copy link
Contributor

This is really great. Thanks!

@ApiaryBot
Copy link
Collaborator

🎉 This PR is included in version 1.0.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

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

Successfully merging this pull request may close these issues.

3 participants