Skip to content

Latest commit

 

History

History

README.md

Assessment Test Runner

This repository is how you will take your assessment test. From this repo you will start your test, write your solutions, and submit your answers using the command line.

It is used for both the mock as well as the real test.

The goal for the mock test is to give you time to become familiar with the setup of workflow for this format, so that you can focus on the challenges for the real test. Therefore, please take the time to carefully follow each step.

Due to the inclusion of embedded screenshots, we suggest you read this file in HTML format, here:

https://github.com/lighthouse-labs/assessment-exam-student

Getting Started

Please carefully follow the instructions below to get started.

Important Note: If you make a mistake in performing these steps (and see unexpected behavior), you will need to RESTART from step 1 (clone the report)!


  1. Clone the repository

To start, CLONE (do not fork) this repo to your local Vagrant machine, and cd into the folder:

git clone git@github.com:lighthouse-labs/assessment-exam-student.git
cd assessment-exam-student
  1. Install Required Packages

Run the following command from within the project directory:

npm install --no-bin-links

  1. Open the entire project in Sublime (or Atom)

Open the entire project directory in Sublime. You should see the directory tree on the left hand side:

screenshot of sublime


  1. Specify your exact GitHub user name in the file .student-id

This file should contain only your user name (without any spaces, new lines, or other text). It should be the correct case as well.

screenshot of github

screenshot of sublime

NOTE: Ensure your user name is spelled correctly!


  1. Start the test from a terminal window

Enter the command below to start the test:

  • NOTE: replace [EXAM-ID] with the exam ID provided by the instructor
  • Once you start the exam, the test timer will start (typically 3 hours).
    • The timer is of no real significance since both the mock and real tests are take-home tests that you can finish over the weekend!
npm run start-exam [EXAM-ID]

This command downloads the test questions to your local file system. You should see new files in the answers/ directory.

You should see output that looks like this (note: output may vary based on which test you are taking):

> assessment-exam-student@1.0.0 start-exam /path/to/assessment-exam-student
> node start-exam.js "exam-id-here"

Contacting Server to Start Exam "exam-id-here"

Server Response: 5 Questions:
  Creating Question 00  (30 Points) Answer file: answers/00.js
  Creating Question 01  (30 Points) Answer file: answers/01.js
  Creating Question 02  (20 Points) Answer file: answers/02.js
  Creating Question 03  (20 Points) Answer file: answers/03.js
  Creating Question 04  (20 Points) Answer file: answers/04.js

If you see an error, please ensure you are using the correct [exam-id] (do not include the square brackets). You may need to re-clone and restart the process from step 1 if the problem persists!


Answering Questions (Detailed Walkthrough)

Now you're ready to start answering questions! Follow these steps carefully:

  1. Expand the answers/ directory in your code editor.

Note that the question numbering starts at 0.


  1. Execute the test code

From the command line, execute the automated tests for the first question, question 0, using the command below (question numbering starts at 0):

npm run question 0

  1. Read the output carefully

Notice that none of the tests for question 0 are passing (well one of them passes by default, so you start with 2 points, no big deal!):


  1. Write some code

Implement the code for the first function (count) in the question, located in answers/00.js.

Run the npm run question 0 command again to make sure you are starting to see solutions:

Notice that your score for the question also went up. The number of automated tests passing the primary factor for how your score is calculated.

It is recommended that you run the npm run question [number] command frequently. If you score close to perfect on a question (eg: all tests pass, but you have lint errors), we suggest you move on and return to polish that code later.


  1. Repeat for all questions

Once you complete question 0, repeat these steps but this time with question 1 (the code for which should is in answers/01.js).

Submission Grading

  • You can submit questions multiple times during your development process
  • Points are awarded based on how your solutions perform during evaluation
  • Points are deducted for lint (style) errors
  • Submissions will still be accepted after the end of the test period