OneCompiler

for challenges, why do you hide the tests?

I'm new to OneCompiler.

I like the challenge format but find it frustrating when I see 1/2 tests passed.

Can we possibly see the tests to help troubleshoot?

For instance, I had simple challenge to add 2 numbers in Java. If less than 100, print true otherwise print false.

I tried various combinations of inputs but still could only get 1/2 tests to pass. If I could at least see the test inputs, then I could find my error.

As an educational platform, I believe revealing the tests would certainly help developers grow!

2 Answers

4 years ago by

@Brandon Flowers thank you for your inputs.
Currently we have finite set of testcases hence we are trying to hide them. As if we start showing those users may misuse by writing solutions specific to them.

Currently only creators of the challenge can see the inputs. But we will think of giving an option to creaters, whether they want to show the inputs.

Update:

We had a bug in challenges which was causing some of the test-cases to fail. We have fixed it.
Could you please try re-submitting the problems you attempted? You should start seeing success now.

4 years ago by OneCompiler

2/2 test cases passed 🎉

I really appreciate your transparency here on your update - this is an excellent example to all devs that tests are not fool proof! Sometimes you need to go back and test the tests.

I've re-ran my tests and they're all passing now. I'm much more excited to continue the challenges now.

I also agree that as someone taking the challenge that I would at least like to see the inputs for each test if I can't see the entire test.

4 years ago by Brandon Flowers