Commit Graph

63 Commits

Author SHA1 Message Date
wuchen90
65cd3478b2 fix: allow to use parameter resolution in configuration for bootstrap key
In PhpStorm, I've got an issue with path resolution for the bootstrap file.
I don't know why the path in which Behat runs is always the folder `features`.
So Behat always fails trying to look for `/project/root/path/features/config/bootstrap.php`.

With this fix, bootstrap file will be resolved based on the base path.
Plus, people will be allowed to use the parameter `%paths.base%` to define a custom bootstrap file path.
E.g.:

```yaml
default:
  extensions:
    FriendsOfBehat\SymfonyExtension:
      bootstrap: '%paths.base%/custom/bootstrap.php'
```
2024-06-20 17:19:24 +02:00
Matthias Pigulla
933333991b Add remarks regarding accessing the latest instances of services in the driver's container after a reboot 2022-11-27 10:10:12 +00:00
Matthias Pigulla
f1971fde57 * Reset also fob_symfony.driver_kernel between scenarios
* Make sure reset() for the Mink driver implementation creates new KernelBrowser instances, to achieve consistent reboots of the `fob_symfony.driver_kernel` when making more than one request within a single scenario
2022-11-26 09:26:34 +00:00
Matthias Pigulla
5ca39f87ff Fix the build pipeline in GitHub Actions 2022-11-24 19:08:50 +01:00
DonCallisto
1c3d12015f Creating a failing test for #88 2021-12-14 12:58:54 +01:00
javer
a063036c13 Add Symfony 6 support 2021-12-13 14:35:43 +02:00
Geoffrey Bachelet
880893206f Fallback to configured environment when no server/env environment is found 2020-04-28 19:01:56 -04:00
Kamil Kokot
0f906e1156 Browser integration 2020-04-04 22:07:00 +02:00
Kamil Kokot
e94285dc0b Fix coding standard 2020-04-04 15:44:41 +02:00
Kamil Kokot
b05304858c Introduce a service in the test application that exposes driver's service container 2020-04-04 15:26:02 +02:00
Kamil Kokot
776af6cc38 Describe accessing driver's service container 2020-04-04 15:13:01 +02:00
Kamil Kokot
019557e8e3 Try to run tests with Behat @ dev-master 2020-01-15 18:54:07 +01:00
Kamil Kokot
6d40a32f7c Add integration with FriendsOfBehat/PageObjectExtension 2020-01-13 19:45:44 +01:00
Kamil Kokot
f0035b1087 Merge branch '2.0'
* 2.0:
  Generate changelog for v2.0.10
  Fix referencing context initializers
  Add conflict with symfony/stopwatch ^5.0
  Fix the build & add tests for Symfony 4.3 and 4.4
2019-12-09 13:13:33 +01:00
Alexander Kurilo
06104478cc Fix referencing context initializers
With definition, that has been used instead of reference, container has
used to created 2 instances of initializer: one with service id, and one
"anonymous", described by spl_object_hash in a container, it breaked
stateful initializers: in my case initializer was also used to reset
state before next scenario/example, and initializing and resetting happened
with different instances of initializer
2019-12-09 13:01:40 +01:00
Kamil Kokot
ab61dbaa39 Provide simple BrowserKit integration 2019-08-25 18:34:54 +02:00
Kamil Kokot
24a318dc6d Merge branch '2.0'
* 2.0:
  Generate changelog for v2.0.8
  Initialize contexts registered as services
2019-03-21 17:26:59 +01:00
Kamil Kokot
a425be697a Initialize contexts registered as services 2019-03-21 17:16:23 +01:00
Kamil Kokot
6170d09b42 Merge branch '2.0'
* 2.0:
  Fix bug preventing changes of Mink default session service
2019-03-15 15:37:04 +01:00
Kamil Kokot
01fe9425a1 Fix bug preventing changes of Mink default session service 2019-03-15 15:21:36 +01:00
Kamil Kokot
8d554a8a32 Merge branch '2.0'
* 2.0:
  Generate changelog for v2.0.4 and v2.0.5
  Allow accessing a context in another context
2019-03-04 14:14:22 +01:00
Kamil Kokot
13d64ca7cb Allow accessing a context in another context 2019-03-04 13:32:16 +01:00
Kamil Kokot
d61600f563 Expose the Mink service 2019-02-13 17:02:21 +01:00
Alan Poulain
8a972b5b48 Apply suggestions from code review
Co-Authored-By: pamil <kamil@kokot.me>
2019-02-13 12:29:55 +01:00
Kamil Kokot
d74cd251d5 Add more sanity checks 2019-02-12 23:42:41 +01:00
Kamil Kokot
9e9529c320 Add tests for context initializers 2019-02-12 23:06:19 +01:00
Kamil Kokot
cd792704fa Add support for class resolvers 2019-02-12 22:56:42 +01:00
Kamil Kokot
717c869ad6 Revert mink parameters autoconfiguration 2019-02-07 11:58:17 +01:00
Kamil Kokot
394b9abdfc Fix support for context initializers 2019-01-30 17:10:20 +01:00
Kamil Kokot
de59f04531 Fallback to the "test" environment if no server/env variable is set 2019-01-16 22:28:49 +01:00
Kamil Kokot
f736a4aaf1 Allow "APP_ENV" and "APP_DEBUG" server/env variables set in bootstrap to affect kernel arguments 2019-01-16 21:30:11 +01:00
Kamil Kokot
39cdb2074a Allow to configure kernel using server & env variables 2019-01-16 17:19:36 +01:00
Łukasz Chruściel
bae9a26443 Merge pull request #45 from pamil/configuration-on-steroids
Configuration for kernel and bootstrap file & user-friendly autodiscovery
2019-01-11 13:41:48 +01:00
Kamil Kokot
d6701d785c Implement bootstrap file autodiscovering 2019-01-11 00:24:59 +01:00
Kamil Kokot
fa3c02720c Implement bootstrap loading 2019-01-11 00:10:32 +01:00
Kamil Kokot
be8081d580 Allow to configure the application kernel's debug setting 2019-01-10 23:29:11 +01:00
Kamil Kokot
8dcd3e9d4d Allow to configure the application kernel's custom environment 2019-01-10 23:25:19 +01:00
Kamil Kokot
01f458149e Test default kernel configuration 2019-01-10 23:22:06 +01:00
Kamil Kokot
7687e756f1 Implement kernel autodiscovering 2019-01-10 23:03:02 +01:00
Kamil Kokot
ab70d2993d Test loading kernel based on classname and path 2019-01-10 22:47:17 +01:00
Kamil Kokot
3f7f9ccdbb Test loading kernel based on classname 2019-01-10 22:43:54 +01:00
Kamil Kokot
3c91f0af7d Test: Using context by its service id 2019-01-10 22:09:17 +01:00
Kamil Kokot
9ea3ac6f30 Reorganise feature files 2019-01-10 22:01:48 +01:00
Kamil Kokot
6061eaaf62 Test Mink integration 2019-01-09 23:47:24 +01:00
Kamil Kokot
c8b0cbb205 Test isolating contexts 2019-01-09 23:15:52 +01:00
Kamil Kokot
b4bcbb1233 Test autowired & autoconfigured contexts 2019-01-09 23:02:55 +01:00
Kamil Kokot
d5fcb25ef2 Test autowiring contexts 2019-01-09 22:53:39 +01:00
Kamil Kokot
9cede4d612 Test injecting services 2019-01-09 22:40:32 +01:00
Kamil Kokot
d4efe9a6df Simplify services definition in Behat 2019-01-09 22:37:18 +01:00
Kamil Kokot
11f5a326b3 Test injecting parameters 2019-01-09 22:35:57 +01:00