-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnotes
59 lines (35 loc) · 1.14 KB
/
notes
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
Notes for dev/test.
Basic testing instructions, starting from scratch
Change directory to the local repository
>cd resynthesizerJulia
Run a file that contains a testset
Test fidelity of the algorithm to the original, using 2D image
>julia --project=test test/resynthesizer.jl
Test over many dimensions and element types
>julia --project=test test/dimensions.jl
Run a specific test program in the REPL with debugging:
(Use "Main", not "all". "all" will debug Julia modules also.
"Main" signifies the main module that you are writing,
even if it is not declared a module per se.)
julia> ENV["JULIA_DEBUG"] = Main
julia> include("test/1D/tiny.jl")
julia> test(text,mask)
??? Activate the test project from the REPL in pkg mode
>julia
julia>]
pkg> activate test
From the REPL
Install julia
Start REPL
install packages,
or use a package.toml ???
(installs many supporting packages)
>import Pkg; Pkg.add("ReferenceTests")
>import Pkg; Pkg.add("TestImages")
>import Pkg; Pkg.add("ImageMagick")
>import Pkg; Pkg.add("ColorTypes")
Import the test framework
> using ReferenceTests
(compiles a long time)
Run the test suite by name
@testset "Resynthesizer"