A1.a1 - Alternative 1
A1.a1 - Alternative 1 for grade F/E/D
Choose either A1.a1 or A1.a2 (alternative 2) first. After passing your chosen alternative during lab time, continue with A1 Part 2: Agentic Testing, the PromptLab lab and assessed seminar. You must pass both stages before an A1 grade can be awarded.
Alternative 1 requires BOTH exercises:
- Password testing - unit tests and code coverage.
- Testing with mocks - testing classes with dependencies.
Complete both exercises in your chosen language: Java or JavaScript. Completing only Password testing is not sufficient to pass Alternative 1.
Alternative 2 is a separate TDD project described on its own course page. Testing with mocks belongs to Alternative 1.
Work on both exercises during the designated lab sessions, where teaching staff observe your work and examine your ability to write tests individually. Showing or submitting a finished solution alone is not sufficient; staff must see you working on the exercises during the lab sessions.
- Expect to be able to write a unit test for a new class / function given to you during the examination. It should resemble things you have practiced on. No AI tools are allowed during examination. But you may look at the code from your practice tasks.
- Expect to be asked questions from the reflection question list in the assessment instructions
- Expect to be asked questions about your own solution to the practice task. Especially about the different assert/expect/verify methods of your test-framework and tools
- Expect to be asked to run the tests and check coverage.
A1.a1 has a Java and a JavaScript version.
- You select one of them, you may do both if you like, you may translate the assignment into other languages, but talk to us first.
- You may replace the test-frameworks with one that you choose.
Assignment repo
**Start with the repository README It links to both required exercises, the language setup guides and the assessment instructions.
- create the resources you need yourself in ActionHub
- clone the lab, commit and push
- You will not be asked to "hand in your work"; show your work during the scheduled labs!
- Complete both exercise instructions in the repository: first Password testing (
instructions/password-testing.md), then Testing with mocks (instructions/testing-with-mocks.md). - Follow the setup instructions in
java/README.mdorjs/README.mdfor your chosen language.
Ask questions in your group's Zulip channel: Växjö or Kalmar and distance students.
Examination during lab time
Work on A1.a1 during the lab sessions assigned to your group. Your work is examined during these sessions, while teaching staff observe you working on the tasks. Kalmar and Växjö campus students work in the classroom; WP distance students work via Zoom. Teaching staff must be able to see you working, whether you participate in the classroom or via Zoom. Follow the arrangements explained at the course introduction and posted in your group's Zulip channel.