Commit Graph

50 Commits

Author SHA1 Message Date
Odei Alba 15c7a4bd57 MDL-46778 behat: Allow different database for behat 2021-09-02 14:56:12 +02:00
Andrew Nicols 41eaa09bbe MDL-67687 behat: Make axe tests optional 2020-08-04 18:56:57 +08:00
Jun Pataleta 7c2b9ffcf6 MDL-64597 behat: Properly import behat_util when dropping parallel sites 2019-01-24 12:50:29 +08:00
Andrew Nicols a7d75ba5c8 MDL-60965 behat: Correct strlen use 2017-12-05 11:18:58 +08:00
Rajesh Taneja 36cc9f8e37 MDL-54628 behat: Set behat dir for each run under behat_dataroot
Before this patch behat_dataroot for parallel runs
were created at same level as ->behat_dataroot
After this patch, it will be created 1 level under
->behat_dataroot with BEHAT_PARALLEL_SITE_NAME
prefix and run number as suffix. This will allow
common files as test enabled and parallel run info
to be saved in parent directory and access it easily.
2017-01-30 08:51:53 +08:00
Rajesh Taneja e1ad3a959d MDL-55924 behat: Add core features to specified theme's 2016-10-07 10:55:41 +08:00
Rajesh Taneja f32c2fd781 MDL-55986 behat: use double quotes not single
On windows we need option value to be in
double quotes, else it fails
2016-10-06 15:03:56 +08:00
Rajesh Taneja b04ca8c8a1 MDL-55986 behat: Added option to optimize parallel runs by tags
run.php should only be used for running behat
before this patch if tags were passed, then behat.yml
was being re-written with features havings tags.
As this is not ideal, this option is now removed and
features with tags will be optimally split
by init.php when --optimize-run option is passed
2016-10-03 15:38:04 +08:00
Rajesh Taneja 14f3abee2e MDL-55072 behat: Changed option to run-with-theme 2016-08-25 08:36:08 +08:00
Rajesh Taneja 5aa9b5cee3 MDL-55072 behat: Added support for overriding theme tests 2016-08-24 08:57:15 +08:00
Rajesh Taneja 91a96d402a MDL-49772 behat: Added support to updatestep file by parallel run 2015-05-21 13:24:29 +08:00
Rajesh Taneja 72bac0d3f2 MDL-49456 behat: Fixed following issues in parallel run
1. Parallel run without feature should exit with success
2. Updated exit codes to be more clear for each process
3. Fixed wwwroot and dataroot while executing with tags
4. Added support for running scenario/feature
5. Added support for or'ing tags
6. Added support for running single behat site
7. Fixed wrong example in help
8. Use parallel run only when parallel > 1
9. Exit showing behat site is not installed
10. Exit with error, if not a valid option
11. Added usage in help to explain how to use command
12. run.php should be able to run from any path
13. Pass all arguments to single run
2015-04-16 15:44:25 +08:00
Rajesh Taneja 5b9e6b5526 MDL-39752 behat: Added support for behat_wwwroot and behat_dataroot 2015-03-09 07:49:25 +08:00
Rajesh Taneja b1c36d966e MDL-39752 behat: for drop option don't have to pass parallel option 2015-03-09 07:11:57 +08:00
Rajesh Taneja b32b2284fe MDL-39752 behat: Show output of failed install process 2015-03-09 07:11:57 +08:00
Rajesh Taneja 1bff616611 MDL-39752 behat: Added Fromrun and torun for running on multiple vms
https://circleci.com
2015-03-09 07:11:56 +08:00
Rajesh Taneja 027212b034 MDL-39752 behat: Use symfony2/process 2015-03-09 06:52:54 +08:00
Rajesh Taneja 3c71c15c26 MDL-39752 behat: Modified following for parallel run:
1. Create behat datadir within behat_dataroot not at same level
2. Define suffix for link and not use hard-coded values
3. Renamed ns_parallel to run.php
4. Rename variables to best understand them
5. Added support for each run to specify db, prefix, rerun and profile.
6. Showing number of steps in each line of parallel run.
2015-03-09 06:52:54 +08:00
Tony Levi 08e7f97ee4 MDL-39752 behat: Parallel execution support 2015-03-09 06:52:54 +08:00
David Monllao 19a40b1468 MDL-43461 behat: Using linux-style directory separators when using cygwin 2014-01-14 13:10:40 +08:00
Petr Skoda 9bb80d2005 MDL-43213 fix init regression and remove $checkphp parameter 2013-12-19 13:11:25 +08:00
Petr Škoda 60129d5d1f MDL-43213 try to simplify behat config and init code
1/ always require 3 behat settings - $CFG->behat_wwwroot, $CFG->behat_dataroot and $CFG->behat_prefix
2/ cleanup init code
3/ do not require $CFG->wwwroot and $CFG->dataroot on test sites
4/ remove switch completely - the most confusing part for me
5/ print out behat_wwwwroot in init script so that you can test the test site manually
2013-12-13 14:03:04 +08:00
David Monllao 677b2e79f1 MDL-41592 general: Also checking the site path 2013-12-02 14:18:10 +08:00
David Monllao 7f7a91e4ce MDL-41592 behat: Config settings more flexible
Adding the option to just set ->behat_wwwroot to
allow switching to the behat test site.
2013-12-02 14:18:10 +08:00
Petr Škoda e87214bda7 MDL-42078 multiple uninstall improvements and cleanup
Includes:
* update checker refactored to \core\update\ namespace
* plugininfo classes refactored to \core\plugininfo\ namespace
* plugin_manager renamed to core_plugin_manager
* redirect back to original page after plugin uninstall
* fixed assign subplugin uninstall
* move assign subplugins under the assignment in admin tree
* fixed plugininfo for all question related plugin types
* auth uninstall support
* added missing block dependencies
* added theme uninstall
* subplugin types are following the plugin on plugin overview page
* several performance improvements in plugin manager
* new warnigns when plugininfo are outdated or missing
* multiple fixes and other improvements
2013-10-07 13:10:36 +02:00
Dan Poltawski 7a3f9421cb Merge branch 'w30_MDL-40545_m26_localcachedir' of https://github.com/skodak/moodle 2013-07-22 15:47:48 +08:00
Dan Poltawski 51425cc045 Merge branch 'MDL-39441_master' of git://github.com/dmonllao/moodle 2013-07-22 10:45:42 +08:00
Petr Škoda 85b3806114 MDL-40545 add $CFG->localcachedir intended for local caching on cluster nodes 2013-07-20 14:10:25 +02:00
David Monllao f38e22ed91 MDL-39441 behat: Restrict config.php allowed settings 2013-07-18 10:40:47 +02:00
Petr Škoda d7245e3400 MDL-40475 add alternative component cache location and other improvements
Improvements include:
* Alternative location might be useful when server administrator wants to maintain
  a local copy of component cache instead of using shared $CFG->cachedir.
