Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
Syntax Highlighting Engine
Manage
Activity
Members
Labels
Plan
Issues
3
Issue boards
Milestones
Wiki
Bugzilla
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Frameworks
Syntax Highlighting Engine
Commits
9343341f
Commit
9343341f
authored
5 years ago
by
Christoph Cullmann
🍨
Browse files
Options
Downloads
Patches
Plain Diff
add some minimal howto for test adding
parent
831f316f
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
README.md
+17
-0
17 additions, 0 deletions
README.md
with
17 additions
and
0 deletions
README.md
+
17
−
0
View file @
9343341f
...
...
@@ -30,3 +30,20 @@ out of scope:
*
management of text buffers or documents
If you need any of this, check out
[
KTextEditor
](
https://api.kde.org/frameworks/ktexteditor/html/
)
.
## Adding unit tests for a syntax definition
*
add an input file into the autotests/input/ folder, lets call it test.
<language-extension>
*
if the file extension is not sufficient to trigger the right syntax definition, you can add an
second file testname.
<language-extension>
.syntax that contains the syntax definition name
to enforce the use of the right extension
*
do "make && make test"
*
inspect the outputs found in your binary directory autotests/folding.out, autotests/html.output and autotests/output
*
if ok, run in the binary folder "./autotests/update-reference-data.sh" to copy the results to the right location
*
add the result references after the copying to the git
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