forked from project-sunbird/ml-survey-service
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7061a86
commit 4172017
Showing
3 changed files
with
55 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
version: 2.17 | ||
jobs: | ||
build: | ||
docker: | ||
- image: circleci/node:10.0.0 | ||
working_directory: ~/project/ | ||
steps: | ||
- checkout | ||
- restore_cache: | ||
key: dependency-cache-{{ checksum "package.json" }} | ||
- run: | ||
name: update-npm | ||
command: 'sudo npm install -g npm@latest' | ||
- run: | ||
name: install-npm | ||
command: npm install | ||
- save_cache: | ||
key: dependency-cache-{{checksum "package.json"}} | ||
paths: | ||
- ./node_modules | ||
- run: | ||
name: Executing unit test cases | ||
command: npm test | ||
|
||
- run: | ||
name: Install sonar scanner | ||
command: 'sudo npm install -g sonarqube-scanner' | ||
|
||
- run: | ||
name: Sonar scanner | ||
command: | | ||
sonar-scanner | ||
workflows: | ||
version: 2 | ||
build_and_test: | ||
jobs: | ||
- build |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
let server = require("../app"); | ||
let chai = require("chai"); | ||
let chaiHttp = require("chai-http"); | ||
|
||
// Assertion | ||
chai.should(); | ||
chai.use(chaiHttp); | ||
|
||
describe('Solutions APIs', () => { | ||
it("Test 400 error for solution details api", (done) => { | ||
done(); | ||
}); | ||
}) |