Skip to content

Commit

Permalink
GITBOOK-635: No subject
Browse files Browse the repository at this point in the history
  • Loading branch information
mmatheson authored and gitbook-bot committed Nov 12, 2024
1 parent a41e6b7 commit ae7900a
Show file tree
Hide file tree
Showing 9 changed files with 3 additions and 37 deletions.
4 changes: 0 additions & 4 deletions flaky-tests/get-started/frameworks/bazel.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,3 @@ For example, a target named `//app/component:test` will generate a JUnit file at
## Next Step

JUnit files generated with Bazel are compatible with Trunk Flaky Tests. See [CI Providers](../ci-providers/) for a guide on how to upload test results to Trunk.

\


2 changes: 1 addition & 1 deletion flaky-tests/get-started/frameworks/cargo-nextest.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ layout:

Use `cargo-nextest` to run your Rust tests and output JUnit reports. Add this to your nextest configuration:

{% code title=".config/nextest.toml" fullWidth="false" %}
{% code fullWidth="false" %}
```toml
[profile.ci.junit] # this can be some other profile, too
path = "junit.xml"
Expand Down
20 changes: 0 additions & 20 deletions flaky-tests/get-started/frameworks/cypress.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@ layout:

Update your Cypress config to output JUnit reports:

{% tabs %}
{% tab title="JavaScript" %}
{% code title="cypress.config.js" %}
```javascript
const { defineConfig } = require('cypress')
Expand All @@ -35,24 +33,6 @@ module.exports = defineConfig({
})
```
{% endcode %}
{% endtab %}

{% tab title="Typescript" %}
{% code title="cypress.config.ts" %}
```typescript
import { defineConfig } from 'cypress'

export default defineConfig({
reporter: 'junit',
reporterOptions: {
mochaFile: 'results/junit.xml',
toConsole: true,
},
})
```
{% endcode %}
{% endtab %}
{% endtabs %}

## 2. Output Location

Expand Down
2 changes: 0 additions & 2 deletions flaky-tests/get-started/frameworks/jest.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ npm install --save-dev jest-junit

Update your Jest config to add `jest-junit` as a reporter:

{% code title="jest.config.json" %}
```json
{
"reporters": [
Expand All @@ -38,7 +37,6 @@ Update your Jest config to add `jest-junit` as a reporter:
]
}
```
{% endcode %}

## 2. Output Location

Expand Down
2 changes: 0 additions & 2 deletions flaky-tests/get-started/frameworks/karma.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ npm install --save-dev karma-junit-reporter

Add the `junit` reporter to your karma config file:

{% code title="karma.conf.js" %}
```javascript
module.exports = function(config) {
config.set(
Expand All @@ -40,7 +39,6 @@ module.exports = function(config) {
)
}
```
{% endcode %}

## 2. Output Location

Expand Down
4 changes: 2 additions & 2 deletions flaky-tests/get-started/frameworks/maven.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ layout:

## 1. Generate JUnit

Configure the `maven-surefire-plugin` plugin in your pom.xml file:
Configure the `maven-surefire-plugin` plugin in your `pom.xml` file:

<pre class="language-xml" data-title="pom.xml"><code class="lang-xml"><strong>&#x3C;build>
<pre class="language-xml"><code class="lang-xml"><strong>&#x3C;build>
</strong> &#x3C;plugins>
&#x3C;plugin>
&#x3C;groupId>org.apache.maven.plugins&#x3C;/groupId>
Expand Down
2 changes: 0 additions & 2 deletions flaky-tests/get-started/frameworks/minitest.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,10 @@ gem install minitest-reporters

Configure the `JUnitReporter` reporter in your `test_helper.rb` file:

{% code title="test_helper.rb" %}
```ruby
require "minitest/reporters"
Minitest::Reporters.use! Minitest::Reporters::JUnitReporter.new(:reports_dir => "results")
```
{% endcode %}

## 2. Output Location

Expand Down
2 changes: 0 additions & 2 deletions flaky-tests/get-started/frameworks/playwright.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ layout:

Configure Playwright to generate JUnit:

{% code title="playwright.config.ts" %}
```typescript
import { defineConfig } from '@playwright/test';

Expand All @@ -32,7 +31,6 @@ export default defineConfig({
],
});
```
{% endcode %}

## 2. Output Location

Expand Down
2 changes: 0 additions & 2 deletions flaky-tests/get-started/frameworks/vitest.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ layout:

Update your Vitest config to include the `junit` reporter:

{% code title="vitest.config.ts" %}
```typescript
import { defineConfig } from 'vitest/config';

Expand All @@ -32,7 +31,6 @@ export default defineConfig({
},
});
```
{% endcode %}

## 2. Output Location

Expand Down

0 comments on commit ae7900a

Please sign in to comment.