-
Notifications
You must be signed in to change notification settings - Fork 824
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
New module for testing edgecases #9712
Comments
An example where this module would be used: silverstripe/silverstripe-admin#1122 |
Another way to frame this is "we're able to provide code to support test fixtures specifically for behat / end-to-end tests on a per-module basis" Providing a separate package that is installed by travis but not require-dev the proposed solution here, which assumes:
|
So a I don't like the idea of having a module that the Behat tests rely on, but isn't included in Can't we just ignore |
If there are edge cases that the framework allows, I'd say the tests for those should be in the framework's test suite, otherwise, as @ScopeyNZ says, you may break things you don't know about. |
This is a fair point - it should remain possible to run a module's Behat tests locally without manual work (beyond the headache of getting Behat itself working.) Implicitly depending on a module through Travis config would break that assumption. |
Overview
Maintainers occasionally come across edge-cases in features where custom code is required to enable writing Behat / functional tests. Adding this code to frameworktest is an option, but that module is littered with a range of code that isn't strictly in service of enabling features for testing purposes. Marking objects as
TestOnly
is also an unsuitable solution for Behat testing.We'd like to look at creating a new module which could hold objects for enabling testing of edge-case features, and other custom code that wouldn't make sense to go into frameworktest.
ACs
The text was updated successfully, but these errors were encountered: