/*
 * sbt
 * Copyright 2011 - 2018, Lightbend, Inc.
 * Copyright 2008 - 2010, Mark Harrah
 * Licensed under Apache License 2.0 (see LICENSE)
 */

package sbt.internal.bsp

// https://build-server-protocol.github.io/docs/specification.html#build-target
object BuildTargetTag {
  val test: String = "test"
  val application: String = "application"
  val library: String = "library"
  val integrationTest: String = "integration-test"
  val benchmark: String = "benchmark"
  val noIDE: String = "no-ide"

  def fromConfig(config: String): Vector[String] = config match {
    case "test"    => Vector(test)
    case "compile" => Vector(library)
    case _         => Vector.empty
  }
}

/*
 * sbt
 * Copyright 2011 - 2018, Lightbend, Inc.
 * Copyright 2008 - 2010, Mark Harrah
 * Licensed under Apache License 2.0 (see LICENSE)
 */

package sbt.internal.bsp

// https://build-server-protocol.github.io/docs/specification.html#build-target
object BuildTargetTag {
  val test: String = "test"
  val application: String = "application"
  val library: String = "library"
  val integrationTest: String = "integration-test"
  val benchmark: String = "benchmark"
  val noIDE: String = "no-ide"

  def fromConfig(config: String): Vector[String] = config match {
    case "test"    => Vector(test)
    case "it"      => Vector(integrationTest)
    case "compile" => Vector(library)
    case _         => Vector.empty
  }
}

Add the tag "integration-test" to the it configuration in BSP.
Add the tag "integration-test" to the it configuration in BSP.
