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: .github/CONTRIBUTING.md
+13-10
Original file line number
Diff line number
Diff line change
@@ -7,13 +7,14 @@ Go over the steps in [this](https://github.com/firstcontributions/first-contribu
7
7
To start you need:
8
8
9
9
1. Fork and clone the repo.
10
-
2. Run `npm i --force --omit=optional` to install all required libraries
10
+
2. Run `npm i --force` to install all required libraries
11
11
3. Do the changes.
12
12
4. Add/Update Test (if possible)
13
13
5. Update documentation
14
-
6. Run `npm run docs` if you change the documentation
15
-
7. Commit and Push to your fork
16
-
8. Make Pull Request
14
+
6. Run `npm run def` if you changed the type definitions
15
+
7. Run `npm run docs` if you changed the documentation
16
+
8. Commit and Push to your fork
17
+
9. Make Pull Request
17
18
18
19
To run codeceptjs from this repo use:
19
20
@@ -27,7 +28,6 @@ To run examples:
27
28
node bin/codecept.js run -c examples
28
29
```
29
30
30
-
31
31
Depending on a type of change you should do the following.
32
32
33
33
## Debugging
@@ -44,12 +44,12 @@ Please keep in mind that CodeceptJS have **unified API** for Playwright, WebDriv
44
44
45
45
### Updating Playwright | Puppeteer | WebDriver
46
46
47
-
*Whenever a new method or new behavior is added it should be documented in a docblock. Valid JS-example is required! Do **not edit**`docs/helpers/`, those files are generated from docblocks in corresponding helpers! *
47
+
_Whenever a new method or new behavior is added it should be documented in a docblock. Valid JS-example is required! Do **not edit**`docs/helpers/`, those files are generated from docblocks in corresponding helpers! _
48
48
49
49
Working test is highly appreciated. To run the test suite you need:
*Whenever a new method or new behavior is added it should be documented in a docblock. Valid JS-example is required!*
85
+
_Whenever a new method or new behavior is added it should be documented in a docblock. Valid JS-example is required!_
86
86
87
87
Adding a test is highly appreciated.
88
88
@@ -96,7 +96,7 @@ Edit a test at `test/rest/REST_test.js` or `test/rest/ApiDataFactory_test.js`
96
96
97
97
## Appium
98
98
99
-
*Whenever a new method or new behavior is added it should be documented in a docblock. Valid JS-example is required! Do **not edit**`docs/helpers/`, those files are generated from docblocks in corresponding helpers! *
99
+
_Whenever a new method or new behavior is added it should be documented in a docblock. Valid JS-example is required! Do **not edit**`docs/helpers/`, those files are generated from docblocks in corresponding helpers! _
100
100
101
101
It is recommended to run mobile tests on CI.
102
102
So do the changes, make pull request, see the CI status.
@@ -211,6 +211,7 @@ docker-compose run --rm test-helpers test/rest
211
211
```
212
212
213
213
#### Run acceptance tests
214
+
214
215
To that we provide three separate services respectively for WebDriver, Nightmare and Puppeteer tests:
215
216
216
217
```sh
@@ -235,11 +236,13 @@ And now every command based on `test-helpers` service will use node 9.4.0. The
235
236
same argument can be passed when building unit and acceptance tests services.
236
237
237
238
### CI flow
239
+
238
240
We're currently using a bunch of CI services to build and test codecept in
239
241
different environments. Here's short summary of what are differences between
240
242
separate services
241
243
242
244
#### CircleCI
245
+
243
246
Here we use CodeceptJS docker image to build and execute tests inside it. We
244
247
start with building Docker container based on Dockerfile present in main project
245
248
directory. Then we run (in this order) unit tests, all helpers present in
0 commit comments