Classic Code Challenge Editor
The classic code challenge editor provides an in-browser IDE for creating and validating code challenges.
Quick Usage
Solution Code Areas
- Reference Solution: This is a working solution to validate your tests against
- Solution Setup: This is the initial code that will be provided to the developer. It can be as complex or as simple as you want, though providing some foundation usually recommended.
- Preloaded Code: Here you can add any code that needs to be run before the developer's code. They will not be able to see this code.
Test Code Areas
- Test Cases: Here's where you will define the actual tests used to validate the developer's solution. Be as detailed as you want, but be aware that long tests may cause timeouts. The developer will not be able to see these tests.
- Sample Tests (Modifiable): Here you can provide a few sample tests for the developer to get started validating their code. This is not required, but can provide that little hint to get started easier.
Running Tests
- Click VALIDATE TEST CASES to run your Reference Solution against your Test Cases. Results will appear in the lower right.
- Click VALIDATE SAMPLE TESTS to run your Reference Solution against the Sample Tests.
Shortcut Keys
- ⌘CTRL + ' Validate the reference solution against the test cases
- ⌘CTRL + Enter Validate the reference solution against the sample tests
- ⌘CTRL + S Save the challenge (will re-publish if already published)
- ⌘CTRL + P Open the challenge preview dialog
Detailed Usage
Advanced Features
- Advanced Test Cases Include extra features in your test cases, such as hidden tests and tagged tests.
- Carry Forward Solutions Write assessments that carry the solution forward from one challenge to the next.