Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
d8f7ddde
Commit
d8f7ddde
authored
Oct 26, 2021
by
Marcel van Remmerden
Committed by
Evan Read
Oct 26, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add mocha to javascript examples
parent
8117335f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
0 deletions
+18
-0
doc/ci/unit_test_reports.md
doc/ci/unit_test_reports.md
+18
-0
No files found.
doc/ci/unit_test_reports.md
View file @
d8f7ddde
...
...
@@ -290,6 +290,24 @@ javascript:
-
junit.xml
```
#### Mocha
The
[
JUnit Reporter for Mocha
](
https://github.com/michaelleeallen/mocha-junit-reporter
)
NPM package can generate test reports for JavaScript
applications.
In the following
`.gitlab-ci.yml`
example, the
`javascript`
job uses Mocha to generate the test reports:
```
yaml
javascript
:
stage
:
test
script
:
-
mocha --reporter mocha-junit-reporter --reporter-options mochaFile=junit.xml
artifacts
:
when
:
always
reports
:
junit
:
-
junit.xml
```
### Flutter / Dart example
This example
`.gitlab-ci.yml`
file uses the
[
JUnit Report
](
https://pub.dev/packages/junitreport
)
package to convert the
`flutter test`
output into JUnit report XML format:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment