Skip to content
This repository has been archived by the owner on Feb 27, 2021. It is now read-only.

Commit

Permalink
Merge pull request #25 from etclabscore/feat/testing
Browse files Browse the repository at this point in the history
feat: add testing.md file
  • Loading branch information
BelfordZ authored Feb 21, 2019
2 parents 1cc5398 + 835583d commit f9d45f4
Showing 1 changed file with 46 additions and 0 deletions.
46 changes: 46 additions & 0 deletions TESTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
# How to setup tests

Testing is a project specific concern. That being said, each project may use a jenkins pipeline to setup CI and CD for the project.

We use [jenkins-vagrant](https://github.com/etclabscore/jenkins-vagrant)

Here is an example [jenkinsfile](https://jenkins.io/doc/book/pipeline/jenkinsfile/) that runs node project tests in each of osx, linux and windows:

```
pipeline {
agent none
stages {
stage('Run Tests') {
parallel {
stage('test') {
agent {
label 'macos'
}
steps {
sh 'npm install'
sh 'npm test'
}
}
stage('linux') {
agent {
label 'linux'
}
steps {
sh 'npm install'
sh 'npm test'
}
}
stage('windows') {
agent {
label 'windows'
}
steps {
bat 'npm install'
bat 'npm test'
}
}
}
}
}
}
```

0 comments on commit f9d45f4

Please sign in to comment.