(defn user-file-position []
"Guesses the file position (basename and line number) that the user is
most likely to be interested in if a test fails."
(try
(let [integers (iterate inc 1)
positions (without-java (map file-position integers))
above-midje-files (strip-leading-infrastructure positions)
]
(first above-midje-files))
(catch Exception e ["unknown file" 0]))
)
Comments top
No comments for user-file-position. Log in to add a comment.