Mentions légales du service
Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
reference-repository
Manage
Activity
Members
Labels
Plan
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
grid5000
reference-repository
Commits
2b52956b
Commit
2b52956b
authored
4 years ago
by
Lucas Nussbaum
Committed by
Lucas Nussbaum
4 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Create a single README.md file in spec/ (bugs 13084, 13085)
parent
9b12249f
Branches
Branches containing commit
No related tags found
1 merge request
!227
Improve ref-repo docs (bug 13084, 13085)
Pipeline
#250654
passed
4 years ago
Stage: validate
Stage: generate
Stage: deploy
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
spec/README.md
+43
-0
43 additions, 0 deletions
spec/README.md
spec/output/README.md
+0
-5
0 additions, 5 deletions
spec/output/README.md
with
43 additions
and
5 deletions
spec/
input/
README.md
→
spec/README.md
+
43
−
0
View file @
2b52956b
reference-repository specs
==========================
This directory contains a test suite for the ref-repo OAR properties generator.
The tests are split into different files:
-
`oar_properties_arguments_spec.rb`
contains basic tests for all arguments passed to the generator
-
`oar_properties_spec.rb`
contains various fictious tests
-
`oar_properties2_spec.rb`
contains various tests based on real data
Both
`oar_properties_spec.rb`
and
`oar_properties2_spec.rb`
rely on a
`check_oar_properties`
method that uses input files from
`input`
, and
compares the generated results to files in
`output`
.
For example,
`check_oar_properties({ :oar => 'oar_empty', :data => 'data', :case => 'empty' })`
will use
`input/oar_empty.json`
and
`input/data.json`
, and compare the results
to
`output/empty_{print,diff,table}_*.json`
.
How to update input files:
==========================
...
...
@@ -18,3 +35,9 @@ Steps are:
Since using
`vimdiff`
or
`meld`
on the files is very slow, one can use the
`diff`
and
`patch`
commands...
Then verify using
`git diff`
that the generated data matches what you expect.
How to update the output files:
===============================
To update the files, just remove them and run rspec again, they will be regenerated.
Then verify using
`git diff`
that the generated data matches what you expect.
This diff is collapsed.
Click to expand it.
spec/output/README.md
deleted
100644 → 0
+
0
−
5
View file @
9b12249f
How to update the output files:
===============================
To update the files, just remove them and run rspec again, they will be regenerated.
Then verify using
`git diff`
that the generated data matches what you expect.
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment