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

  • SEARCH
  • Home
  • 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 8922999
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T06:59:32+00:00 2026-06-15T06:59:32+00:00

I am looking to automatically generate unit tests in MonoDevelop/.Net. I’ve tried NUnit, but

  • 0

I am looking to automatically generate unit tests in MonoDevelop/.Net.

I’ve tried NUnit, but it doesn’t generate the tests. In eclipse, the plug-in randoop does this, however it targets Java and JUnit.

How can I automatically generate unit tests in MonoDevelop and/or for .Net? Or perhaps there is an existing tool out there I am unaware of…

  • 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-15T06:59:33+00:00Added an answer on June 15, 2026 at 6:59 am

    Calling methods with different (random) input is just one part of the process. You also need to define the correct result for each input, and I don’t think a tool can do that for you.

    randoop only seems to check very few very basic properties of equal, which is not of great use imo and also might lead to a false impression of correctness (“Hey look, all tests pass, my software is ok” …)

    Also just randomly generating code (and input) has the risk of undetermined test results. You might or might not get tests that really find flaws in your code.

    That said, a quick googling gave the following starting points for approaches you might want to take:

    • You might be interested in using test case generators (this CodeProject article describes a very simple one). They support you in generating the “boilerplate” code and can make sure, you dont miss any classes/methods you want to test. Of course, the generated tests need to be adapted by defining proper (i.e. meaningful) input and (correct) output values. Googling for “NUnit Test generators” will give you other links, also for commercial software, which i don’t want to repeat here …
    • NUnit (and other testing frameworks) support parameterized tests: These can be used to test a whole class of input scenarios. For NUnit, i found the Random attribute which lets you generate random input (in a certain range) for your methods. Remember what I wrote above about random test inputs: the results of these tests will not be reproducable which renders them useless for automatic or regression testing.

    That said, also look at this question (and certainly others on SO), which may support my argument against automatic unit test generation.

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

Sidebar

Related Questions

I would like to automatically generate a Makefile dependency list, but I am using
Is there any tool/library which can automatically generate the tests for my hashcode and
I'm looking to automatically generate an XML version of a database schema from SQL
I'm looking for a way to automatically generate source code for new methods within
I'm looking for a way to automatically generate a header file. This file is
I'm looking for a C# code generator which generate C# automatically to access stored
I'm looking to automatically generate routes based on actions defined in a controller. resources
I'm looking to implement a build system that will run unit tests and JSLint
I am looking for a tool/framework to (automatically) generate a Swing user interface to
I'm looking for a way to automatically do some clean up tasks when the

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.