Skip to content

Latest commit

 

History

History
22 lines (13 loc) · 763 Bytes

README.md

File metadata and controls

22 lines (13 loc) · 763 Bytes

What is this?

I got my hands on a copy of The Ray Tracer Challenge and thought I'd give it a go in Scala. This is that attempt.

Running tests

The tests in this project are written as BDD tests. Yeah I know - that seems a bit strange - they might be better as TDD. But that's how they're presented in the book. The goal here is to practice Scala, so I'll leave them as-is as the path of least friction.

To run them:

  • sbt test

Compiling

  • sbt compile

Formatting

  • sbt scalafmt - formats just files in src
  • sbt scalafmtAll - formats all .scala files
  • sbt scalafmtCheck - checks just files in src files
  • sbt scalafmtCheckAll - checks all .scala files