Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Understand the importance of building and maintaining an up-to-date CV
Understand the the concept of an ‘elevator pitch’
Learn best practices when pitching yourself
Learn how to make sure your code works correctly by creating automated tests.
To be completed ahead of Week 7
Q&A
Review testing workshops
Discord chatBot test integration mini-project
CV workshop
Discord chatBot group user testing
Project planning and development
Knowledge Quiz
Q&A
Elevator pitch workshop
Project planning and development
Live code session:
Mock interviews
Knowledge Quiz
Saturday 2nd March
Q&A
Live code session: Project code review
Group code reviews
Live code session: Introduction to Express
Project presentations
Knowledge Quiz
You are going to integrate testing into your Discord chatBot project.
The following user stories are designed to guide you as you integrate testing into your Discord chatBot project. If there are some which are not appropriate to your project, you do not have to integrate these. You can create your own tests that are relevant to your project.
As a back-end developer, I want to...
verify Discord.js integration by creating a test function that creates a new Discord client
ensure that the OpenAI library is correctly integrated by creating a test function that attempts to use the OpenAI API to create a simple chat completion or query
test that my bot securely loads API keys from the .env file, confirming that no sensitive information is hard-coded
ensure that my bot initialises and logs into Discord successfully
simulate receiving a message and verify that my bot responds with a "hello" message, testing the message event listener's functionality
simulate commands directed at my bot to check if it accurately processes these commands from general messages
introduce faults or exceptions in bot interactions to verify that my bot's error handling mechanisms effectively manage and log errors
mock the process of sending responses back to the Discord channel, verifying that my bot formats and dispatches messages correctly
ensure my bot can send direct messages to users, testing the user.send() method's functionality
test my bot's ability to send multimedia responses under specified conditions, ensuring it can handle images, GIFs, and audio clips effectively
This is a guide to what you should be doing for homework each week. Please reach out to your CFs if you are unsure of what to prioritise between sessions.
During this module you should be working on: Execute Program Modern Javascript Level 2
We expect you to complete Modern Javascript Level 2 by the end of Week 9
Complete any outstanding testing workshops
Project planning and development
Project planning and development
Complete Elevator pitch
Complete the Express and Dev Tooling workshops
How do different testing methodologies try to improve the way we write tests?
What is Test-Driven Development (TDD)? Can it help us write better code?
What is Behavior-Driven Development (BDD)? How do we translate user requirements into automated tests?
What is test coverage? Can this tell us about the quality of our tests?
These resources are helpful extra reading that may clarify or enhance concepts you're learning in the main curriculum.
Good testing practices so you can be confident your tests are working.
A comparison of creating DOM elements manually versus using the <template>
element. Useful technique if you're dynamically rendering lots of stuff with JS.