Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8111857
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T02:16:32+00:00 2026-06-06T02:16:32+00:00

I have written a ScalaCheck test case within Specs2. The test case gives up

  • 0

I have written a ScalaCheck test case within Specs2. The test case gives up because too many tests were discarded. However, it doesn’t tell me why they were discarded. How can I find out why?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-06T02:16:35+00:00Added an answer on June 6, 2026 at 2:16 am

    Set a breakpoint on the org.scalacheck.Gen.fail method and see what is calling it.

    Incidentally, in my case the problem was twofold:

    • I had set maxDiscarded to a value (1) that was too small, because I was being too optimistic – I didn’t realise that ScalaCheck would start at a collection of size 0 by default even if I asked for a non-empty collection (I don’t know why it does this).

    • I was generating collections of size 1 and up, even though, as I later realised, they should have been of size 2 and up for what I was trying to test – which was causing further discards in later generators based on that generator.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have written a function that sorts a big scale of data. To test
Have written some RoR sites in the past, but never bothered too much at
I have written some Rspec test cases in my spec/models/season_spec.rb file. They are as:-
I have written a c# code to read string values within brackets () string
I have written few test scripts using JUnit 4 and Selenium. I have added
I have written the following simple test in trying to learn Castle Windsor's Fluent
I have written this short function to protect against my_sql injection, because of its
I have written a java program generates lots of files (say txt files) in
I have written a function that extract the domain from hostname. e.g. www.domain.com ->
I have written some Python scripts in Eclipse where at some point I have

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.