Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
should
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
26
Issues
26
List
Boards
Labels
Service Desk
Milestones
Merge Requests
4
Merge Requests
4
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
vidjil
should
Commits
77fe01f6
Commit
77fe01f6
authored
Jun 21, 2018
by
Mathieu Giraud
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
demo/out.should: new example, --log / --tap / --xml
Should increase test coverage.
parent
50a9bf23
Pipeline
#681
passed with stages
in 8 seconds
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
23 additions
and
2 deletions
+23
-2
demo/extra.should
demo/extra.should
+1
-1
demo/hello.should
demo/hello.should
+1
-1
demo/out.should
demo/out.should
+21
-0
No files found.
demo/extra.should
View file @
77fe01f6
...
...
@@ -3,4 +3,4 @@
./should -v --extra You demo/hello.should ; true
$ 'You' is added right after 'echo'
: echo You
"hello, world"
: echo You
hello, world
demo/hello.should
View file @
77fe01f6
# A .should file launches any command it encounters.
# Every line starting with a `#` is a comment.
echo
"hello, world"
echo
hello, world
# Lines containing a `:` are test lines.
# The `test expression` is what is found at the right of the `:`.
...
...
demo/out.should
0 → 100644
View file @
77fe01f6
./should --log --tap --xml demo/hello.should
cat demo/hello.log
cat demo/hello.tap
cat should.xml
$ --log output
r1: ^hello, world
$ --tap output
1:1..10
r>9:^ok
$ --xml output
1:<testsuites failures="0"
1:<testsuite cmd="['echo hello, world']"
w>9:status="ok"
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment