This repository has been archived by the owner on Jan 26, 2022. It is now read-only.
forked from nickbradley/autotest
-
Notifications
You must be signed in to change notification settings - Fork 1
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
72a12e7
commit d5d3266
Showing
24 changed files
with
898 additions
and
358 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,7 @@ | ||
{ | ||
"views": { | ||
"byTeamDeliverableCommit": { | ||
"map": "function(doc) {\n if (doc.team && doc.deliverable && doc.commit) {\n var tStats = doc.testStats;\n emit([doc.team, doc.deliverable.deliverable, doc.commit],\n {\n 'deliverable': doc.deliverable,\n 'exitCode': doc.containerExitCode,\n 'buildFailed': doc.buildFailed,\n 'buildMsg': doc.buildMsg,\n 'grade': +(0.8*tStats.passPercent + 0.2*Math.min(doc.coverStats.lines.percentage+5, 100)).toFixed(2),\n 'testGrade': tStats.passPercent,\n 'testSummary': tStats.passCount + ' passing, ' + tStats.failCount + ' failing, ' + tStats.skipCount + ' skipped',\n 'coverageGrade': doc.coverStats.lines.percentage,\n 'failedTests': doc.testReport.allFailures.map(function(test) {\n var name = test.title;\n var code = name.substring(name.indexOf('~')+1, name.lastIndexOf('~'));\n return code + ': ' + name.substring(name.lastIndexOf('~')+1, name.indexOf('.')+1);\n })\n }\n )\n }\n }" | ||
} | ||
} | ||
} |
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
Empty file.
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,26 @@ | ||
/** | ||
* Created by rtholmes on 2016-06-19. | ||
*/ | ||
|
||
import Server from './rest/Server'; | ||
import Log from './Util'; | ||
|
||
/** | ||
* Starts the server; doesn't listen to whether the start was successful. | ||
*/ | ||
export class App { | ||
public initServer() { | ||
Log.info('App::initServer() - start'); | ||
let s = new Server(); | ||
s.start().then(function (val: boolean) { | ||
Log.info("App::initServer() - started: " + val); | ||
}).catch(function (err: Error) { | ||
Log.error("App::initServer() - ERROR: " + err.message); | ||
}); | ||
} | ||
} | ||
|
||
// This ends up starting the whole system and listens on a hardcoded port (4321) | ||
Log.info('App - starting'); | ||
let app = new App(); | ||
app.initServer(); |
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
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
Oops, something went wrong.