D E V M A T E

Loading

Process Overview

You are here:
Estimated reading time: 1 min

Creating Unit Tests with devmate

Creating unit tests for your code involves 8 steps:

  1. Create an initial model from your code
  2. Define equivalence classes and their representatives
  3. Combine representatives into test cases
  4. Define expected values
  5. Optional: Define exceptions that might occur
  6. Optional: Check for side effects
  7. Generate code
  8. Optional: Merge existing and newly generated code

Most steps of this process are automated. You just trigger them. Only steps 2 & (optional 5&6) require your cognitive abilities to map the specification to the test model. In step 2 you define the equivalence classes and their representatives. After they are automatically combined into test cases you have to define the expected outcomes in step 4. You can iteratively develop and enhance your test-model by repeating steps 2, 3, and 4 (optional 5&6) using the equivalence class editor. Also the automatic combination of representatives is not mandatory. You are free to define all test cases and their representatives manually.

devmate data flow.png

Boilerplate Feature for creating a Unit Test Template

devmate also offers a fast way to create a unit test template for XUnit, NUnit and MSTest. Just consider which method you want to test and with two easy clicks devmate creates a functioning template for unit testing. You can then edit this template to your own needs.

Was this article helpful?
Dislike 1
Views: 406

Continue reading

Previous: License
Next: Testing Methodology

We use cookies to give you the best online experience. By agreeing you accept the use of cookies in accordance with our cookie policy.

Privacy Settings saved!
Privacy Settings

When you visit any web site, it may store or retrieve information on your browser, mostly in the form of cookies. Control your personal Cookie Services here.

GetResponse, Google Analytics

We use LinkedIn Insight for marketing purposes. You can disable these cookies.

We use Google Analytics for marketing purposes. You can disable these cookies.
  • __utmz
  • __utma
  • _ga
  • _gat

We use GetResponse for marketing purposes. This service cannot be disabled, otherwise the website functions will be limited.

Decline all Services
Accept all Services
Get Free Access Now to
9 eBooks!
All about Automated Software Testing
Proven experts
Learn to save up to 75% of your test efforts
Get Free Access Now!
Get Access Now! & Save 50%
Personal Trainer FREE Nutrition Custom Workout App
Get Access Now!
eBook Download
Enter your details to get your free ebook!
All about Automated Software Testing
Download Free Ebook
SUBSCRIBE
MY WEB
NEWSLETTERS
Lorem ipsum dolor sit amet, consectetur adipiscing