Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
technical-reference
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
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
FE
technical-reference
Commits
b69fa295
Verified
Commit
b69fa295
authored
3 years ago
by
Michelle Weidling
Committed by
Ubbo Veentjer
3 years ago
Browse files
Options
Downloads
Patches
Plain Diff
fix: rephrase software coverage for clarity
parent
917499dd
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!72
Resolve "CESSDA – Decisions"
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
chapters/software-tests.md
+6
-6
6 additions, 6 deletions
chapters/software-tests.md
with
6 additions
and
6 deletions
chapters/software-tests.md
+
6
−
6
View file @
b69fa295
## Software Tests
All functions (except getter and setter methods)
`MUST`
provide proper tests.
This is understood on a component level, meaning every method should have at least one test.
Whether you achieve this by Test Driven Development (TDD) or other means depends on your preferred way to work.
Software tests aim at ensuring that the code you write does exactly what you expect it to do.
All functions (except
`get`
ter and
`set`
ter methods)
`MUST`
provide proper tests.
Every method should have enough tests to cover each line of code, aiming at a code coverage of 100
\%
.
Also all possible outcomes of a method should be considered and covered by tests.
Please keep in mind not only to write a test for each of your functions but also
consider all possible outcomes.
It is e.g. not sufficient to test if a function creates a file if the written content depends on variables etc.
Whether you achieve this by Test Driven Development (TDD) or other means depends on your preferred way to work.
Examples for writing tests in different programming languages are:
...
...
This diff is collapsed.
Click to expand it.
Stefan Hynek
@hynek
mentioned in commit
ecf7b4d9
·
2 years ago
mentioned in commit
ecf7b4d9
mentioned in commit ecf7b4d9973d6da4b78df1b41b71e1b9f6082a1c
Toggle commit list
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