Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
David Goulet
Tor
Commits
1a2aa4e3
Commit
1a2aa4e3
authored
Oct 14, 2016
by
Chelsea H. Komlo
Committed by
Nick Mathewson
Oct 14, 2016
Browse files
adding instructions how to include new test files
parent
ac707ae7
Changes
1
Hide whitespace changes
Inline
Side-by-side
doc/HACKING/WritingTests.md
View file @
1a2aa4e3
...
...
@@ -152,6 +152,11 @@ or create a new C file there. Each test is a single function that must
be indexed in the table at the end of the file. We use the label "done:" as
a cleanup point for all test functions.
If you have created a new test file, you will need to:
1.
Add the new test file to include.am
2.
In
`test.h`
, include the new test cases (testcase_t)
3.
In
`test.c`
, add the new test cases to testgroup_t testgroups
(Make sure you read
`tinytest-manual.md`
before proceeding.)
I use the term "unit test" and "regression tests" very sloppily here.
...
...
Write
Preview
Supports
Markdown
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