Skip to content

Assertion results output #115

@rboitsg

Description

@rboitsg

When using --check-assertions I can see the successfull and failed assertions in console/stdout.
Assertions run: 44, Assertions failed: 15

An assertion may define a message for what is being tested:

  <a:assertion
      report-doc="MyEvilFile-report.xml"
      test="/rep:report/rep:assessment/rep:accept">
    Report has status accept
  </a:assertion>

Where can I find this text?

Use Case:
It is difficult to track down failed assertions if the number of assertions is more than one.

For reference, I call the KoSIT Validator within Ant like this:

[apply] Executing 'java' with arguments:
[apply] '-jar'
[apply] 'lib/validationtool-1.5.0-standalone.jar'
[apply] '-h'
[apply] '-s'
[apply] 'build/config/scenarios.xml'
[apply] '-r'
[apply] 'build/config'
[apply] '--check-assertions'
[apply] 'build/test/assertions.xml'
[apply] '-o'
[apply] 'build/test/report/'
[apply] 'MyEvilFile.xml'

Metadata

Metadata

Assignees

Labels

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions