

def make_feature_filename(self, feature):
    filename = None
    for path in self.config.paths:
        if feature.filename.startswith(path):
            filename = feature.filename[(len(path) + 1):]
            break
    if (not filename):
        filename = feature.location.relpath(self.config.base_dir)
    filename = filename.rsplit('.', 1)[0]
    filename = filename.replace('\\', '/').replace('/', '.')
    return _text(filename)

dataset/ETHPy150Open behave/behave/behave/reporter/junit.py JUnitReporter.make_feature_filename/original