* Component caching is now enabled in behat tests which should improve performance.
* Standardised ignoring of component caching.
* Fixed debug mode in ABORT_AFTER_CONFIG scripts.
* General documentation improvements.
2013-07-12 13:05:41 +02:00
Petr Škoda 2cc9fa88f6 MDL-39343 disables MUC caches in phpunit and behat install/drop 2013-04-30 15:05:53 +02:00
David Monllao 355a2c2c25 MDL-38524 behat: Add fake jsrev and themerev
The behat admin tool does not use moodle database
as it runs before anything else, it should set
CFG->jsrev and CFG->themerev as they are required.
2013-03-21 16:34:55 +08:00
David Monllao bceb65ee2d MDL-38307 behat: Remove notices 2013-03-08 12:29:59 +08:00
David Monllao ac41f878da MDL-38007 behat: Adding new script using util.php 2013-03-01 10:50:22 +08:00
David Monllao a3b4d42b45 MDL-38009 behat: Reset cachedir and tempdir 2013-02-14 16:28:05 +08:00
David Monllao b048f85f8a MDL-37886 behat: Prevent dropping test site when running tests 2013-02-06 11:20:09 +08:00
David Monllao 096858ed83 MDL-37046 behat: Use behat test env
Moving from phpunit test environment
to a specific behat test environment
2013-01-29 08:40:38 +08:00
David Monllao b5c130092b MDL-37046 behat: Split in different classes 2013-01-29 08:40:38 +08:00
David Monllao ff2ec29bb1 MDL-37046 behat: Added to standard plugins list 2013-01-29 08:40:38 +08:00
David Monllao 0b5f481bf5 MDL-37046 behat: Externalizations
Instead of starting the PHP web server and calling
behat as a passthru we maintain them as standalone
2013-01-29 08:40:37 +08:00
David Monllao a09534f4fc MDL-37046 behat: Requires Moodle 2.5
Also more code comments and general cleanup
2013-01-29 08:40:37 +08:00
David Monllao d46340eb16 MDL-37046 behat: Adding steps definitions list filters 2013-01-29 08:40:36 +08:00
David Monllao 25833ef86e MDL-37046 behat: CLI option to add/remove javascript tests 2013-01-29 08:40:36 +08:00
David Monllao cca2c80630 MDL-37046 behat: Restricting the execution to the built-in server 2013-01-29 08:40:36 +08:00
David Monllao 603c95dc10 MDL-37046 behat: User interface 2013-01-29 08:40:36 +08:00
David Monllao 554820dd52 MDL-37046 behat: Moving installation instructions to MDocs 2013-01-29 08:40:36 +08:00
David Monllao 8cdc0ce8a4 MDL-37046 behat: Integrating build config file into runtests action 2013-01-29 08:40:36 +08:00
David Monllao 6d994c510f MDL-37046 behat: Adding CLI options 2013-01-29 08:40:36 +08:00
David Monllao 33005f689c MDL-37046 behat: Adding build config file action 2013-01-29 08:40:36 +08:00
David Monllao ecbd3cbe70 MDL-37046 behat: CLI tool 2013-01-29 08:40:35 +08:00