Test cases - CoderPad Interview Docs (2024)

With take-home projects you have the ability to run test cases. Test cases allow you to test a candidate’s code against certain requirements. You will also be able to view the test cases’ pass/fail results once the candidate has finished their take-home project.

You set them up during Step 2 – Add Take-Home Test Cases of question creation/editing.

Test cases - CoderPad Interview Docs (1)

1. Set up the function signature

In order to run tests on the solution function, we must know how many parameters are enabled, what types they are, and what the expected return type of the function is.

Parameters should be named and assigned a type using the dropdowns.

You can add multiple parameters to a function by selecting the Add Parameter button, and repeating the steps to name the parameter and assign the type.

Test cases - CoderPad Interview Docs (2)

If you want to remove a parameter, click the trashcan icon on the left-hand side of the parameter.

Test cases - CoderPad Interview Docs (3)

Finally, you can set the type of the function’s return value

Supported types include:

  • Integer
  • String
  • Integer Array
  • String Array

These types are consistent across all supported take-home project languages. These same types are enabled for both parameter types and return types.

2. Add the test case solutions

Next you’ll add the inputs and expected outputs you expect to see from a candidate’s solution.

There one test case solution will be automatically added for you to fill out, but you can easily add more by pressing the Add Test Case button.

Test cases - CoderPad Interview Docs (4)

You’re able to remove test cases by selecting the trashcan-shaped delete button to the left-hand side of the test case you’d like to remove.

Each test case also includes a toggle of whether to make it visible to the candidate or not. Non-visible test cases are not shown to candidates but are still tested against the candidate code and reported to the interviewer in playback mode.

Candidate View

When a candidate accesses a pad with take-home test cases, they’ll be able to see the visible tests within the Test Cases tab:

Test cases - CoderPad Interview Docs (5)

They can run specific test-cases by checking the desired checkboxes and pressing Run selected test cases. Once ran, the Pass column on the right will update to indicate whether the test was successful or not.

Test cases - CoderPad Interview Docs (6)

You’re also able to see test output from the Program Output tab, along with the expected and actual results for each failed test.

Test cases - CoderPad Interview Docs (7)
Test cases - CoderPad Interview Docs (2024)
Top Articles
How to detect if an ethereum address is an ERC20 token contract
Mainnet Swap | Binance Academy
Kathleen Hixson Leaked
Fat Hog Prices Today
Workday Latech Edu
Pbr Wisconsin Baseball
Corporate Homepage | Publix Super Markets
Snowflake Activity Congruent Triangles Answers
South Ms Farm Trader
Olivia Ponton On Pride, Her Collection With AE & Accidentally Coming Out On TikTok
Erin Kate Dolan Twitter
Capitulo 2B Answers Page 40
Pro Groom Prices – The Pet Centre
Colts seventh rotation of thin secondary raises concerns on roster evaluation
2016 Ford Fusion Belt Diagram
Destiny 2 Salvage Activity (How to Complete, Rewards & Mission)
Lonesome Valley Barber
CANNABIS ONLINE DISPENSARY Promo Code — $100 Off 2024
Craigslist Missoula Atv
Hennens Chattanooga Dress Code
Daytonaskipthegames
Air Traffic Control Coolmathgames
Rimworld Prison Break
Www.patientnotebook/Atic
Magic Seaweed Daytona
Imouto Wa Gal Kawaii - Episode 2
Reicks View Farms Grain Bids
Feathers
Xpanas Indo
Hwy 57 Nursery Michie Tn
Pokemon Inflamed Red Cheats
10 Best Quotes From Venom (2018)
3 Bedroom 1 Bath House For Sale
Minecraft Jar Google Drive
Texters Wish You Were Here
How Much Is Mink V3
Aveda Caramel Toner Formula
Tirage Rapid Georgia
Winco Money Order Hours
Craigslist Free Manhattan
Timberwolves Point Guard History
Me Tv Quizzes
The All-New MyUMobile App - Support | U Mobile
Jetblue 1919
Sdn Fertitta 2024
Traumasoft Butler
Amc.santa Anita
Interminable Rooms
Sam's Club Gas Price Sioux City
Diamond Desires Nyc
Unit 4 + 2 - Concrete and Clay: The Complete Recordings 1964-1969 - Album Review
O.c Craigslist
Latest Posts
Article information

Author: Edmund Hettinger DC

Last Updated:

Views: 6178

Rating: 4.8 / 5 (78 voted)

Reviews: 93% of readers found this page helpful

Author information

Name: Edmund Hettinger DC

Birthday: 1994-08-17

Address: 2033 Gerhold Pine, Port Jocelyn, VA 12101-5654

Phone: +8524399971620

Job: Central Manufacturing Supervisor

Hobby: Jogging, Metalworking, Tai chi, Shopping, Puzzles, Rock climbing, Crocheting

Introduction: My name is Edmund Hettinger DC, I am a adventurous, colorful, gifted, determined, precious, open, colorful person who loves writing and wants to share my knowledge and understanding with you.