Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unique generation config #52

Merged
merged 16 commits into from
Dec 13, 2020
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Reduce number of test repeats
  • Loading branch information
serpro69 committed Dec 12, 2020
commit 4169ebc546e238b3c94a3a28f9b6605238e8f5c7
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ class UniqueDataProviderIT : DescribeSpec({
describe("unique generation of values enabled for provider through configuration") {
val config = FakerConfig.builder().create { uniqueGeneratorRetryLimit = 100 }

// repeat 30 times to make sure values are not included in the collection
repeat(30) {
// repeat 10 times to make sure values are not included in the collection
repeat(10) {
context("collection of values is generated #run$it") {
val faker = Faker(config)
faker.unique.configuration { enable(faker::address) }
Expand All @@ -40,8 +40,8 @@ class UniqueDataProviderIT : DescribeSpec({
describe("collection of values is used to exclude values from being generated for specific provider") {
val config = FakerConfig.builder().create { uniqueGeneratorRetryLimit = 100 }

// repeat 30 times to make sure values are not included in the collection
repeat(30) {
// repeat 10 times to make sure values are not included in the collection
repeat(10) {
val faker = Faker(config)
faker.unique.configuration { enable(faker::address) }
val countries = (0..30).map { faker.address.country() }
Expand Down Expand Up @@ -83,8 +83,8 @@ class UniqueDataProviderIT : DescribeSpec({
}

describe("use collections to exclude values from being generated for all providers") {
// repeat 30 times to make sure values are not included in the collection
repeat(30) {
// repeat 10 times to make sure values are not included in the collection
repeat(10) {
val faker = Faker()

val excludedCountries = listOf(
Expand Down Expand Up @@ -140,7 +140,7 @@ class UniqueDataProviderIT : DescribeSpec({
}

describe("use regex patterns to exclude values from being generated for all providers") {
repeat(30) {
repeat(10) {
val faker = Faker()

faker.unique.configuration {
Expand Down Expand Up @@ -171,7 +171,7 @@ class UniqueDataProviderIT : DescribeSpec({
}

describe("use regex patterns to exclude values from being generated for specific provider") {
repeat(30) {
repeat(10) {
val faker = Faker()

faker.unique.configuration {
Expand Down Expand Up @@ -230,8 +230,8 @@ class UniqueDataProviderIT : DescribeSpec({
}

context("exclude values from being generated") {
// repeat 30 times to make sure values are not included in the collection
repeat(30) {
// repeat 10 times to make sure values are not included in the collection
repeat(10) {
val faker = Faker(config)
faker.unique.enable(faker::address)

Expand Down