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
- off-core integration test on your local @W-18852148@ ([#435](https://github.com/salesforcecli/plugin-lightning-dev/issues/435)) ([34ed97f](https://github.com/salesforcecli/plugin-lightning-dev/commit/34ed97f136a8da520e037add61027a7ef6a68ffa))
This plugin includes integration (NUT) tests for verifying the Lightning Dev Server functionality using SFDX projects and components. Test data like SFDX projects are created at runtime by the testkit.
312
-
313
-
### Prerequisites
314
-
315
-
**Salesforce CLI Installation**
316
-
The Salesforce CLI must be installed and accessible in your system PATH before running integration tests locally. The plugin expects the `sf` command to be available during local test execution.
317
-
318
-
- Install the Salesforce CLI: https://developer.salesforce.com/tools/sfdxcli
319
-
- Verify installation: `sf --version`
320
-
321
-
**Connected App Setup**
322
-
Follow the [Connected App Setup Guide](https://developer.salesforce.com/docs/atlas.en-us.sfdx_dev.meta/sfdx_dev/sfdx_dev_auth_connected_app.htm) to:
323
-
324
-
- Create a connected app
325
-
- Enable JWT OAuth
326
-
- Configure callback URL and OAuth scopes
327
-
328
-
**JWT Credentials**
329
-
Follow the [Private Key and Certificate Setup Guide](https://developer.salesforce.com/docs/atlas.en-us.sfdx_dev.meta/sfdx_dev/sfdx_dev_auth_key_and_cert.htm) to:
330
-
331
-
- Generate a private key and certificate
332
-
- Upload certificate to the connected app
333
-
334
-
Set the environment variables (copy from `.env.template` to `.env`):
335
-
336
-
-`TESTKIT_JWT_CLIENT_ID` - Your connected app client ID
337
-
-`TESTKIT_JWT_KEY` - Your private key contents
338
-
-`TESTKIT_HUB_INSTANCE` - Salesforce instance URL
339
-
-`TESTKIT_ORG_USERNAME` - Your org username for testing
340
-
-`OPEN_BROWSER` - Control browser opening (true/false)
341
-
342
-
### Running Tests
343
-
344
-
Run all or specific integration tests (NUTs) via:
345
-
346
-
```bash
347
-
# Run all integration tests
348
-
yarn test:nuts
349
-
350
-
# Run component local preview test (local development only)
0 commit comments