yarhrn / new-scaladoc

3 stars 1 forks source link

Turn sample model into test in src/test/ rather than main method in src/main/ #2

Closed cvogt closed 9 years ago

cvogt commented 9 years ago

This file needs to be turned into a test. https://github.com/kolowheel/new-scaladoc/blob/74918a4cddabb1bc2aa8322c54fef53026e35364/src/main/scala/Main.scala You already got ScalaTest in your dependencies. Use it :). Also, please just use the FunSuite with assert calls, no funny dsls (the test framework are meaning well, but doing harm there in my eyes).

cvogt commented 9 years ago

cc @masseguillaume @clhdapp are you subscribed here?

cvogt commented 9 years ago

@kolowheel Actually you can keep the object, call it maybe samplemodel or something, but write a separate test that just runs latex generation and checks that a few important words appear in the string. if you keep the main method of the original object, you can still do test:run. Just the sample model shouldn't be in the projects main source code