Skip to content

Commit

Permalink
Fixed iteration title bar to not show iteration values.
Browse files Browse the repository at this point in the history
  • Loading branch information
renatoathaydes committed May 2, 2023
1 parent e16854e commit a020666
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 10 deletions.
3 changes: 2 additions & 1 deletion releases/Release_Notes.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
2.5.0-groovy-4 -

* Fixed how Unrolled feature is determined (changed in Spock 2 to be the default).
* #244 `reportInfo` added to the correct iteration on `@RollUp` test.
* Fixed #244 `reportInfo` added to the correct iteration on `@RollUp` test.
* Fixed feature header to stop showing iteration values, as values as shown in a table already.

2.4.0-groovy-4 - 2022 Oct 30

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -224,10 +224,10 @@ class Utils {

static String featureNameFrom( FeatureInfo feature, IterationInfo iteration, int index ) {
if ( feature.iterationNameProvider && iteration.dataValues?.length > 0 ) {
def name = feature.iterationNameProvider.getName( iteration )
def name = iteration.displayName

// reset the index instance to fix #70
def nameMatcher = name =~ /(.*)\[\d+\]$/
def nameMatcher = name =~ /(.*)\[.*]$/
if ( nameMatcher.matches() ) {
def rawName = nameMatcher.group( 1 )
return "$rawName[$index]"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ <h3>Features:</h3>
<tr>
<td colspan='10'>
<div class='feature-description' id='3'>
<span>Unrolled example-based feature adding info [iteration: 0, #0]</span>
<span>Unrolled example-based feature adding info [0]</span>
<span class='return-toc'>
<a href='#toc'>Return</a>
<div class='ex-time'>(Unknown)</div>
Expand Down Expand Up @@ -281,7 +281,7 @@ <h3>Features:</h3>
<tr>
<td colspan='10'>
<div class='feature-description' id='4'>
<span>Unrolled example-based feature adding info [iteration: 1, #1]</span>
<span>Unrolled example-based feature adding info [1]</span>
<span class='return-toc'>
<a href='#toc'>Return</a>
<div class='ex-time'>(Unknown)</div>
Expand Down Expand Up @@ -345,7 +345,7 @@ <h3>Features:</h3>
<tr>
<td colspan='10'>
<div class='feature-description' id='5'>
<span>Unrolled example-based feature adding info [iteration: 2, #2]</span>
<span>Unrolled example-based feature adding info [2]</span>
<span class='return-toc'>
<a href='#toc'>Return</a>
<div class='ex-time'>(Unknown)</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ <h3>Features:</h3>
<tr>
<td colspan='10'>
<div class='feature-description' id='1'>
<span>Example-based feature [a: 2, b: 2, c: 4, #0]</span>
<span>Example-based feature [0]</span>
<span class='return-toc'>
<a href='#toc'>Return</a>
<div class='ex-time'>(Unknown)</div>
Expand Down Expand Up @@ -120,7 +120,7 @@ <h3>Features:</h3>
<tr>
<td colspan='10'>
<div class='feature-description' id='2'>
<span>Example-based feature [a: 1, b: 4, c: 5, #1]</span>
<span>Example-based feature [1]</span>
<span class='return-toc'>
<a href='#toc'>Return</a>
<div class='ex-time'>(Unknown)</div>
Expand Down Expand Up @@ -173,7 +173,7 @@ <h3>Features:</h3>
<tr>
<td colspan='10'>
<div class='feature-description' id='3'>
<span>Second Example-based feature [a: 1, b: 2, c: 3, #0]</span>
<span>Second Example-based feature [0]</span>
<span class='return-toc'>
<a href='#toc'>Return</a>
<div class='ex-time'>(Unknown)</div>
Expand Down Expand Up @@ -226,7 +226,7 @@ <h3>Features:</h3>
<tr>
<td colspan='10'>
<div class='feature-description' id='4'>
<span>Second Example-based feature [a: 5, b: 3, c: 8, #1]</span>
<span>Second Example-based feature [1]</span>
<span class='return-toc'>
<a href='#toc'>Return</a>
<div class='ex-time'>(Unknown)</div>
Expand Down

0 comments on commit a020666

Please sign in to comment.