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
The framework aims to equip you with all the necessary tools to write end-to-end system-level tests, while still allowing the flexibility to mock third-party services that are not critical to your testing scope.
3
+
The framework aims to equip you with all the necessary tools to write end-to-end system-level tests, while still allowing the flexibility to fake third-party services that are not critical to your testing scope.
4
4
5
-
## Configuration
5
+
## Local Usage without Docker (Go runtime)
6
6
```toml
7
7
[fake]
8
8
# port to start Gin server
9
9
port = 9111
10
10
```
11
11
12
-
## Usage
13
-
14
12
See [full](https://github.com/smartcontractkit/chainlink-testing-framework/blob/main/framework/examples/myproject/fake_test.go) example.
15
13
14
+
Run it
15
+
```
16
+
CTF_CONFIGS=fake.toml go test -v -run TestFakes
17
+
```
18
+
16
19
<divclass="warning">
17
20
18
-
`host.docker.internal` is docker platform dependent!
21
+
`host.docker.internal` is Docker platform dependent!
19
22
20
23
Use `framework.HostDockerInternal()` to reference `host.docker.internal` in your tests, so they can work in GHA CI
21
24
</div>
25
+
26
+
## Dockerized Usage
27
+
28
+
Copy this example into your project, write the logic of fake, build and upload it and run.
29
+
30
+
## Install
31
+
32
+
To handle some utility command please install `Taskfile`
33
+
```
34
+
brew install go-task
35
+
```
36
+
37
+
## Private Repositories (Optional)
38
+
39
+
If your tests are in a private repository please generate a new SSH key and add it on [GitHub](https://github.com/settings/keys). Don't forget to click `Configure SSO` in UI
0 commit comments