Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8992781
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T23:02:22+00:00 2026-06-15T23:02:22+00:00

Maven surefire-plugin doesn’t run integration tests (they named with IT suffix by convention), but

  • 0

Maven surefire-plugin doesn’t run integration tests (they named with “IT” suffix by convention), but sbt runs both: unit and integration. So, how to prevent this behaviour? Is there a common way to distinguish integration and unit tests for ScalaTest (don’t run FeatureSpec-tests by default)

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T23:02:23+00:00Added an answer on June 15, 2026 at 11:02 pm

    How to do that is exactly documented on the sbt manual on http://www.scala-sbt.org/release/docs/Detailed-Topics/Testing#additional-test-configurations-with-shared-sources :

    //Build.scala
    import sbt._
    import Keys._
    
    object B extends Build {
      lazy val root =
        Project("root", file("."))
          .configs( FunTest )
          .settings( inConfig(FunTest)(Defaults.testTasks) : _*)
          .settings(
             libraryDependencies += specs,
             testOptions in Test := Seq(Tests.Filter(itFilter)),
             testOptions in FunTest := Seq(Tests.Filter(unitFilter))
             )
    
      def itFilter(name: String): Boolean = name endsWith "ITest"
      def unitFilter(name: String): Boolean = (name endsWith "Test") && !itFilter(name)
    
      lazy val FunTest = config("fun") extend(Test)
      lazy val specs = "org.scala-tools.testing" %% "specs" % "1.6.8" % "test"
    }
    

    Call sbt test for unit tests and sbt fun:test for integration test and sbt test fun:test for both.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

We're using the maven-surefire-plugin to run our Java tests. The tests fall into two
I'm wondering if the Maven surefire plugin either runs tests multi-threaded by default (and
I'm using the surefire maven plugin to run unit tests. My test class looks
I'm using maven to run my integration tests which are in a TestNG suite.
Is it possible to instruct maven-surefire-plugin to run just one unit test? And of
i exclude all tests in plugin except my test suite: <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-surefire-plugin</artifactId> <version>2.11</version>
I'm unable to get the maven-surefire-report-plugin to generate the surefire-report.html when I run: mvn
i am confused between the concept of using maven-surefire-plugin or maven-failsafe-plugin to run my
I would like my Maven builds to run most unit tests. But there are
The Maven Buildnumber plugin doesn't appear to work with GIT yet. Is there a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.