Allow running code and unit tests separately
While you're able to create a custom unit testing challenge and load that into a live interview, you may want to provide candidates the option to run arbitrary code along with running a test case suite as separate options.
By creating a file called .cbconfig you're able to provide a custom unit tests entry file. The contents should be a JSON object like the following:
{
"unitTests": {
"label": "Run Unit Tests",
"entry": "run_tests.py"
}
}
This will then load a button with your text to the top-right of the IDE.