Skip to content

Commit

Permalink
Show stack trace for errors in performance tests (#134)
Browse files Browse the repository at this point in the history
* Show stack trace for errors in performance tests

* Prepare for performance 2.1.2
  • Loading branch information
chromy authored May 7, 2024
1 parent 14b230d commit 6c51783
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 4 deletions.
2 changes: 1 addition & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ junit-jupiter = "5.8.2"

# internal
emerge-gradle-plugin = "2.2.2"
emerge-peformance = "2.1.1"
emerge-peformance = "2.1.2"
emerge-snapshots = "0.8.5"

[plugins]
Expand Down
7 changes: 7 additions & 0 deletions performance/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,13 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## 2.1.2 - 2024-05-07

### Fixed

- Show stack trace when local performance tests throw errors. [#134](https://github.com/EmergeTools/emerge-android/pull/134).


## 2.1.1 - 2023-09-13

### Fixed
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ class EmergeLocalJUnit4ClassRunner(testClass: Class<*>) : AndroidJUnit4ClassRunn
}
} catch (e: Throwable) {
summary.result = MethodResult.FAILURE
summary.messages.add("Failed with an exception: $e")
summary.messages.add("Failed with an exception: ${e.stackTraceToString()}")
throw e
}
}
Expand Down Expand Up @@ -204,7 +204,7 @@ class EmergeLocalJUnit4ClassRunner(testClass: Class<*>) : AndroidJUnit4ClassRunn
}
} catch (e: Throwable) {
summary.result = MethodResult.FAILURE
summary.messages.add("Failed with an exception: $e")
summary.messages.add("Failed with an exception: ${e.stackTraceToString()}")
throw e
}
}
Expand Down Expand Up @@ -312,7 +312,7 @@ class EmergeLocalJUnit4ClassRunner(testClass: Class<*>) : AndroidJUnit4ClassRunn
}
} catch (e: Throwable) {
annotationSummary.result = MethodResult.FAILURE
annotationSummary.messages.add("Failed with an exception: $e")
annotationSummary.messages.add("Failed with an exception: ${e.stackTraceToString()}")
}
}
}
Expand Down

0 comments on commit 6c51783

Please sign in to comment.