Ci2d - The Colossal Hood For Agile Development And Deployment

476 views

Published on

Built and executed a value add project Ci2D broadcasting the capability to develop and deploy in agile. A framework for continuous inspection, continuous integration and continuous deployment across multiple technology stacks such as Node.js, .Net and Java.

Published in: Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
476
On SlideShare
0
From Embeds
0
Number of Embeds
7
Actions
Shares
0
Downloads
0
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide
  • Add Istanbul and mocha modulesDemo.jsfunction nextPrime(n) {var smaller; n = Math.floor(n); if (n >= 2) { smaller = 1; while (smaller * smaller <= n) { n++; smaller = 2; while ((n % smaller > 0) && (smaller * smaller <= n)) { smaller++; } } return n; } else { return 2; }}module.exports.nextPrime = nextPrime;3) Test Case using mochavar assert = require('assert') , demo = require('./../routes/demo'); suite('nextPrime', function() { test('nextPrime should return the next prime number', function() {assert.equal(11, demo.nextPrime(7)); }); test('zero and one are not prime numbers', function() {assert.equal(2, demo.nextPrime(0));assert.equal(2, demo.nextPrime(1)); });});4) Following command as runnerREM @start /b cmd /c mocha -R lcov --uitdd > coverage/coverage.lcov@start /b cmd /c mocha -R xunit --uitdd > coverage/TEST-all.xml@start /b cmd /c istanbul cover routes\demo.js @ping -n 10 127.0.0.1 > nul@start /b cmd /c node public\javascripts\common\finalDest.js coverage\lcov.info coverage\coverage.lcov5) Sonar properties# Required metadatasonar.projectKey=TMSWebsonar.projectName=TMSWebsonar.projectVersion=1.0# Comma-separated paths to directories with sources (required)sonar.sources=routes,test# Languagesonar.language=js# Encoding of sources filessonar.sourceEncoding=UTF-8sonar.host.url = http://localhost:9000sonar.tests=test# To import the LCOV reportsonar.javascript.jstestdriver.reportsPath=coveragesonar.javascript.lcov.reportPath=coverage/coverage.lcovsonar.dynamicAnalysis=reuseReports6) @start /b cmd /c E:\Naveen_Home\SONAR_SPACE\sonar-runner-2.3\bin\sonar-runner.batSonar java script plugin 1.4
  • Add Istanbul and mocha modulesDemo.jsfunction nextPrime(n) {var smaller; n = Math.floor(n); if (n >= 2) { smaller = 1; while (smaller * smaller <= n) { n++; smaller = 2; while ((n % smaller > 0) && (smaller * smaller <= n)) { smaller++; } } return n; } else { return 2; }}module.exports.nextPrime = nextPrime;3) Test Case using mochavar assert = require('assert') , demo = require('./../routes/demo'); suite('nextPrime', function() { test('nextPrime should return the next prime number', function() {assert.equal(11, demo.nextPrime(7)); }); test('zero and one are not prime numbers', function() {assert.equal(2, demo.nextPrime(0));assert.equal(2, demo.nextPrime(1)); });});4) Following command as runnerREM @start /b cmd /c mocha -R lcov --uitdd > coverage/coverage.lcov@start /b cmd /c mocha -R xunit --uitdd > coverage/TEST-all.xml@start /b cmd /c istanbul cover routes\demo.js @ping -n 10 127.0.0.1 > nul@start /b cmd /c node public\javascripts\common\finalDest.js coverage\lcov.info coverage\coverage.lcov5) Sonar properties# Required metadatasonar.projectKey=TMSWebsonar.projectName=TMSWebsonar.projectVersion=1.0# Comma-separated paths to directories with sources (required)sonar.sources=routes,test# Languagesonar.language=js# Encoding of sources filessonar.sourceEncoding=UTF-8sonar.host.url = http://localhost:9000sonar.tests=test# To import the LCOV reportsonar.javascript.jstestdriver.reportsPath=coveragesonar.javascript.lcov.reportPath=coverage/coverage.lcovsonar.dynamicAnalysis=reuseReports6) @start /b cmd /c E:\Naveen_Home\SONAR_SPACE\sonar-runner-2.3\bin\sonar-runner.batSonar java script plugin 1.4
  • Add Istanbul and mocha modulesDemo.jsfunction nextPrime(n) {var smaller; n = Math.floor(n); if (n >= 2) { smaller = 1; while (smaller * smaller <= n) { n++; smaller = 2; while ((n % smaller > 0) && (smaller * smaller <= n)) { smaller++; } } return n; } else { return 2; }}module.exports.nextPrime = nextPrime;3) Test Case using mochavar assert = require('assert') , demo = require('./../routes/demo'); suite('nextPrime', function() { test('nextPrime should return the next prime number', function() {assert.equal(11, demo.nextPrime(7)); }); test('zero and one are not prime numbers', function() {assert.equal(2, demo.nextPrime(0));assert.equal(2, demo.nextPrime(1)); });});4) Following command as runnerREM @start /b cmd /c mocha -R lcov --uitdd > coverage/coverage.lcov@start /b cmd /c mocha -R xunit --uitdd > coverage/TEST-all.xml@start /b cmd /c istanbul cover routes\demo.js @ping -n 10 127.0.0.1 > nul@start /b cmd /c node public\javascripts\common\finalDest.js coverage\lcov.info coverage\coverage.lcov5) Sonar properties# Required metadatasonar.projectKey=TMSWebsonar.projectName=TMSWebsonar.projectVersion=1.0# Comma-separated paths to directories with sources (required)sonar.sources=routes,test# Languagesonar.language=js# Encoding of sources filessonar.sourceEncoding=UTF-8sonar.host.url = http://localhost:9000sonar.tests=test# To import the LCOV reportsonar.javascript.jstestdriver.reportsPath=coveragesonar.javascript.lcov.reportPath=coverage/coverage.lcovsonar.dynamicAnalysis=reuseReports6) @start /b cmd /c E:\Naveen_Home\SONAR_SPACE\sonar-runner-2.3\bin\sonar-runner.batSonar java script plugin 1.4
  • Ci2d - The Colossal Hood For Agile Development And Deployment

    1. 1. CI2D THE COLOSSAL HOOD FOR AGILE DEVELOPMENT
    2. 2. CI2D • Continuous Inspection • Continuous Integration • Continuous Deployment
    3. 3. Static Code Analysis Automated UnitTest Code Coverage Build Artifacts Automated Deployment Continuous Integration
    4. 4. DOTNET JAVA JavaScript NUnit Junit TestNG Easymock Mocha Nodeunit Supertest Qunit Jenkins Kwatee Kwatee/Jenkins FXCOP NDEP STYLECOP Sonar Checkstyle Findbugs PMD Sonar JSLINT JSHINT Istanbul Sonar
    5. 5. Continuous Inspection Static Code Analysis Unit Testing Code Coverage Sonar
    6. 6. JavaScript Istanbul Mocha QUnit Sonar
    7. 7. Java Find Bugs CPD PMD Checkstyles Jdep Jacoco Emma Jcoverage Corbetura Junit TestNG Sonar
    8. 8. Dotnet Open Cover FXCop StyleCop NUnit Sonar
    9. 9. Continuous Integration Automate the deployment with Jenkins/Kwatee Automated Testing Automate the Build SVN/GITHUB
    10. 10. Continuous Deployment Stop Service Take backup of essentials Deploy artifacts Start Service
    11. 11. Pre-requisite for Kwatee Installation of Kwatee – Agile Deployment tool on build server Installation of MySQl Tomcat server
    12. 12. Questions • HTTP://IN.LINKEDIN.COM/IN/NEWNAVEEN15

    ×