How can you tell if a candidate cheated on a coding test?

No single signal proves cheating in an online coding test. The reliable approach is to combine several: large pastes from outside the test, time spent in other tabs or windows, exits from fullscreen, webcam snapshots, and a replay of how the code was written. A solution that appears in one paste after a long absence tells a different story from one that was typed, run and corrected.

Last reviewed · by the CodeCursor team

The signals worth collecting

Each of these is weak alone and useful together:

  • Outside pastes: text pasted into the editor that was not copied inside the assessment.
  • Tab and window switches: how often the candidate left, and for how long each time.
  • Fullscreen exits, when the assessment asked for fullscreen.
  • Extra displays connected during the assessment.
  • Webcam snapshots at intervals: another person in the frame, or the candidate absent.
  • Code playback: whether the answer grew in steps or arrived whole.

How to read the signals fairly

Signals describe behaviour, not intent. Someone who switches tabs to read language documentation is doing what they would do at work. Read the events in order, next to the code at that moment, before drawing a conclusion.

CodeCursor puts every event on one timeline with the nearest webcam snapshot and summarises them as an integrity score from 0 to 100. The score tells a reviewer where to look; the timeline is the evidence. A good follow-up is a short live interview in which the candidate explains their own solution.

Why recording AI use works better than banning it

A ban on AI assistants cannot be enforced on a candidate’s own computer, and it turns ordinary working habits into rule-breaking. CodeCursor takes the other route: the assessment has an AI built in, the hiring team sets how much it may do, and every prompt and accepted edit is recorded. Candidates have no reason to use a hidden tool when a permitted one is in front of them, and reviewers see exactly how it was used.

Telling candidates what is monitored

Monitoring works best when it is declared. CodeCursor shows every candidate what is monitored for their assessment before they start. That is fairer to them, it deters the behaviour in the first place, and it avoids surprises that damage a team’s reputation with the people it wants to hire.

Questions people ask

Does a low integrity score mean the candidate cheated?

No. In CodeCursor the integrity score summarises recorded events such as tab switches and outside pastes. It shows where to look. A reviewer reads the timeline and decides.

Can pasting be blocked in a CodeCursor assessment?

Yes. An assessment can block pasting text that was not copied inside it, or allow it and log each paste.

What should you do when the signals look suspicious?

Look at the code replay and the timeline together, then ask the candidate to walk through their solution in a short live interview. Someone who wrote the code can explain it.