Skip to content

Commit

Permalink
improve unit test case names
Browse files Browse the repository at this point in the history
  • Loading branch information
oguzhanunlu committed Mar 5, 2024
1 parent 26b5aff commit a285d03
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ class IncompleteFailuresSpec extends Specification with CatsEffect {
// mapping error
// collector timestamp

"unstruct bad JSON" >> {
"case 1 - NotJson" >> {
val unstruct =
"""
{{
Expand All @@ -49,7 +49,7 @@ class IncompleteFailuresSpec extends Specification with CatsEffect {
}
}

"unstruct not SDJ" >> {
"case 2 - NotIglu" >> {
val unstruct =
"""
{"foo": "bar"}
Expand All @@ -61,7 +61,7 @@ class IncompleteFailuresSpec extends Specification with CatsEffect {
}
}

"criterion mismatch" >> {
"case 3 - CriterionMismatch" >> {
val unstruct =
"""
{
Expand All @@ -78,7 +78,7 @@ class IncompleteFailuresSpec extends Specification with CatsEffect {
}
}

"resolution error - schema could not be found in the specified repositories, defined by ResolutionError in the Iglu Client" >> {
"case 4 - IgluError - resolution error - schema could not be found in the specified repositories, defined by ResolutionError in the Iglu Client" >> {
val unstruct =
"""
{
Expand All @@ -99,7 +99,7 @@ class IncompleteFailuresSpec extends Specification with CatsEffect {
}
}

"validation error - Data is invalid against resolved schema" >> {
"case 5 - ValidationError/InvalidData - Data is invalid against resolved schema" >> {
val unstruct =
"""
{
Expand All @@ -116,7 +116,7 @@ class IncompleteFailuresSpec extends Specification with CatsEffect {
}
}

"validation error - Schema is invalid (empty required list) and cannot be used to validate an instance" >> {
"case 6 - ValidationError/InvalidSchema - Schema is invalid (empty required list) and cannot be used to validate an instance" >> {
val unstruct =
"""
{
Expand Down

0 comments on commit a285d03

Please sign in to comment.