Skip to content
This repository has been archived by the owner on Nov 30, 2022. It is now read-only.

Commit

Permalink
Als ontwikkelaar wil ik de Test results in bamboo voor webcomponenten…
Browse files Browse the repository at this point in the history
… kunnen zien (#203)

* Initial commit

* Voeg npm run script toe

* Voeg path toe als dep en move build naar scripts folder

* Refactor

* Fix regex

* Refactor en toevoegen unit tests

* Refactor en unit testen

* Voeg wct-xunit dep toe

* Verplaats wct-xunit van devDependencies naar dependencies
Enable wct-xunit plugin in wct.local.conf

* Configure reporter via mocharc

* Geef reporter options door als array cfr mochajs/mocha#4225

* Fix pad naar result xml

* Config finetuning

* Installeer wct-mocha

* Verwijder wct-mocha (testen wilden niet meer runnen) en voeg wct-junit-converter als plugin toe

* Gebruik wct-xunit-reporter

* Fix paden

* Maak gitignore uniform en kopieer naar component

* Bugfix

* Bugfix

* Bugfix

* Bugfix

* Bugfix

* Bugfix

* Bugfix

* Kopieer gitignore en npmignore via templates omdat .gitignore en .npmginore niet in de gereleasde versie zitten

* copyfiles vervangen door cp

* Maak test result folder aan

* Verwijder intermediate folder results omdat de xunit plugin geen folders aanmaakt

* Verwijder intermediate folder results omdat de xunit plugin geen folders aanmaakt

* gitignore update

* Vervang rsync oplossing in docker-compose door gebruik te maken van dockerignore

* bugfix

* Expose test resultaten naar Bamboo

* Expose test resultaten naar Bamboo

* Merge with master

Co-authored-by: cambiph <philippe.cambien@gmail.com>
  • Loading branch information
cambiph and Incubusattax committed Sep 29, 2020
1 parent 8c0715f commit bd3c145
Show file tree
Hide file tree
Showing 16 changed files with 15,490 additions and 14,775 deletions.
320 changes: 312 additions & 8 deletions .gitignore
@@ -1,10 +1,314 @@
# Created by https://www.toptal.com/developers/gitignore/api/node,visualstudiocode,intellij,eclipse,git
# Edit at https://www.toptal.com/developers/gitignore?templates=node,visualstudiocode,intellij,eclipse,git

### Eclipse ###
.metadata
bin/
tmp/
*.tmp
*.bak
*.swp
*~.nib
local.properties
.settings/
.eclipse/
.project/
.vscode/
*.iml
.idea
/node_modules
package-lock.json
.loadpath
.recommenders

# External tool builders
.externalToolBuilders/

# Locally stored "Eclipse launch configurations"
*.launch

# PyDev specific (Python IDE for Eclipse)
*.pydevproject

# CDT-specific (C/C++ Development Tooling)
.cproject

# CDT- autotools
.autotools

# Java annotation processor (APT)
.factorypath

# PDT-specific (PHP Development Tools)
.buildpath

# sbteclipse plugin
.target

# Tern plugin
.tern-project

# TeXlipse plugin
.texlipse

# STS (Spring Tool Suite)
.springBeans

# Code Recommenders
.recommenders/

# Annotation Processing
.apt_generated/
.apt_generated_test/

# Scala IDE specific (Scala & Java development for Eclipse)
.cache-main
.scala_dependencies
.worksheet

# Uncomment this line if you wish to ignore the project description file.
# Typically, this file would be tracked if it contains build/dependency configurations:
#.project

### Eclipse Patch ###
# Spring Boot Tooling
.sts4-cache/

### Git ###
# Created by git for backups. To disable backups in Git:
# $ git config --global mergetool.keepBackup false
*.orig

# Created by git when using merge tools for conflicts
*.BACKUP.*
*.BASE.*
*.LOCAL.*
*.REMOTE.*
*_BACKUP_*.txt
*_BASE_*.txt
*_LOCAL_*.txt
*_REMOTE_*.txt

### Intellij ###
# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio, WebStorm and Rider
# Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839

# User-specific stuff
.idea/**/workspace.xml
.idea/**/tasks.xml
.idea/**/usage.statistics.xml
.idea/**/dictionaries
.idea/**/shelf

# Generated files
.idea/**/contentModel.xml

# Sensitive or high-churn files
.idea/**/dataSources/
.idea/**/dataSources.ids
.idea/**/dataSources.local.xml
.idea/**/sqlDataSources.xml
.idea/**/dynamic.xml
.idea/**/uiDesigner.xml
.idea/**/dbnavigator.xml

# Gradle
.idea/**/gradle.xml
.idea/**/libraries

# Gradle and Maven with auto-import
# When using Gradle or Maven with auto-import, you should exclude module files,
# since they will be recreated, and may cause churn. Uncomment if using
# auto-import.
# .idea/artifacts
# .idea/compiler.xml
# .idea/jarRepositories.xml
# .idea/modules.xml
# .idea/*.iml
# .idea/modules
# *.iml
# *.ipr

# CMake
cmake-build-*/

# Mongo Explorer plugin
.idea/**/mongoSettings.xml

# File-based project format
*.iws

# IntelliJ
out/

# mpeltonen/sbt-idea plugin
.idea_modules/

# JIRA plugin
atlassian-ide-plugin.xml

# Cursive Clojure plugin
.idea/replstate.xml

# Crashlytics plugin (for Android Studio and IntelliJ)
com_crashlytics_export_strings.xml
crashlytics.properties
crashlytics-build.properties
fabric.properties

# Editor-based Rest Client
.idea/httpRequests

# Android studio 3.1+ serialized cache file
.idea/caches/build_file_checksums.ser

### Intellij Patch ###
# Comment Reason: https://github.com/joeblau/gitignore.io/issues/186#issuecomment-215987721

# *.iml
# modules.xml
# .idea/misc.xml
# *.ipr

# Sonarlint plugin
# https://plugins.jetbrains.com/plugin/7973-sonarlint
.idea/**/sonarlint/

# SonarQube Plugin
# https://plugins.jetbrains.com/plugin/7238-sonarqube-community-plugin
.idea/**/sonarIssues.xml

# Markdown Navigator plugin
# https://plugins.jetbrains.com/plugin/7896-markdown-navigator-enhanced
.idea/**/markdown-navigator.xml
.idea/**/markdown-navigator-enh.xml
.idea/**/markdown-navigator/

# Cache file creation bug
# See https://youtrack.jetbrains.com/issue/JBR-2257
.idea/$CACHE_FILE$

# CodeStream plugin
# https://plugins.jetbrains.com/plugin/12206-codestream
.idea/codestream.xml

### Node ###
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
lerna-debug.log*

# Diagnostic reports (https://nodejs.org/api/report.html)
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json

# Runtime data
pids
*.pid
*.seed
*.pid.lock

# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov

# Coverage directory used by tools like istanbul
coverage
*.lcov

# nyc test coverage
.nyc_output

# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
.grunt

# Bower dependency directory (https://bower.io/)
bower_components

# node-waf configuration
.lock-wscript

# Compiled binary addons (https://nodejs.org/api/addons.html)
build/Release

# Dependency directories
node_modules/
jspm_packages/

# TypeScript v1 declaration files
typings/

# TypeScript cache
*.tsbuildinfo

# Optional npm cache directory
.npm

# Optional eslint cache
.eslintcache

# Microbundle cache
.rpt2_cache/
.rts2_cache_cjs/
.rts2_cache_es/
.rts2_cache_umd/

# Optional REPL history
.node_repl_history

# Output of 'npm pack'
*.tgz

# Yarn Integrity file
.yarn-integrity

# dotenv environment variables file
.env
.env.test

# parcel-bundler cache (https://parceljs.org/)
.cache

# Next.js build output
.next

# Nuxt.js build / generate output
.nuxt
dist

# Gatsby files
.cache/
# Comment in the public line in if your project uses Gatsby and not Next.js
# https://nextjs.org/blog/next-9-1#public-directory-support
# public

# vuepress build output
.vuepress/dist

# Serverless directories
.serverless/

# FuseBox cache
.fusebox/

# DynamoDB Local files
.dynamodb/

# TernJS port file
.tern-port

# Stores VSCode versions used for testing VSCode extensions
.vscode-test

### VisualStudioCode ###
.vscode/*
!.vscode/settings.json
!.vscode/tasks.json
!.vscode/launch.json
!.vscode/extensions.json
*.code-workspace

### VisualStudioCode Patch ###
# Ignore all local history of files
.history

# End of https://www.toptal.com/developers/gitignore/api/node,visualstudiocode,intellij,eclipse,git

## Custom
test/single/example/dist/
test/multiple/example/dist/
test/multiple/example/dist/
*.xml
5 changes: 4 additions & 1 deletion .mocharc-util.js
@@ -1,6 +1,9 @@
module.exports = {
"full-trace": true,
"reporter": 'spec',
"reporter": 'xunit',
"reporter-option": [
'output=../../test/util-results.xml'
],
"spec": ["test/**/*.test.js"],
"timeout": '10000'
};
5 changes: 4 additions & 1 deletion .mocharc.js
@@ -1,6 +1,9 @@
module.exports = {
"full-trace": true,
"reporter": 'spec',
"reporter": 'xunit',
"reporter-option": [
'output=../../test/e2e-results.xml'
],
"spec": ["../../test/**/*.test.js"],
"timeout": '10000'
};
4 changes: 4 additions & 0 deletions bamboo/templates/template.yml
Expand Up @@ -31,6 +31,10 @@ Build:
final-tasks:
- script:
/opt/scripts/docker/stop-docker-containers.sh
- test-parser:
type: junit
test-results:
- test
requirements:
- REMOTE_ONLY

Expand Down

0 comments on commit bd3c145

Please sign in to comment.