-
Notifications
You must be signed in to change notification settings - Fork 6
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
Add functional tests #35
Conversation
Hi @zabil, I've created this PR as per our earlier discussion. Very grateful if you can take a look, please 🙂 |
bf30e42
to
27694da
Compare
The functional tests are themselves Gauge tests. The scaffolding for the tests has been lifted and shifted from the [gauge-tests][1] repository. When adding more Spectacle functional tests definitely browse the `gauge-tests` repository for inspiration and ideas. This commit only adds a small number of functional tests with limited coverage of Spectacle's functionality, but as these are the first functional tests for Spectacle there is still significant value from a regression prevention perspective. Further tests can be added in future commits if deemed useful. The functional tests run on every push and pull request, triggered by a GitHub Action. [1]: https://github.com/getgauge/gauge-tests Signed-off-by: John Boyes <[email protected]>
27694da
to
a676fa7
Compare
Hi @zabil, v grateful indeed if you or one of the team is able to have a look at this whenever you have time, please - much appreciated if you have time. |
Hey @johnboyes I was trying to run it locally and make sense of the files.
It only runs the specs related to spectacle which is great. However, there's step implementation around testing other langauge runners in the implemetation for example https://github.com/getgauge/spectacle/pull/35/files#diff-0e0a20cb6653d09e61a3f338a5c2dd395af8533e916d76a6fe2c757541f22d98R20 Is it possible to modify the PR and only have code related to testing the scenarios above? Also it will be good to add the following to the
|
Signed-off-by: John Boyes <[email protected]>
Signed-off-by: John Boyes <[email protected]>
Hi @zabil, thanks for the comment. I've updated the |
I do see duplicate code, but I think that is fine. I think both these should evolve separately. I made a few changes to this PR locally around removing env files and modifying the github action and readme. I can't seem to commit these changes to your branch due to permissions. Maintainers can push to the PR branch provided an option is checked while creating a PR https://tighten.co/blog/adding-commits-to-a-pull-request/ Can you enable that if you are ok? I could also make a patch and send it along. |
Thanks, I'd be happy to enable that setting but it doesn't work unfortunately in this case, because my fork is on my organisation account, not my individual account. So would definitely welcome a patch, please - sorry for the hassle! |
* Use the default env configuration * Only use the java langauge runner * Modify github actions to use java Signed-off-by: Zabil Cheriya Maliackal <[email protected]>
The functional tests are themselves Gauge tests.
The scaffolding for the tests has been lifted and shifted from the
gauge-tests repository. When adding more Spectacle functional tests
definitely browse the
gauge-tests
repository for inspiration andideas.
This commit only adds a small number of functional tests with limited
coverage of Spectacle's functionality, but as these are the first
functional tests for Spectacle there is still significant
value from a regression prevention perspective. Further tests can be
added in future commits if deemed useful.
The functional tests run on every push and pull request, triggered by
a GitHub Action.
Signed-off-by: John Boyes [email protected]