Skip to content

Commit a11e694

Browse files
author
Krum Motsov
committed
Call describe with name in order to allow runner to group examples into folders based on local folder structure.
Add a metadata in the travis' testspace publish command.
1 parent 39c80c1 commit a11e694

14 files changed

+103
-87
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,4 @@ script:
1212
- export PATH="${HOME}/testspace:${PATH}"
1313
# Testspace credentials: "[email protected]/myproject/myspace"
1414
- testspace config url ${TESTSPACE_USER_TOKEN}:@${TESTSPACE_URL}
15-
- testspace publish [Tests]test/reports/junitresults.xml test/reports/coverage/clover.xml
15+
- testspace publish [Tests]test/reports/junitresults.xml{test} test/reports/coverage/clover.xml

test/others/levenshtein-distance.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
var mod = require('../../src/others/levenshtein-distance.js');
44
var levenshteinDistance = mod.levenshteinDistance;
55

6-
describe('Levenstein\'s minimum edit distance algorithm', function () {
6+
describe('Levenstein minimum edit distance algorithm', function () {
77
it('should be defined', function () {
88
expect(levenshteinDistance).toBeDefined();
99
});

test/sorting/bubblesort.spec.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
1-
var sortTestCase = require('./sort.testcase.js');
1+
var sortTestCases = require('./sort.testcases.js');
22
var bubbleSort =
33
require('../../src/sorting/bubblesort.js').bubbleSort;
44

5-
sortTestCase(bubbleSort, 'Bubble sort');
5+
describe('Bubble sort', function () {
6+
sortTestCases(bubbleSort);
7+
});

test/sorting/heapsort.spec.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
var sortTestCase = require('./sort.testcase.js');
1+
var sortTestCases = require('./sort.testcases.js');
22
var heapSort = require('../../src/sorting/heapsort.js').heapSort;
33

4-
sortTestCase(heapSort, 'Heap sort');
4+
describe('Heap sort', function () {
5+
sortTestCases(heapSort);
6+
});
Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
1-
var sortTestCase = require('./sort.testcase.js');
1+
var sortTestCases = require('./sort.testcases.js');
22
var insertionBinarySort =
33
require('../../src/sorting/' +
44
'insertion-binary-sort.js').insertionBinarySort;
55

6-
sortTestCase(insertionBinarySort, 'Insertion binary sort');
6+
describe('Insertion binary sort', function () {
7+
sortTestCases(insertionBinarySort);
8+
});

test/sorting/insertionsort.spec.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
1-
var sortTestCase = require('./sort.testcase.js');
1+
var sortTestCases = require('./sort.testcases.js');
22
var insertionSort = require('../../src/sorting/' +
33
'insertionsort.js').insertionSort;
44

5-
sortTestCase(insertionSort, 'Insertion sort');
5+
describe('Insertion sort', function () {
6+
sortTestCases(insertionSort);
7+
});

test/sorting/mergesort.spec.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
1-
var sortTestCase = require('./sort.testcase.js');
1+
var sortTestCases = require('./sort.testcases.js');
22
var mergeSort =
33
require('../../src/sorting/mergesort.js').mergeSort;
44

5-
sortTestCase(mergeSort, 'Merge sort');
5+
describe('Merge sort', function () {
6+
sortTestCases(mergeSort);
7+
});
Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
1-
var sortTestCase = require('./sort.testcase.js');
1+
var sortTestCases = require('./sort.testcases.js');
22
var quickSort =
33
require('../../src/sorting/quicksort-middle.js').quickSort;
44

5-
sortTestCase(quickSort, 'Quick sort');
5+
describe('Quick sort middle', function () {
6+
sortTestCases(quickSort);
7+
});

test/sorting/quicksort.spec.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
1-
var sortTestCase = require('./sort.testcase.js');
1+
var sortTestCases = require('./sort.testcases.js');
22
var quickSort =
33
require('../../src/sorting/quicksort.js').quickSort;
44

5-
sortTestCase(quickSort, 'Quick sort');
5+
describe('Quick sort', function () {
6+
sortTestCases(quickSort);
7+
});
Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
1-
var sortTestCase = require('./sort.testcase.js');
1+
var sortTestCases = require('./sort.testcases.js');
22
var recursiveInsertionSort = require('../../src/sorting/' +
33
'recursive-insertionsort.js').recursiveInsertionSort;
44

5-
sortTestCase(recursiveInsertionSort, 'Recursive insertion sort');
5+
describe('Recursive insertion sort', function () {
6+
sortTestCases(recursiveInsertionSort);
7+
});

0 commit comments

Comments
 (0)