7 votes

Should unit testing be taught in introductory programming classes?

I'll assume that you mean a first programming course that uses a language (Java...) that has well integrated testing tools. If you just use unit testing as an add-on then I'd guess the proper answer ...
user avatar
  • 34.9k
4 votes

Automatic grading of test-cases

Have you thought about having a solution that you create and test the students test cases against your solution? Then you have a stable platform for running the student defined tests. Also run test ...
user avatar
  • 1,113
4 votes

Should unit testing be taught in introductory programming classes?

It depends on what you mean by "used." The student projects might not lend themselves to TDD in that the early assignments will probably be very small and if the end up writing 90% of the project ...
user avatar
4 votes

Should unit testing be taught in introductory programming classes?

I'm going to start my answer the same way as the only other answer so far and say it depends on the context of the course, but head in a different direction. The fact that you're calling the course ...
user avatar
4 votes

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

At the TU Delft we've developed WebLab, which is used in various CS related courses. It has support for programming assignments, for which students code their solutions in a web-editor, and run their ...
user avatar
  • 41
3 votes

Automatic grading of test-cases

If you run all implementations against all tests, then you can see anomalies. If you put results into a grid, then any failures should show up as a line: horizontal for implementations, vertical for ...
user avatar
2 votes

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

1, 2, & 3 In most cases, I'm okay with them having the tests ahead of time. The only thing that concerns me a bit is that they can edit the tests, and GitHub would use those. What I do, and it's ...
user avatar
  • 3,029
2 votes

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

In the auto grader I use, the following process is followed: The students files are copied into a pristine work area The "provided" file(s) are removed from the work area If I intend to use ...
user avatar
  • 1,113
2 votes

Automatic grading of test-cases

Very interesting strategy. You are essentially putting the 10% test case-writers in the role of a sophisticated recruiting agent who is "interviewing" the rest of the 90% of the class for a job. It is ...
user avatar
  • 121
2 votes

What's a good unit testing assignment for Android?

I assume that there is some logic in the app, somewhere. Hard for me to imagine it otherwise. If you build the client side with a Model-View-Controller architecture, the testing can be done on the ...
user avatar
  • 34.9k
2 votes

Should unit testing be taught in introductory programming classes?

Yes, but introduce it one step at a time (Zone of Proximal Development). Manual testing is the absolute minimum, needed to know if you have written the program that you intend to (feedback). ...
user avatar
2 votes

Should unit testing be taught in introductory programming classes?

That depends entirely on the context of your CS1 course. Are you teaching unit testing suite to your students? If you haven't learned something then how can you use it? If unittest is part of the ...
user avatar
  • 773
1 vote

What's a good unit testing assignment for Android?

As part of their coursework, my students build a master/detail application with a simple search field on the master page. They have a testing assignment to write a JUnit functional test validating ...
user avatar
  • 141
1 vote

What's a good unit testing assignment for Android?

I have written a small game for Android, which I published on GitHub. It's a board game, and I have written unit tests for all important parts of the program, especially for placing stones on the ...
user avatar
1 vote
Accepted

What's a good unit testing assignment for Android?

Tic tax toe. Begin game. Test model state is:  --------- Move(x, 1, 1). Test model state is:  ----x---- Scoring bowling. Begin game. Test score is: 0 knock down 3 pins. Test score ...
user avatar

Only top scored, non community-wiki answers of a minimum length are eligible