WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Template project code is not compiled during testΒ #860

@jpsacha

Description

@jpsacha

steps

sbt or Giter8 version: 1.9.8

Generate a new new template project:

g8 foundweekends/giter8.g8

Start the SBT prompt and run tests:

sbt:My Template Project> test

problem

Something is published locally:

[info] Wrote C:\tmp\my-template-project.g8\target\scala-2.12\my-template-project_2.12-0.1.0-SNAPSHOT.pom
[info] :: delivering :: my-template-project#my-template-project_2.12;0.1.0-SNAPSHOT :: 0.1.0-SNAPSHOT :: integration :: Wed Jan 03 19:26:00 EST 2024
[info]  delivering ivy file to C:\tmp\my-template-project.g8\target\scala-2.12\ivy-0.1.0-SNAPSHOT.xml
[info]  published my-template-project_2.12 to C:\Users\x\.ivy2\local\my-template-project\my-template-project_2.12\0.1.0-SNAPSHOT\poms\my-template-project_2.12.pom
[info]  published my-template-project_2.12 to C:\Users\x\.ivy2\local\my-template-project\my-template-project_2.12\0.1.0-SNAPSHOT\jars\my-template-project_2.12.jar
[info]  published my-template-project_2.12 to C:\Users\x\.ivy2\local\my-template-project\my-template-project_2.12\0.1.0-SNAPSHOT\srcs\my-template-project_2.12-sources.jar
[info]  published my-template-project_2.12 to C:\Users\x\.ivy2\local\my-template-project\my-template-project_2.12\0.1.0-SNAPSHOT\docs\my-template-project_2.12-javadoc.jar
[info]  published ivy to C:\Users\x\.ivy2\local\my-template-project\my-template-project_2.12\0.1.0-SNAPSHOT\ivys\ivy.xml

but template project is not compiled, there is no directory target/sbt-test, as described in:
https://www.foundweekends.org/giter8/testing.html#Using+the+Giter8Plugin

If the src/main/g8/src/main/scala/Stub.scala is modified to be invalid code, no error messages are shown when running test or g8Test

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions