You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .docs/README.md
+44-16Lines changed: 44 additions & 16 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,10 +1,17 @@
1
-
Documentation
2
-
====
1
+
# Codeception
3
2
4
-
Arachne/Codeception is here to help you with Integration and [Functional Tests](http://codeception.com/docs/04-FunctionalTests) for your Nette application.
3
+
This library is here to help you with Integration and [Functional Tests](http://codeception.com/docs/04-FunctionalTests) for your Nette application.
When you want to write an integration test to make sure that some services work well together you need to create the DI container first.
10
17
@@ -14,7 +21,7 @@ error_level: "E_ALL"
14
21
class_name: IntegrationSuiteTester
15
22
modules:
16
23
enabled:
17
-
- Arachne\Codeception\Module\NetteDIModule:
24
+
- Contributte\Codeception\Module\NetteDIModule:
18
25
tempDir: ../_temp/integration
19
26
configFiles:
20
27
- config/config.neon
@@ -39,7 +46,7 @@ services:
39
46
use Codeception\Test\Unit;
40
47
class MyServiceTest extends Unit
41
48
{
42
-
public function testMyService()
49
+
public function testMyService(): void
43
50
{
44
51
// Here you can override the configFiles from integration.suite.yml if needed.
45
52
// The newContainerForEachTest option is required for this.
@@ -50,47 +57,68 @@ class MyServiceTest extends Unit
50
57
```
51
58
`useConfigFiles` method takes array of file paths that are either absolute or relative to suite root.
52
59
53
-
NetteApplicationModule
54
-
----
60
+
### NetteApplicationModule
55
61
56
62
In functional tests you want to emulate the HTTP request and run `Nette\Application\Application` to handle it.
57
63
58
-
Unfortunately Nette framework has some downsides like the fact that Request and Response are registered as services in the DI Container. For this reason the NetteApplicationModule requires `Arachne\Codeception\DI\CodeceptionExtension` to override the default implementations. **Beware that this is meant for the functional tests only. Do NOT register the extension outside of tests.**
64
+
Unfortunately Nette framework has some downsides like the fact that Request and Response are registered as services in the DI Container. For this reason the NetteApplicationModule requires `Contributte\Codeception\DI\CodeceptionExtension` to override the default implementations. **Beware that this is meant for the functional tests only. Do NOT register the extension outside of tests.**
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
[](https://packagist.org/packages/contributte/codeception)
0 commit comments