If a content author wants to write a test that says "ensure all text files in a directory contain 'value=1'"
TextFile1: Some data, but no 'value' key
TextFile2: No data
TextFile3: value=1
Using just the textfilecontent54 test, this would incorrectly return true, because no items will be create from TextFile1 and TextFile2.
It is possible to write content to perform this using the unix or Windows file test to collect items based on filename, then populate a variable with the filepath from the file items, and then writing a textfilecontent54 test with the filepath of the textfilecontent54 populated from the variable mentioned above.
This proposal would allow content authors to write less complex content by just enabling a behavior that creates an item if the filepath portion of the object is populated.
If a content author wants to write a test that says "ensure all text files in a directory contain 'value=1'"
TextFile1: Some data, but no 'value' key
TextFile2: No data
TextFile3: value=1
Using just the textfilecontent54 test, this would incorrectly return true, because no items will be create from TextFile1 and TextFile2.
It is possible to write content to perform this using the unix or Windows file test to collect items based on filename, then populate a variable with the filepath from the file items, and then writing a textfilecontent54 test with the filepath of the textfilecontent54 populated from the variable mentioned above.
This proposal would allow content authors to write less complex content by just enabling a behavior that creates an item if the filepath portion of the object is populated.