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 example above is for a set of unauthenticated endpoints. You can add
102
+
[ZCAP](https://w3c-ccg.github.io/zcap-spec/)
103
+
or [OAuth2 authentication](https://oauth.net/2/client-authentication/) to your endpoints.
104
+
105
+
See
106
+
[Adding a new implementation](https://github.com/w3c/vc-test-suite-implementations/tree/main?tab=readme-ov-file#adding-a-new-implementation)
107
+
for more information.
108
+
109
+
### Testing Locally
110
+
111
+
To test a single implementation or endpoint running locally, you can
112
+
copy `localConfig.example.cjs` to `localConfig.cjs`
113
+
in the root directory of the test suite.
114
+
115
+
```bash
116
+
cp localConfig.example.cjs localConfig.cjs
117
+
```
118
+
119
+
This file must be a CommonJS module that exports an object containing a
120
+
`settings` object (for configuring the test suite code itself) and an
121
+
`implementations` array (for configuring the implementation(s) to test against).
122
+
123
+
The format of the object contained in the `implementations` array is
124
+
identical to the one defined in
125
+
[the **_Testing locally_** section of VC Test Suite Implementations](https://github.com/w3c/vc-test-suite-implementations?tab=readme-ov-file#testing-locally).
126
+
The `implementations` array may contain more than one implementation object,
127
+
enabling you to test multiple implementations in one run.
128
+
129
+
```js
130
+
// localConfig.cjs defines local implementations
131
+
// Before running the tests, you can specify a BASE_URL, such as
132
+
// BASE_URL=http://localhost:40443/zDdfsdfs npm test
It's also possible to generate local allure reports for analyzing and debugging results. [Allure](https://allurereport.org/) is a language agnostic reporting framework which enables useful features for developers and test-suite designers.
161
+
162
+
To run the tests and browse the report, use the following commands:
163
+
```bash
164
+
# Running the tests
165
+
npx mocha tests/
166
+
167
+
# Running the reporting server
168
+
allure serve allure-results
169
+
```
170
+
171
+
## Implementation
172
+
60
173
### Test Suite HTTP API
61
174
62
175
@@ -260,118 +373,6 @@ HTTP/1.1 200 OK
260
373
The presentation verifier endpoint is based on the
261
374
[VC API Verify Presentation](https://w3c-ccg.github.io/vc-api/#verify-presentation) endpoint.
262
375
263
-
#### Required Contexts
264
-
265
-
Implementations are expected to not error when any of the following context
266
-
files are used in a verifiable credential or a verifiable presentation:
To test a single implementation or endpoint running locally, you can
280
-
copy `localConfig.example.cjs` to `localConfig.cjs`
281
-
in the root directory of the test suite.
282
-
283
-
```bash
284
-
cp localConfig.example.cjs localConfig.cjs
285
-
```
286
-
287
-
This file must be a CommonJS module that exports an object containing a
288
-
`settings` object (for configuring the test suite code itself) and an
289
-
`implementations` array (for configuring the implementation(s) to test against).
290
-
291
-
The format of the object contained in the `implementations` array is
292
-
identical to the one defined in
293
-
[the **_Testing locally_** section of VC Test Suite Implementations](https://github.com/w3c/vc-test-suite-implementations?tab=readme-ov-file#testing-locally).
294
-
The `implementations` array may contain more than one implementation object,
295
-
enabling you to test multiple implementations in one run.
296
-
297
-
```js
298
-
// localConfig.cjs defines local implementations
299
-
// Before running the tests, you can specify a BASE_URL, such as
300
-
// BASE_URL=http://localhost:40443/zDdfsdfs npm test
It's also possible to generate local allure reports for analyzing and debugging results. [Allure](https://allurereport.org/) is a language agnostic reporting framework which enables useful features for developers and test-suite designers.
323
-
324
-
To run the tests and browse the report, use the following commands:
325
-
```bash
326
-
# Running the tests
327
-
npx mocha tests/
328
-
329
-
# Running the reporting server
330
-
allure serve allure-results
331
-
```
332
-
333
-
## Implementation
334
-
335
-
To add your implementation to this test suite, add a test manifest describing
0 commit comments