Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

どこでtestが実行されているかわかりません。教えてください。 #5

Open
hiragaatsuya opened this issue Oct 3, 2018 · 2 comments

Comments

@hiragaatsuya
Copy link

assignment1-fibonacci.scala以外のコードを無変更のままrunを行った時に
sbt:assignment1> run
[warn] compile:run::javaOptions will be ignored, compile:run::fork is set to false
[info] Running prg1.assignment1.FIB
[debug] Waiting for threads to exit or System.exit to be called.
[debug] Classpath:
[debug] /var/folders/fp/73nzb27158n94p_21spd4tkr000lxm/T/sbt_3f3dc752/job-22/target/5728f2f4/assignment1_2.12-0.1-SNAPSHOT.jar
[debug] /var/folders/fp/73nzb27158n94p_21spd4tkr000lxm/T/sbt_3f3dc752/target/f2e496f2/scala-library.jar
[debug] /var/folders/fp/73nzb27158n94p_21spd4tkr000lxm/T/sbt_3f3dc752/target/edec4390/scalactic_2.12-3.0.5.jar
[debug] /var/folders/fp/73nzb27158n94p_21spd4tkr000lxm/T/sbt_3f3dc752/target/a017f8f6/scala-reflect.jar
[debug] Waiting for thread run-main-15 to terminate.
55
fib_rec: 72682ns
55
fib_itr: 10609ns
55
fib_matrix: 48554ns
0
fib_polynomial: 6472ns
[debug] Thread run-main-15 exited.
[debug] Interrupting remaining threads (should be all daemons).
[debug] Sandboxed run complete..
[debug] Exited with code 0
[success] Total time: 1 s, completed 2018/10/03 14:09:29
と表示されたのですが、どこでtestが実行されていますか?それともそもそも無変更の場合に
test("FIB tests") {
fib_itr(2) should equal (fib_rec(2))
}
は実行されないようになっていますか?

@ryuhei-mori
Copy link
Contributor

test を実行したい時には sbt 上で run の代わりに test というコマンドを使ってください。

@hiragaatsuya
Copy link
Author

ありがとうございます。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants