public interface RequirementHandler
The return values are in ibello's own format. The Requirements class describes a requirement list.
| Modifier and Type | Method and Description |
|---|---|
RequirementsCoverage |
calculateExampleCoverage(String relativePath)
Calculate the example coverage of the requirements defined in the specified file.
|
RequirementsCoverage |
calculateTestCoverage(String relativePath)
Calculate the test coverage of the requirements defined in the specified file.
|
boolean |
existsRequirementsFile(String relativePath)
Checks if a requirement file exists.
|
List<Requirements> |
loadRequirements()
Loads all requirement files and put them into a list.
|
List<Requirements> |
loadRequirements(Pattern relativePath)
Loads selected requirement files and put them into a list.
|
Requirements |
loadRequirements(String relativePath)
Loads a single requirement file.
|
Requirements loadRequirements(String relativePath) throws RequirementException
relativePath - the path to the file, relative to the requirements directory of the projectRequirementException - if there was an error during loading the fileList<Requirements> loadRequirements() throws RequirementException
RequirementException - if there was an error during loading a fileList<Requirements> loadRequirements(Pattern relativePath) throws RequirementException
relativePath - regular expression for the path to the file (which is relative to the requirements directory of the project)RequirementException - if there was an error during loading the fileboolean existsRequirementsFile(String relativePath)
relativePath - the path to the file, relative to the requirements directory of the projecttrue if the given file exists, false otherwiseRequirementsCoverage calculateTestCoverage(String relativePath) throws RequirementException
relativePath - the path to the file, relative to the requirements directory of the projectRequirementException - if there was an error during loading the file or calculating the coverageRequirementsCoverage calculateExampleCoverage(String relativePath) throws RequirementException
relativePath - the path to the file, relative to the requirements directory of the projectRequirementException - if there was an error during loading the file or calculating the coverageCreated by Kornél Simon, 2022