-
Notifications
You must be signed in to change notification settings - Fork 64
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
Add tests in the structure #28
Comments
That is exactly what I want to say. |
I tried to get test dir working. |
@Readon I just tested sbt with : Test / scalaSource := baseDirectory.value / "miaou" / "spinal", It worked well for me. What issue did you had ? |
I add test directory in this PR, which need to seperately depends on spinal.tester. Then use Test / scalaSource to specify the test sources would need to point to the test directory manually, or it will compile those source file several times. On other hand, if the multiple-times-compilation is acceptable, a common dependency of scalatest is involved, to the compilation process. I think as a template, efficiency and cleanliness are of utmost importance, especially for users just starting out. |
Hmm bad news, the
In the latter case no modification to the Getting started section of RTD would be needed, and I suggest to add this new structure in the next release, after:
PS: I think having simulation tests in the |
So, one thing i noticed, is that very often, people have already premade project structure. And trying to impose the SBT structure on them is a paine.
Yes i would say.
Yes |
@Dolu1990 I changed my mind during discussion with Readon #30 (comment) I suggest to continue discussion there |
FYI https://github.com/numero-744/Aes has been updated; part of its contents could be put in the template:
tb/
folder forTest
(not released contents) with sub-directories like forhw/
scalatest
mill
See the end of the readme with an IDE screenshot and the resulting directory structure with important things highlighted in blue on the left.
The text was updated successfully, but these errors were encountered: