Skip to content

Commit 12bfd3f

Browse files
author
Alan Christie
committed
- Refined the template text
1 parent c9d918c commit 12bfd3f

File tree

1 file changed

+14
-12
lines changed

1 file changed

+14
-12
lines changed

src/groovy/pipeline.test.template

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@
77
//
88
// This test specification contains lists of tests that define
99
// excitation parameters for your pipeline and an optional set of
10-
// expectations of what should be seen logged by it.
10+
// expectations of what should be seen logged by it and the files it creates.
1111

1212
[
1313

1414
// The PipelineTester test script version.
15-
// Must be supported by the PipelineTester utility.
15+
// Must be set and supported by the PipelineTester utility.
1616
// Check with your administrator and set it to the latest value that is
1717
// supported.
1818

@@ -24,14 +24,15 @@
2424
// At the moment the following settings are supported:
2525
//
2626
// timeout: The time allowed for each pipeline test to complete.
27-
// Use this to override the default of 30 seconds.
27+
// Optional. Use this to override the default of 30 seconds.
2828
//
29-
// creates: A list of file names that each test is expected to create.
30-
// Tests can define test-specific files with their own
31-
// 'creates' block.
29+
// creates: An optional list of file names that each test is expected to
30+
// create. Here we define files created by every test in this
31+
// file. Individual tests can define their own test-specific files
32+
// with their own 'creates' block, discussed later in this file.
3233
//
3334
// There can only be one setup_collection section and it must be
34-
// the first section.
35+
// the first section in the file.
3536

3637
setup_collection = [
3738
timeout: 10,
@@ -97,14 +98,15 @@
9798

9899
see: [ 'Computation = 4.5673' ],
99100

100-
// Files created.
101+
// Files created (optional).
101102
//
102103
// If your pipeline test creates files you can and should declare
103104
// their names in a `creates` block, either here or in the
104-
// `setup_collection` section. All files defined in the creates blocks
105-
// must exist for the test to pass. Here we expect 'output.png'
106-
// but the test also expects 'output.txt' as that's defined in the
107-
// 'setup_collection' block above.
105+
// `setup_collection` section above. All files defined in
106+
// both the common creates block and the block used here
107+
// must exist for the test to pass. This test is expected to create
108+
// and 'output.png' but an 'output.txt' is also expected as that's
109+
// defined in the 'setup_collection' section (above).
108110

109111
creates: [ 'output.png' ]
110112

0 commit comments

Comments
 (0)