Skip to content

Commit

Permalink
add file path to tag of json-tests (#19)
Browse files Browse the repository at this point in the history
- Include file path in tag of json-tests in lobster-json.
  Test names are only unique within one json file, but this does not hold globally across all input files.
  Hence the test tag is modified to contain the file path, where `/` is replaced by `.`. This replacement of characters serves to improve the readability of the tags in the lobster report.
- Fix typo in readme file.

Co-authored-by: Philipp Wullstein-Kammler <philipp.wullstein-kammler@bmw.de>
  • Loading branch information
phiwuu and phiwuu authored Dec 6, 2023
1 parent edd913e commit 709cd60
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ This repository contains the prototype for LOBSTER, which is a key
ingredient to make TRCL more useful.

It has tools to extract tracing tags from a variety of sources combine
them and produce a tracing report. The [the TRLC tracing
them and produce a tracing report. The [TRLC tracing
report](https://bmw-software-engineering.github.io/trlc/tracing.html)
from the [TRLC
Project](https://github.com/bmw-software-engineering/trlc/) is a
Expand Down
2 changes: 1 addition & 1 deletion lobster/tools/json/json.py
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ def process(cls, options, file_name):

l_item = Activity(
tag = Tracing_Tag(namespace = "json",
tag = item_name),
tag = "%s.%s" % (file_name.replace("/", "."), item_name)),
location = File_Reference(file_name),
framework = "JSON",
kind = "Test Vector")
Expand Down

0 comments on commit 709cd60

Please sign in to comment.