snark.swift 2.21 KB
Newer Older
Drew's avatar
Drew committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40
// Copyright (c) 2016 Drew Crawford.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
//   http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

let passSnark = [
"With a test suite this small, I'm surprised it took you so long.",
"Remember, just because the tests passed doesn't mean you didn't create a horrible, horrible bug.",
"Congratulations on passing an entirely meaningless test suite.",
"The only thing wrong with this code is all the things we didn't test.",
"I'd recommend shutting your laptop.  You've used up all your good luck for the day.",
"The good news is, none of the branches we hit ran `rm -rf /`.  The bad news is, your code coverage.",
"Congratulations!  None of the bugs you thought of are in this code.  I wonder how many your users will think of...",
"Look at how much time we spent not finding any new bugs.",
"This test suite is so small I'm surprised you bother to run it at all.",
"These tests are so trivial I don't even know why you're running them."
]

let failSnark = [
"Congratulations.  Not on the test.",
"Don't worry, you'll get it next time.  Or not.  Probably not.",
"Why don't you just revert back to the previous commit?",
"You know, we never had these problems until you started making changes.",
"Insanity is doing the same thing and expecting different results.  Try running the tests again and see what happens.",
"You know what they say.  Fail early, fail often.  Good to see you got the memo.",
"I'm pretty sure in TDD, the tests have to actually *pass* at some point.",
"If I plugged your commit message into StackOverflow, the top result would be better than this code.",
"Look, just forget about this feature.  It's clearly beyond you.",
"I would say you'll get it next time.  But I know better.",
"Go ahead, push it to master.  Break the build.  I dare you."
]