Skip to main content

Questions tagged [unit-testing]

For Questions related to teaching about Unit Testing. Do not use for questions about unit testing itself, but for questions about how to use unit testing in the classroom. e.g. teaching Unit Testing, or using Unit Testing to aid learning.

Filter by
Sorted by
Tagged with
9 votes
6 answers

Should unit testing be taught in introductory programming classes?

I understand the advantages of test-driven development, but should unit testing be taught/used in CS1 (the introductory class) for computer science students learning? I am aware of researchers saying ...
Nuno Gil Fonseca's user avatar
8 votes
10 answers

How to overcome the TDD/BDD time fallacy

I've observed an unusual thing happen when teachers try to introduce Test-Driven Development (TDD) or Behavior-Driven Development (BDD) to their classes. Even though the teachers invariably encourage ...
Piyush Parikh's user avatar
6 votes
2 answers

How can I incentivize students to test their applications with end users?

I advise several teams of undergraduate students in their final project. It is an annual softward-development project that they do during their 3rd year of studies. Most of them develop a web ...
Erel Segal-Halevi's user avatar
5 votes
2 answers

Are jUnit or TestNG simple enough for undergraduates to apply in a matter of weeks? What alternative?

I was hoping that in this year's Software Engineering class, our capstone for Computer Science, could implement a disciplined automated test strategy for their Java project. Now, with only seven weeks ...
Andrew Wolfe's user avatar
5 votes
2 answers

Using autograding (Github Classroom) - pitfalls and best practices?

I'm currently as a TA developing a series of programming assignments for a bachelor course on machine learning. Since we expect the number of students taking this course to grow in the future, we're ...
ObscureOwl's user avatar
4 votes
4 answers

What's a good unit testing assignment for Android?

I'm teaching a capstone (the final class in an undergraduate program) software engineering course in which we are developing Android applications in Java. I consider test-driven development and unit ...
Ellen Spertus's user avatar
4 votes
1 answer

Any auto grading site that supports all-testcases-in-one-file (and/or in github)?

I use, and one problem i note, is that each new test case has to be added by many gui-web clicks. it is both slow and annoying, and makes it harder to : 1) send to other teacher to review the ...
jsonphy's user avatar
  • 61
3 votes
3 answers

Automatic grading of test-cases

Last year I taught a programming course, and used an automatic grading system for grading the students' homework (in addition to other evaluation measuares). It worked quite well; the bottleneck was ...
Erel Segal-Halevi's user avatar
2 votes
2 answers

OOP project course

At our university, we teach a course on OOP in Java. Currently, our project focuses on unit testing and specifications. However, to achieve this without too much manual effort, the students did not ...
Emiel Lanckriet's user avatar
1 vote
1 answer

Can one prove a part of the program to be correct rather than test it? [closed]

When testing software, does people prove some part of the program to work as they want like mathematicians prove their methods to be correct?
guest's user avatar
  • 11
0 votes
1 answer

How do I learn how to write QA test scripts for software products?

Writing Quality Assurance course test scripts for software products is a critical part of ensuring the quality and reliability of the software. Test scripts are sets of instructions that QA testers ...
richards12's user avatar
0 votes
2 answers

How can I unit test a class in a .cs file that is uploaded or otherwise provided to me?

Here is my situation. I teach a 'Programming with classes' course. The students are given a design of class to implement in c#. They will then create a .cs file for the class. I would like to give ...
B-Rad's user avatar
  • 101