robotframework/robotframework

BuiltIn: Enhance error reporting of comparison keywords especially when `ignore_case=True`

Open

#2.512 aberto em 30 de dez. de 2016

Ver no GitHub
 (1 comment) (1 reaction) (0 assignees)Python (2.220 forks)batch import
help wantedpriority: medium

Métricas do repositório

Stars
 (8.672 stars)
Métricas de merge de PR
 (Mesclagem média 1d 3h) (1 fundiu PR em 30d)

Description

Case-insensitivity support added in RF 3.0.1 (#2439) works fine otherwise, but error reporting isn't always consistent. Sometimes error messages show the compared values turned to lower case, and in others they show the original values. It would probably be best to to always show the original values but add a note like (case-insensitive) to the message automatically.

There are also other inconsistencies in error reporting (e.g. do messages end with . or not) that can be fixed when refactoring error reporting in general. Having a better way to report errors involving large strings or containers with many items would be great too, but that is probably so big task that it would deserve a separate issue.

Guia do colaborador