First steps toward functional testing, part 1

Author(s): Jukka Aho jukka.aho@kapsi.fi

Abstract: This is demonstration document describing how to combine functional testing, continous integration and documentation in to the single document.

These multi-purposal documents test several things at once. While they test that documentation is up-to-date, calculation results are what is expected and code base is working, they also serve as a tutorials and examples how to use JuliaFEM.

Let's start. Hello world. Local time is here


In [ ]:
Libc.strftime(time())

Using FactCheck to validate your results


In [ ]:
f(x) = 2*x
f(1)

In [ ]:
using FactCheck

In [ ]:
facts("test that f(1) equals to 3, this is failing on purpose") do
    @fact f(1) => 3
end