Sha256: 7930bc18ac5a1e38a70bbe59e89de4f7ce0ab7f8c4b32167fdc52ff4426afef4
Contents?: true
Size: 1.43 KB
Versions: 5
Compression:
Stored size: 1.43 KB
Contents
Feature: Command Line Processing As an owner of XML documetn I want to be able to call Xembly as a command line tool and modify it Scenario: Help can be printed When I run bin/xembly with "--help" Then Exit code is zero And Stdout contains "-v, --verbose" Scenario: Version can be printed When I run bin/xembly with "--version" Then Exit code is zero Scenario: Simple XML manipulations Given I have a "text.xml" file with content: """ <books> <book id="1"/> <book id="2"/> <garbage/> </books> """ And I have a "dirs.txt" file with content: """ XPATH "/books"; ADD "book"; ATTR "isbn", "1519166915"; SET ""Elegant Objects; The Book""; UP; ADD "author"; ADDIF "name"; SET "yegor"; UP; UP; XPATH "garbage"; STRICT "1"; REMOVE; """ When I run bin/xembly with "-v -d dirs.txt -f out.xml -x text.xml" Then Exit code is zero And Stdout contains "reading text.xml" And XML file "out.xml" matches "/books[count(book) = 3]" And XML file "out.xml" matches "/books/book[@isbn='1519166915']" And XML file "out.xml" matches "/books/book[.='\"Elegant Objects; The Book\"']" And XML file "out.xml" matches "/books[author='yegor']" And XML file "out.xml" matches "/books[not(garbage)]" Scenario: Rejects unknown options When I run bin/xembly with "--some-unknown-option" Then Exit code is not zero
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
xembly-0.5.0 | features/cli.feature |
xembly-0.4.3 | features/cli.feature |
xembly-0.4.2 | features/cli.feature |
xembly-0.4.1 | features/cli.feature |
xembly-0.4 | features/cli.feature |