Skip to content

Commit 506f8a5

Browse files
committed
Update docs
1 parent c28ea2d commit 506f8a5

22 files changed

Lines changed: 33 additions & 34 deletions

docs/Mutode.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -490,7 +490,7 @@ <h5>Returns:</h5>
490490
<br class="clear">
491491

492492
<footer>
493-
Generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.5.5</a> on Fri Apr 20 2018 14:53:03 GMT-0500 (-05) using the Minami theme.
493+
Generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.5.5</a> on Tue Apr 24 2018 21:55:47 GMT-0500 (-05) using the Minami theme.
494494
</footer>
495495

496496
<script>prettyPrint();</script>

docs/index.html

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,10 @@
4848

4949

5050
<section class="readme">
51-
<article><h1>Mutode <a href=""><img src="https://img.shields.io/npm/v/mutode.svg" alt="npm"></a> <a href=""><img src="https://img.shields.io/npm/dm/mutode.svg" alt="npm"></a> <a href="LICENSE"><img src="https://img.shields.io/npm/l/mutode.svg" alt="npm"></a></h1><p><a href="https://standardjs.com"><img src="https://img.shields.io/badge/code_style-standard-brightgreen.svg" alt="JavaScript Style Guide"></a> <a href="https://travis-ci.org/TheSoftwareDesignLab/mutode"><img src="https://travis-ci.org/TheSoftwareDesignLab/mutode.svg?branch=master" alt="Build Status"></a> <a href="https://coveralls.io/github/TheSoftwareDesignLab/mutode?branch=master"><img src="https://coveralls.io/repos/github/TheSoftwareDesignLab/mutode/badge.svg?branch=master" alt="Coverage Status"></a></p>
51+
<article><h1>Mutode <a href="http://npmjs.com/package/mutode"><img src="https://img.shields.io/npm/v/mutode.svg" alt="npm"></a> <a href="http://npmjs.com/package/mutode"><img src="https://img.shields.io/npm/dm/mutode.svg" alt="npm"></a> <a href="LICENSE"><img src="https://img.shields.io/npm/l/mutode.svg" alt="npm"></a></h1><p><a href="https://standardjs.com"><img src="https://img.shields.io/badge/code_style-standard-brightgreen.svg" alt="JavaScript Style Guide"></a> <a href="https://travis-ci.org/TheSoftwareDesignLab/mutode"><img src="https://travis-ci.org/TheSoftwareDesignLab/mutode.svg?branch=master" alt="Build Status"></a> <a href="https://ci.appveyor.com/project/DiegoRBaquero/mutode/branch/master"><img src="https://ci.appveyor.com/api/projects/status/ulp8cq3aq2bng6he/branch/master?svg=true" alt="Build status"></a>
52+
<a href="https://coveralls.io/github/TheSoftwareDesignLab/mutode?branch=master"><img src="https://coveralls.io/repos/github/TheSoftwareDesignLab/mutode/badge.svg?branch=master" alt="Coverage Status"></a></p>
5253
<p>Mutation testing for Node.js and JavaScript.</p>
53-
<p><strong>Mutode</strong> generates mutants (small changes of code) and runs your tests. If the tests fail, it means the mutant was detected and <strong>killed</strong>; if your tests pass, if means the mutant <strong>survived</strong> and your tests can be improved.</p>
54+
<p><strong>Mutode</strong> generates mutants (small changes of code) and runs your tests. If the tests fail, it means the mutant was detected and <strong>killed</strong>; if your tests pass, it means the mutant <strong>survived</strong> and your tests can be improved.</p>
5455
<p>Read the thesis proposal <a href="https://docs.google.com/document/d/1V6U-ahLq6faCbtP0DtKukzdnsUC2ZBsL1LWEJvkqUiE/edit?usp=sharing">here</a></p>
5556
<blockquote>
5657
<p>&quot;It's like a test for your tests!&quot; - @mappum</p>
@@ -98,7 +99,7 @@ <h2>License</h2><p>MIT Copyright © Diego Rodríguez Baquero</p></article>
9899
<br class="clear">
99100

100101
<footer>
101-
Generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.5.5</a> on Fri Apr 20 2018 14:53:03 GMT-0500 (-05) using the Minami theme.
102+
Generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.5.5</a> on Tue Apr 24 2018 21:55:47 GMT-0500 (-05) using the Minami theme.
102103
</footer>
103104

104105
<script>prettyPrint();</script>

docs/module-MutantRunner.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ <h1 class="page-title">MutantRunner</h1>
9494

9595
<dt class="tag-source">Source:</dt>
9696
<dd class="tag-source"><ul class="dummy"><li>
97-
<a href="mutantRunner.js.html">mutantRunner.js</a>, <a href="mutantRunner.js.html#line7">line 7</a>
97+
<a href="mutantRunner.js.html">mutantRunner.js</a>, <a href="mutantRunner.js.html#line8">line 8</a>
9898
</li></ul></dd>
9999

100100

@@ -161,7 +161,7 @@ <h1 class="page-title">MutantRunner</h1>
161161
<br class="clear">
162162

163163
<footer>
164-
Generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.5.5</a> on Fri Apr 20 2018 14:53:03 GMT-0500 (-05) using the Minami theme.
164+
Generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.5.5</a> on Tue Apr 24 2018 21:55:47 GMT-0500 (-05) using the Minami theme.
165165
</footer>
166166

167167
<script>prettyPrint();</script>

docs/module-Mutators.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1418,7 +1418,7 @@ <h4 class="name" id=".stringLiteralsMutator"><span class="type-signature">(stati
14181418
<br class="clear">
14191419

14201420
<footer>
1421-
Generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.5.5</a> on Fri Apr 20 2018 14:53:03 GMT-0500 (-05) using the Minami theme.
1421+
Generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.5.5</a> on Tue Apr 24 2018 21:55:47 GMT-0500 (-05) using the Minami theme.
14221422
</footer>
14231423

14241424
<script>prettyPrint();</script>

docs/mutantRunner.js.html

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ <h1 class="page-title">mutantRunner.js</h1>
4444
const Debug = require('debug')
4545
const fs = require('fs')
4646
const path = require('path')
47+
const terminate = require('terminate')
4748

4849
/**
4950
* @module MutantRunner
@@ -57,19 +58,16 @@ <h1 class="page-title">mutantRunner.js</h1>
5758
await new Promise(resolve => {
5859
const startTime = process.hrtime()
5960
fs.writeFileSync(`.mutode/mutode-${mutodeInstance.id}-${index}/${filePath}`, contentToWrite)
60-
const child = spawn(mutodeInstance.npmCommand, ['test'], {
61-
cwd: path.resolve(`.mutode/mutode-${mutodeInstance.id}-${index}`),
62-
detached: true,
63-
shell: true
64-
})
61+
const child = spawn(mutodeInstance.npmCommand, ['test'], {cwd: path.resolve(`.mutode/mutode-${mutodeInstance.id}-${index}`)})
6562

6663
child.stderr.on('data', data => {
6764
debug(data.toString())
6865
})
6966

67+
let timedout = false
7068
const timeout = setTimeout(() => {
71-
child.kill('SIGKILL')
72-
process.kill(-child.pid)
69+
terminate(child.pid)
70+
timedout = true
7371
}, mutodeInstance.timeout).unref()
7472

7573
child.on('exit', (code, signal) => {
@@ -80,7 +78,7 @@ <h1 class="page-title">mutantRunner.js</h1>
8078
if (code === 0) {
8179
console.log(`${log}\t${chalk.bgRed('survived')} ${timeDiff}`)
8280
mutodeInstance.survived++
83-
} else if (signal) {
81+
} else if (signal || timedout) {
8482
console.log(`${log}\t${chalk.bgBlue('discarded (timeout)')} ${timeDiff}`)
8583
mutodeInstance.discarded++
8684
} else {
@@ -105,7 +103,7 @@ <h1 class="page-title">mutantRunner.js</h1>
105103
<br class="clear">
106104

107105
<footer>
108-
Generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.5.5</a> on Fri Apr 20 2018 14:53:03 GMT-0500 (-05) using the Minami theme.
106+
Generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.5.5</a> on Tue Apr 24 2018 21:55:47 GMT-0500 (-05) using the Minami theme.
109107
</footer>
110108

111109
<script>prettyPrint();</script>

docs/mutators_booleanLiteralsMutator.js.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ <h1 class="page-title">mutators/booleanLiteralsMutator.js</h1>
8787
<br class="clear">
8888

8989
<footer>
90-
Generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.5.5</a> on Fri Apr 20 2018 14:53:03 GMT-0500 (-05) using the Minami theme.
90+
Generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.5.5</a> on Tue Apr 24 2018 21:55:47 GMT-0500 (-05) using the Minami theme.
9191
</footer>
9292

9393
<script>prettyPrint();</script>

docs/mutators_conditionalsBoundaryMutator.js.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ <h1 class="page-title">mutators/conditionalsBoundaryMutator.js</h1>
9898
<br class="clear">
9999

100100
<footer>
101-
Generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.5.5</a> on Fri Apr 20 2018 14:53:03 GMT-0500 (-05) using the Minami theme.
101+
Generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.5.5</a> on Tue Apr 24 2018 21:55:47 GMT-0500 (-05) using the Minami theme.
102102
</footer>
103103

104104
<script>prettyPrint();</script>

docs/mutators_incrementsMutator.js.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ <h1 class="page-title">mutators/incrementsMutator.js</h1>
9696
<br class="clear">
9797

9898
<footer>
99-
Generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.5.5</a> on Fri Apr 20 2018 14:53:03 GMT-0500 (-05) using the Minami theme.
99+
Generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.5.5</a> on Tue Apr 24 2018 21:55:47 GMT-0500 (-05) using the Minami theme.
100100
</footer>
101101

102102
<script>prettyPrint();</script>

docs/mutators_invertNegativesMutator.js.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ <h1 class="page-title">mutators/invertNegativesMutator.js</h1>
8888
<br class="clear">
8989

9090
<footer>
91-
Generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.5.5</a> on Fri Apr 20 2018 14:53:03 GMT-0500 (-05) using the Minami theme.
91+
Generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.5.5</a> on Tue Apr 24 2018 21:55:47 GMT-0500 (-05) using the Minami theme.
9292
</footer>
9393

9494
<script>prettyPrint();</script>

docs/mutators_mathMutator.js.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ <h1 class="page-title">mutators/mathMutator.js</h1>
104104
<br class="clear">
105105

106106
<footer>
107-
Generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.5.5</a> on Fri Apr 20 2018 14:53:03 GMT-0500 (-05) using the Minami theme.
107+
Generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.5.5</a> on Tue Apr 24 2018 21:55:47 GMT-0500 (-05) using the Minami theme.
108108
</footer>
109109

110110
<script>prettyPrint();</script>

0 commit comments

Comments
 (0)