Skip to content

Commit

Permalink
updated reference tags
Browse files Browse the repository at this point in the history
  • Loading branch information
spider-sauce committed Dec 10, 2020
1 parent 6ee7b71 commit 249bcde
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 22 deletions.
16 changes: 2 additions & 14 deletions docs/dev/testrunner-toolkit/configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ title: Testrunner Configuration
sidebar_label: Configuration
---

import ClientOnly from './ClientOnly'
import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';

Expand Down Expand Up @@ -61,69 +60,58 @@ Below are framework-specific configuration examples that exist in the [Testrunne
]}>

<TabItem value="puppeteer">
<ClientOnly>

```yaml reference
https://github.com/saucelabs/testrunner-toolkit/blob/master/.sauce/puppeteer.yml
```

</ClientOnly>
</TabItem>
<TabItem value="playwright">
<ClientOnly>

```yaml reference
https://github.com/saucelabs/testrunner-toolkit/blob/master/.sauce/playwright.yml
```

</ClientOnly>
</TabItem>
<TabItem value="testcafe">
<ClientOnly>

```yaml reference
https://github.com/saucelabs/testrunner-toolkit/blob/master/.sauce/testcafe.yml
```

</ClientOnly>
</TabItem>
<TabItem value="cypress">
<ClientOnly>

```yaml reference
https://github.com/saucelabs/testrunner-toolkit/blob/master/.sauce/cypress.yml
```
</ClientOnly>

</TabItem>
</Tabs>

## Prepare your environment

Saucectl offers the possibility to set up your tests environment before executing any of your suites using `beforeExec`:

<ClientOnly>

```yaml reference
https://github.com/saucelabs/saucectl/blob/master/.sauce/puppeteer_before_exec.yml#L14-L15
```

</ClientOnly>

## Parallelization

Saucectl is capable of running tests in parallel by utilizing multiple CI machines. _This feature requires a Sauce Labs account_, so don't forget to set the environment variables `SAUCE_USERNAME` and `SAUCE_ACCESS_KEY`!

Parallelization can be turned on either via the config:

<ClientOnly>

```yaml reference
https://github.com/saucelabs/saucectl/blob/master/.sauce/puppeteer_parallel.yml#L21
```

</ClientOnly>

or the CLI

```bash
saucectl run --parallel
```
Expand Down
16 changes: 8 additions & 8 deletions docs/dev/testrunner-toolkit/integrations.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ Also, with the `suites` field you can specify groups of tests, as well as the pr

<TabItem value="puppeteer">

```sh
```yaml
apiVersion: v1alpha
metadata:
name: Testing Puppeteer Support
Expand All @@ -58,7 +58,7 @@ sauce:
</TabItem>
<TabItem value="playwright">
```sh
```yaml
apiVersion: v1alpha
metadata:
name: Testing Playwright Support
Expand All @@ -84,7 +84,7 @@ sauce:
</TabItem>
<TabItem value="testcafe">
```sh
```yaml
apiVersion: v1alpha
metadata:
name: Testing TestCafe Support
Expand All @@ -110,7 +110,7 @@ sauce:
</TabItem>
<TabItem value="cypress">
```sh
```yaml
apiVersion: v1alpha
metadata:
name: Testing Cypress Support
Expand Down Expand Up @@ -353,7 +353,7 @@ In the examples below, the environment variables (`env`) equate to the values co

<TabItem value="puppeteer">

```sh
```yaml
name: Puppeteer Pipeline Browser Tests
on:
pull_request:
Expand Down Expand Up @@ -385,7 +385,7 @@ jobs:
</TabItem>
<TabItem value="playwright">

```sh
```yaml
name: Playwright Pipeline Browser Tests
on:
pull_request:
Expand Down Expand Up @@ -417,7 +417,7 @@ jobs:
</TabItem>
<TabItem value="testcafe">

```sh
```yaml
name: TestCafe Pipeline Browser Tests
on:
pull_request:
Expand Down Expand Up @@ -449,7 +449,7 @@ jobs:
</TabItem>
<TabItem value="cypress">

```sh
```yaml
name: Cypress Pipeline Browser Tests
on:
pull_request:
Expand Down

0 comments on commit 249bcde

Please sign in to comment.